static void prefs_summary_column_down(void)
{
	GtkCList *clist = GTK_CLIST(summary_col.shown_clist);
	gint row;

	if (!clist->selection) return;

	row = GPOINTER_TO_INT(clist->selection->data);
	if (row >= 0 && row < clist->rows - 1)
		gtk_clist_row_move(clist, row, row + 1);
}
static void prefs_display_header_down(void)
{
    GtkCList *clist = GTK_CLIST(dispheader.headers_clist);
    gint row;

    if (!clist->selection) return;

    row = GPOINTER_TO_INT(clist->selection->data);
    if (row >= 0 && row < clist->rows - 1)
        gtk_clist_row_move(clist, row, row + 1);
}
示例#3
0
static void prefs_display_items_down(GtkWidget *widget, gpointer data)
{
	PrefsDisplayItemsDialog *dialog = data;
	GtkCList *shown_clist = GTK_CLIST(dialog->shown_clist);
	gint row;

	if (!shown_clist->selection) return;

	row = GPOINTER_TO_INT(shown_clist->selection->data);
	if (row >= 0 && row < shown_clist->rows - 2)
		gtk_clist_row_move(shown_clist, row, row + 1);
}
示例#4
0
static void
cb_clist_down(GtkWidget *widget)
{
  gint            row;

  row = selected_row;
  if (row >= 0 && row < GTK_CLIST(reader_clist)->rows - 1)
    {
      gtk_clist_row_move(GTK_CLIST(reader_clist), row, row + 1);
      gtk_clist_select_row(GTK_CLIST(reader_clist), row + 1, -1);
      if (gtk_clist_row_is_visible(GTK_CLIST(reader_clist), row + 1)
	  != GTK_VISIBILITY_FULL)
	gtk_clist_moveto(GTK_CLIST(reader_clist), row + 1, -1, 1.0, 0.0);
      selected_row = row + 1;
      list_modified = TRUE;
    }
}