added a frame around the tree.

2001-09-28  Michael Natterer  <mitch@gimp.org>

	* app/gui/preferences-dialog.c: added a frame around the tree.

	* app/widgets/gimphistogramview.c: forgot to pass the "detail" to
	g_signal_emit(). Should fix the histogram tool. Thanks to Seth for
	debugging.
This commit is contained in:
Michael Natterer 2001-09-28 12:55:25 +00:00 committed by Michael Natterer
parent 0ac7db1ec7
commit af50d64ab4
4 changed files with 47 additions and 31 deletions

View File

@ -1,3 +1,11 @@
2001-09-28 Michael Natterer <mitch@gimp.org>
* app/gui/preferences-dialog.c: added a frame around the tree.
* app/widgets/gimphistogramview.c: forgot to pass the "detail" to
g_signal_emit(). Should fix the histogram tool. Thanks to Seth for
debugging.
2001-09-28 Wang Jian <lark@linux.net.cn>
* configure.in(ALL_LINGUAS): Added zh_CN

View File

@ -1543,8 +1543,7 @@ preferences_dialog_create (void)
old_tile_cache_size = edit_tile_cache_size;
/* Create the dialog */
prefs_dlg =
gimp_dialog_new (_("Preferences"), "gimp_preferences",
prefs_dlg = gimp_dialog_new (_("Preferences"), "gimp_preferences",
prefs_help_func,
"dialogs/preferences/preferences.html",
GTK_WIN_POS_NONE,
@ -1566,6 +1565,11 @@ preferences_dialog_create (void)
gtk_widget_show (hbox);
/* The categories tree */
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
tree = gtk_tree_store_new (2, G_TYPE_STRING, G_TYPE_INT);
tv = gtk_tree_view_new_with_model (GTK_TREE_MODEL (tree));
g_object_unref (G_OBJECT (tree));
@ -1575,7 +1579,7 @@ preferences_dialog_create (void)
gtk_cell_renderer_text_new (),
"text", 0, NULL);
gtk_box_pack_start (GTK_BOX (hbox), tv, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (frame), tv);
/* The main preferences notebook */
frame = gtk_frame_new (NULL);

View File

@ -1543,8 +1543,7 @@ preferences_dialog_create (void)
old_tile_cache_size = edit_tile_cache_size;
/* Create the dialog */
prefs_dlg =
gimp_dialog_new (_("Preferences"), "gimp_preferences",
prefs_dlg = gimp_dialog_new (_("Preferences"), "gimp_preferences",
prefs_help_func,
"dialogs/preferences/preferences.html",
GTK_WIN_POS_NONE,
@ -1566,6 +1565,11 @@ preferences_dialog_create (void)
gtk_widget_show (hbox);
/* The categories tree */
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
tree = gtk_tree_store_new (2, G_TYPE_STRING, G_TYPE_INT);
tv = gtk_tree_view_new_with_model (GTK_TREE_MODEL (tree));
g_object_unref (G_OBJECT (tree));
@ -1575,7 +1579,7 @@ preferences_dialog_create (void)
gtk_cell_renderer_text_new (),
"text", 0, NULL);
gtk_box_pack_start (GTK_BOX (hbox), tv, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (frame), tv);
/* The main preferences notebook */
frame = gtk_frame_new (NULL);

View File

@ -216,7 +216,7 @@ histogram_widget_events (HistogramWidget *histogram,
gdk_pointer_ungrab (bevent->time);
g_signal_emit (G_OBJECT(histogram),
histogram_widget_signals[RANGE_CHANGED],
histogram_widget_signals[RANGE_CHANGED], 0,
MIN (histogram->start, histogram->end),
MAX (histogram->start, histogram->end));
break;
@ -274,7 +274,7 @@ histogram_widget_update (HistogramWidget *histogram_widget,
/* Give a range callback */
g_signal_emit (G_OBJECT (histogram_widget),
histogram_widget_signals[RANGE_CHANGED],
histogram_widget_signals[RANGE_CHANGED], 0,
MIN (histogram_widget->start, histogram_widget->end),
MAX (histogram_widget->start, histogram_widget->end));
}
@ -301,7 +301,7 @@ histogram_widget_channel (HistogramWidget *histogram,
/* Give a range callback */
g_signal_emit (G_OBJECT (histogram),
histogram_widget_signals[RANGE_CHANGED],
histogram_widget_signals[RANGE_CHANGED], 0,
MIN (histogram->start, histogram->end),
MAX (histogram->start, histogram->end));
}