[geany/geany] aa96bc: Add missing ComboBox cell renderers in Glade rather than manually
Colomban Wendling
git-noreply at xxxxx
Thu Jul 26 00:02:50 UTC 2012
Branch: refs/heads/document-messages
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 08 Jan 2012 21:55:28
Commit: aa96bc2cbfab0a8033d0ed600541c2d2e0c767bb
https://github.com/geany/geany/commit/aa96bc2cbfab0a8033d0ed600541c2d2e0c767bb
Log Message:
-----------
Add missing ComboBox cell renderers in Glade rather than manually
This also fixes the duplicated renderers when there was already one
in Glade, and a second one got added manually.
Modified Paths:
--------------
data/geany.glade
src/ui_utils.c
Modified: data/geany.glade
18 files changed, 18 insertions(+), 0 deletions(-)
===================================================================
@@ -4256,6 +4256,12 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">liststore8</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext5"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
</object>
<packing>
<property name="left_attach">1</property>
@@ -4352,6 +4358,12 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">liststore6</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext6"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
</object>
</child>
</object>
@@ -4412,6 +4424,12 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">liststore7</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext7"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
</object>
</child>
</object>
Modified: src/ui_utils.c
10 files changed, 0 insertions(+), 10 deletions(-)
===================================================================
@@ -2256,16 +2256,6 @@ void ui_init_builder(void)
toplevel = ui_get_top_parent(widget);
if (toplevel)
ui_hookup_widget(toplevel, widget, name);
-
- /* Glade doesn't seem to add cell renderers for the combo boxes,
- * so they are added here. */
- if (GTK_IS_COMBO_BOX(widget))
- {
- renderer = gtk_cell_renderer_text_new();
- gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(widget), renderer, TRUE);
- gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(widget),
- renderer, "text", 0, NULL);
- }
}
g_slist_free(all_objects);
}
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list