Use plain togglebuttons, not checkbuttons for the "lock" toggles

The checkbox is not really needed, the icons can just as well be
toggles themselves.
This commit is contained in:
Michael Natterer 2009-09-03 13:07:06 +02:00
parent 007fc34af8
commit 2d5b6d83d5
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ gimp_item_tree_view_constructor (GType type,
hbox = gimp_item_tree_view_get_lock_box (item_view); hbox = gimp_item_tree_view_get_lock_box (item_view);
item_view->priv->lock_content_toggle = gtk_check_button_new (); item_view->priv->lock_content_toggle = gtk_toggle_button_new ();
gtk_box_pack_start (GTK_BOX (hbox), item_view->priv->lock_content_toggle, gtk_box_pack_start (GTK_BOX (hbox), item_view->priv->lock_content_toggle,
FALSE, FALSE, 0); FALSE, FALSE, 0);
gtk_box_reorder_child (GTK_BOX (hbox), gtk_box_reorder_child (GTK_BOX (hbox),

View File

@ -319,7 +319,7 @@ gimp_layer_tree_view_init (GimpLayerTreeView *view)
hbox = gimp_item_tree_view_get_lock_box (GIMP_ITEM_TREE_VIEW (view)); hbox = gimp_item_tree_view_get_lock_box (GIMP_ITEM_TREE_VIEW (view));
view->priv->lock_alpha_toggle = gtk_check_button_new (); view->priv->lock_alpha_toggle = gtk_toggle_button_new ();
gtk_box_pack_start (GTK_BOX (hbox), view->priv->lock_alpha_toggle, gtk_box_pack_start (GTK_BOX (hbox), view->priv->lock_alpha_toggle,
FALSE, FALSE, 0); FALSE, FALSE, 0);
gtk_widget_show (view->priv->lock_alpha_toggle); gtk_widget_show (view->priv->lock_alpha_toggle);