+2001-07-27 [christoph]
+
+ * src/prefs_filter.c
+ * src/prefs_filtering.c
+ * src/prefs_matcher.c
+ * src/prefs_scoring.c
+ scroll list when moving rows up or down
+
2001-07-26 [alfons]
* configure.in, acconfig.h
row = GPOINTER_TO_INT(clist->selection->data);
if (row > 1) {
gtk_clist_row_move(clist, row, row - 1);
+ if(gtk_clist_row_is_visible(clist, row - 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row - 1, 0, 0, 0);
+ }
prefs_filter_set_list();
}
}
row = GPOINTER_TO_INT(clist->selection->data);
if (row > 0 && row < clist->rows - 1) {
gtk_clist_row_move(clist, row, row + 1);
+ if(gtk_clist_row_is_visible(clist, row + 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row + 1, 0, 1, 0);
+ }
prefs_filter_set_list();
}
}
row = GPOINTER_TO_INT(clist->selection->data);
if (row > 1) {
gtk_clist_row_move(clist, row, row - 1);
+ if(gtk_clist_row_is_visible(clist, row - 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row - 1, 0, 0, 0);
+ }
}
}
row = GPOINTER_TO_INT(clist->selection->data);
if (row > 0 && row < clist->rows - 1) {
gtk_clist_row_move(clist, row, row + 1);
+ if(gtk_clist_row_is_visible(clist, row + 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row + 1, 0, 1, 0);
+ }
}
}
if (!clist->selection) return;
row = GPOINTER_TO_INT(clist->selection->data);
- if (row > 1)
+ if (row > 1) {
gtk_clist_row_move(clist, row, row - 1);
+ if(gtk_clist_row_is_visible(clist, row - 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row - 1, 0, 0, 0);
+ }
+ }
}
static void prefs_matcher_down(void)
if (!clist->selection) return;
row = GPOINTER_TO_INT(clist->selection->data);
- if (row >= 1 && row < clist->rows - 1)
+ if (row >= 1 && row < clist->rows - 1) {
gtk_clist_row_move(clist, row, row + 1);
+ if(gtk_clist_row_is_visible(clist, row + 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row + 1, 0, 1, 0);
+ }
+ }
}
static void prefs_matcher_select(GtkCList *clist, gint row, gint column,
row = GPOINTER_TO_INT(clist->selection->data);
if (row > 1) {
gtk_clist_row_move(clist, row, row - 1);
+ if(gtk_clist_row_is_visible(clist, row - 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row - 1, 0, 0, 0);
+ }
}
}
row = GPOINTER_TO_INT(clist->selection->data);
if (row > 0 && row < clist->rows - 1) {
gtk_clist_row_move(clist, row, row + 1);
+ if(gtk_clist_row_is_visible(clist, row + 1) != GTK_VISIBILITY_FULL) {
+ gtk_clist_moveto(clist, row + 1, 0, 1, 0);
+ }
}
}