[gimp] Use plain togglebuttons, not checkbuttons for the "lock" toggles



commit 2d5b6d83d51da904a21a5d8ea1b3d58f93f3bb30
Author: Michael Natterer <mitch gimp org>
Date:   Thu Sep 3 13:07:06 2009 +0200

    Use plain togglebuttons, not checkbuttons for the "lock" toggles
    
    The checkbox is not really needed, the icons can just as well be
    toggles themselves.

 app/widgets/gimpitemtreeview.c  |    2 +-
 app/widgets/gimplayertreeview.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpitemtreeview.c b/app/widgets/gimpitemtreeview.c
index ac5c88e..5cc5ef7 100644
--- a/app/widgets/gimpitemtreeview.c
+++ b/app/widgets/gimpitemtreeview.c
@@ -443,7 +443,7 @@ gimp_item_tree_view_constructor (GType                  type,
 
   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,
                       FALSE, FALSE, 0);
   gtk_box_reorder_child (GTK_BOX (hbox),
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index 5fc2e02..7a336ce 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -319,7 +319,7 @@ gimp_layer_tree_view_init (GimpLayerTreeView *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,
                       FALSE, FALSE, 0);
   gtk_widget_show (view->priv->lock_alpha_toggle);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]