pack the widgets without using an alignment. Looks better and works in RTL

2003-09-23  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplayertreeview.c (gimp_layer_tree_view_init):
	pack the widgets without using an alignment. Looks better and
	works in RTL mode as well.
This commit is contained in:
Sven Neumann 2003-09-23 18:39:02 +00:00 committed by Sven Neumann
parent a52de434be
commit a46b9f3380
2 changed files with 16 additions and 15 deletions

View File

@ -1,3 +1,9 @@
2003-09-23 Sven Neumann <sven@gimp.org>
* app/widgets/gimplayertreeview.c (gimp_layer_tree_view_init):
pack the widgets without using an alignment. Looks better and
works in RTL mode as well.
2003-09-23 Sven Neumann <sven@gimp.org> 2003-09-23 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockable.[ch]: added the title pango layout to * app/widgets/gimpdockable.[ch]: added the title pango layout to

View File

@ -234,7 +234,6 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
{ {
GimpContainerTreeView *tree_view; GimpContainerTreeView *tree_view;
GimpDrawableTreeView *drawable_view; GimpDrawableTreeView *drawable_view;
GtkWidget *abox;
GtkWidget *hbox; GtkWidget *hbox;
GtkWidget *toggle; GtkWidget *toggle;
GtkWidget *image; GtkWidget *image;
@ -256,7 +255,7 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
gtk_box_reorder_child (GTK_BOX (view), view->options_box, 0); gtk_box_reorder_child (GTK_BOX (view), view->options_box, 0);
gtk_widget_show (view->options_box); gtk_widget_show (view->options_box);
hbox = gtk_hbox_new (FALSE, 2); hbox = gtk_hbox_new (FALSE, 4);
/* Paint mode menu */ /* Paint mode menu */
@ -265,7 +264,7 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
view, view,
FALSE, FALSE,
GIMP_NORMAL_MODE); GIMP_NORMAL_MODE);
gtk_box_pack_start (GTK_BOX (hbox), view->paint_mode_menu, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), view->paint_mode_menu, TRUE, TRUE, 0);
gtk_widget_show (view->paint_mode_menu); gtk_widget_show (view->paint_mode_menu);
gimp_help_set_help_data (view->paint_mode_menu, gimp_help_set_help_data (view->paint_mode_menu,
@ -273,14 +272,17 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
/* Preserve transparency toggle */ /* Preserve transparency toggle */
abox = gtk_alignment_new (1.0, 0.5, 0.0, 1.0);
gtk_box_pack_end (GTK_BOX (hbox), abox, TRUE, TRUE, 0);
gtk_widget_show (abox);
view->preserve_trans_toggle = toggle = gtk_check_button_new (); view->preserve_trans_toggle = toggle = gtk_check_button_new ();
gtk_container_add (GTK_CONTAINER (abox), toggle); gtk_box_pack_end (GTK_BOX (hbox), toggle, FALSE, FALSE, 0);
gtk_widget_show (toggle); gtk_widget_show (toggle);
g_signal_connect (toggle, "toggled",
G_CALLBACK (gimp_layer_tree_view_preserve_button_toggled),
view);
gimp_help_set_help_data (toggle,
_("Keep Transparency"), "#keep_trans_button");
gtk_widget_style_get (GTK_WIDGET (view), gtk_widget_style_get (GTK_WIDGET (view),
"button_icon_size", &icon_size, "button_icon_size", &icon_size,
NULL); NULL);
@ -289,13 +291,6 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
gtk_container_add (GTK_CONTAINER (toggle), image); gtk_container_add (GTK_CONTAINER (toggle), image);
gtk_widget_show (image); gtk_widget_show (image);
g_signal_connect (toggle, "toggled",
G_CALLBACK (gimp_layer_tree_view_preserve_button_toggled),
view);
gimp_help_set_help_data (toggle,
_("Keep Transparency"), "#keep_trans_button");
gimp_table_attach_aligned (GTK_TABLE (view->options_box), 0, 0, gimp_table_attach_aligned (GTK_TABLE (view->options_box), 0, 0,
_("Mode:"), 1.0, 0.5, _("Mode:"), 1.0, 0.5,
hbox, 2, FALSE); hbox, 2, FALSE);