[glade3/signal-tree-model: 287/358] gladeui: Fix state of checkitems in signal-editor



commit 5b8ab44c8384abebd6031439da4ccc5c1ff1a0c8
Author: Johannes Schmid <jhs gnome org>
Date:   Fri Dec 31 00:00:54 2010 +0100

    gladeui: Fix state of checkitems in signal-editor

 gladeui/glade-signal-editor.c |    6 +-----
 gladeui/glade-signal-model.c  |    4 ++--
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gladeui/glade-signal-editor.c b/gladeui/glade-signal-editor.c
index a8f9393..4c66758 100644
--- a/gladeui/glade-signal-editor.c
+++ b/gladeui/glade-signal-editor.c
@@ -483,7 +483,6 @@ glade_signal_editor_init (GladeSignalEditor *self)
 	priv->column_handler = gtk_tree_view_column_new_with_attributes (_("Handler"),
 	                                                                  renderer,
 	                                                                  "text", GLADE_SIGNAL_COLUMN_HANDLER,
-	                                                                  "visible", GLADE_SIGNAL_COLUMN_IS_HANDLER,
 	                                                                  NULL);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (self->priv->signal_tree), priv->column_handler);
 	/* Signal user_data */
@@ -498,9 +497,8 @@ glade_signal_editor_init (GladeSignalEditor *self)
 	priv->column_userdata = gtk_tree_view_column_new_with_attributes (_("User data"),
 	                                                              priv->renderer_userdata,
 	                                                              "text", GLADE_SIGNAL_COLUMN_OBJECT,
-	                                                              "visible", GLADE_SIGNAL_COLUMN_IS_HANDLER,
 	                                                              "sensitive", GLADE_SIGNAL_COLUMN_NOT_DUMMY,
-	                                                               "editable", GLADE_SIGNAL_COLUMN_NOT_DUMMY,
+	                                                              "editable", GLADE_SIGNAL_COLUMN_NOT_DUMMY,
 	                                                              NULL);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (self->priv->signal_tree), priv->column_userdata);
 
@@ -510,7 +508,6 @@ glade_signal_editor_init (GladeSignalEditor *self)
 	priv->column_swap = gtk_tree_view_column_new_with_attributes (_("Swap"),
 	                                                              renderer,
 	                                                              "active", GLADE_SIGNAL_COLUMN_SWAP,
-	                                                              "visible", GLADE_SIGNAL_COLUMN_IS_HANDLER,
 	                                                              "sensitive", GLADE_SIGNAL_COLUMN_NOT_DUMMY,
 	                                                              NULL);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (self->priv->signal_tree), priv->column_swap);
@@ -521,7 +518,6 @@ glade_signal_editor_init (GladeSignalEditor *self)
 	priv->column_after = gtk_tree_view_column_new_with_attributes (_("After"),
 	                                                               renderer,
 	                                                               "active", GLADE_SIGNAL_COLUMN_AFTER,
-	                                                               "visible", GLADE_SIGNAL_COLUMN_IS_HANDLER,
 	                                                               "sensitive", GLADE_SIGNAL_COLUMN_NOT_DUMMY,
 	                                                               NULL);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (self->priv->signal_tree), priv->column_after);
diff --git a/gladeui/glade-signal-model.c b/gladeui/glade-signal-model.c
index a027c12..832bd2a 100644
--- a/gladeui/glade-signal-model.c
+++ b/gladeui/glade-signal-model.c
@@ -259,7 +259,7 @@ glade_signal_model_not_dummy_handler (GladeSignalModel* model,
 	if (widget && sig_class && handler)
 		return handler != glade_signal_model_get_dummy_handler (model,
 		                                                       sig_class);
-	return TRUE;
+	return FALSE;
 }
 
 static void
@@ -1004,4 +1004,4 @@ gtk_tree_drag_source_iface_init (GtkTreeDragSourceIface* iface)
 	iface->row_draggable = glade_signal_model_row_draggable;
 	iface->drag_data_get = glade_signal_model_drag_data_get;
 	iface->drag_data_delete = glade_signal_model_drag_data_delete;
-}
\ No newline at end of file
+}



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