[glade] GladeSignalEditor: Only show the warning icon for the row which displays the signal name
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeSignalEditor: Only show the warning icon for the row which displays the signal name
- Date: Wed, 10 Apr 2013 16:06:40 +0000 (UTC)
commit 19a99a02de9710614ebba8653d5b9bbb6a014764
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Apr 10 22:23:15 2013 +0900
GladeSignalEditor: Only show the warning icon for the row which displays the signal name
gladeui/glade-signal-editor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-signal-editor.c b/gladeui/glade-signal-editor.c
index d07ad3f..28e1cab 100644
--- a/gladeui/glade-signal-editor.c
+++ b/gladeui/glade-signal-editor.c
@@ -1025,10 +1025,13 @@ glade_signal_editor_warning_cell_data_func (GtkTreeViewColumn *column,
{
GladeSignal *signal;
gboolean visible = FALSE;
+ gboolean show_name;
gtk_tree_model_get (model, iter,
GLADE_SIGNAL_COLUMN_SIGNAL, &signal,
+ GLADE_SIGNAL_COLUMN_SHOW_NAME, &show_name,
-1);
+
if (signal)
{
const gchar* warning = glade_signal_get_support_warning (signal);
@@ -1037,7 +1040,7 @@ glade_signal_editor_warning_cell_data_func (GtkTreeViewColumn *column,
}
g_object_set (renderer,
- "visible", visible,
+ "visible", (visible && show_name),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]