mirror of https://github.com/GNOME/gimp.git
Recalculate size of ctree in the preferences dialog after adding all
the categories. This is the real fix for #2508.
This commit is contained in:
parent
90d2f89a1e
commit
96961a7bb4
|
@ -1,3 +1,9 @@
|
|||
Thu Oct 14 04:59:11 BST 1999 Nick Lamb <njl195@zepler.org>
|
||||
|
||||
* app/preferences_dialog.c: Recalculate size of ctree in the
|
||||
preferences dialog after adding all the categories.
|
||||
This is the real fix for #2508.
|
||||
|
||||
Thu Oct 14 04:08:31 *EST 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/Makefile.am
|
||||
|
|
|
@ -1020,7 +1020,7 @@ file_prefs_notebook_append_page (GtkNotebook *notebook,
|
|||
*new_node = gtk_ctree_insert_node (ctree, parent, NULL,
|
||||
titles, 0,
|
||||
NULL, NULL, NULL, NULL,
|
||||
FALSE, FALSE);
|
||||
FALSE, TRUE);
|
||||
gtk_ctree_node_set_row_data (ctree,
|
||||
*new_node, (gpointer) page_index);
|
||||
gtk_notebook_append_page (notebook, out_vbox, NULL);
|
||||
|
@ -1187,9 +1187,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
ctree = gtk_ctree_new_with_titles (1, 0, titles);
|
||||
gtk_ctree_set_indent (GTK_CTREE (ctree), 15);
|
||||
gtk_clist_column_titles_passive (GTK_CLIST (ctree));
|
||||
gtk_widget_set_usize (ctree, 140, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), ctree, FALSE, FALSE, 0);
|
||||
gtk_widget_show (ctree);
|
||||
|
||||
/* The main preferences notebook */
|
||||
frame = gtk_frame_new (NULL);
|
||||
|
@ -2170,6 +2168,10 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
}
|
||||
}
|
||||
|
||||
/* Recalculate the width of the Category tree now */
|
||||
gtk_clist_set_column_width(GTK_CLIST (ctree), 0,
|
||||
gtk_clist_optimal_column_width(GTK_CLIST (ctree), 0));
|
||||
gtk_widget_show (ctree);
|
||||
gtk_widget_show (notebook);
|
||||
gtk_widget_show (prefs_dlg);
|
||||
}
|
||||
|
|
|
@ -1020,7 +1020,7 @@ file_prefs_notebook_append_page (GtkNotebook *notebook,
|
|||
*new_node = gtk_ctree_insert_node (ctree, parent, NULL,
|
||||
titles, 0,
|
||||
NULL, NULL, NULL, NULL,
|
||||
FALSE, FALSE);
|
||||
FALSE, TRUE);
|
||||
gtk_ctree_node_set_row_data (ctree,
|
||||
*new_node, (gpointer) page_index);
|
||||
gtk_notebook_append_page (notebook, out_vbox, NULL);
|
||||
|
@ -1187,9 +1187,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
ctree = gtk_ctree_new_with_titles (1, 0, titles);
|
||||
gtk_ctree_set_indent (GTK_CTREE (ctree), 15);
|
||||
gtk_clist_column_titles_passive (GTK_CLIST (ctree));
|
||||
gtk_widget_set_usize (ctree, 140, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), ctree, FALSE, FALSE, 0);
|
||||
gtk_widget_show (ctree);
|
||||
|
||||
/* The main preferences notebook */
|
||||
frame = gtk_frame_new (NULL);
|
||||
|
@ -2170,6 +2168,10 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
}
|
||||
}
|
||||
|
||||
/* Recalculate the width of the Category tree now */
|
||||
gtk_clist_set_column_width(GTK_CLIST (ctree), 0,
|
||||
gtk_clist_optimal_column_width(GTK_CLIST (ctree), 0));
|
||||
gtk_widget_show (ctree);
|
||||
gtk_widget_show (notebook);
|
||||
gtk_widget_show (prefs_dlg);
|
||||
}
|
||||
|
|
|
@ -1020,7 +1020,7 @@ file_prefs_notebook_append_page (GtkNotebook *notebook,
|
|||
*new_node = gtk_ctree_insert_node (ctree, parent, NULL,
|
||||
titles, 0,
|
||||
NULL, NULL, NULL, NULL,
|
||||
FALSE, FALSE);
|
||||
FALSE, TRUE);
|
||||
gtk_ctree_node_set_row_data (ctree,
|
||||
*new_node, (gpointer) page_index);
|
||||
gtk_notebook_append_page (notebook, out_vbox, NULL);
|
||||
|
@ -1187,9 +1187,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
ctree = gtk_ctree_new_with_titles (1, 0, titles);
|
||||
gtk_ctree_set_indent (GTK_CTREE (ctree), 15);
|
||||
gtk_clist_column_titles_passive (GTK_CLIST (ctree));
|
||||
gtk_widget_set_usize (ctree, 140, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), ctree, FALSE, FALSE, 0);
|
||||
gtk_widget_show (ctree);
|
||||
|
||||
/* The main preferences notebook */
|
||||
frame = gtk_frame_new (NULL);
|
||||
|
@ -2170,6 +2168,10 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
}
|
||||
}
|
||||
|
||||
/* Recalculate the width of the Category tree now */
|
||||
gtk_clist_set_column_width(GTK_CLIST (ctree), 0,
|
||||
gtk_clist_optimal_column_width(GTK_CLIST (ctree), 0));
|
||||
gtk_widget_show (ctree);
|
||||
gtk_widget_show (notebook);
|
||||
gtk_widget_show (prefs_dlg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue