mirror of https://github.com/GNOME/gimp.git
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:
parent
007fc34af8
commit
2d5b6d83d5
|
@ -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),
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue