widget factory: Add a statusbar

A widget that is not represented in the widget factory is likely
to not get proper attention from theme authors.
This commit is contained in:
Matthias Clasen 2014-06-20 11:10:22 -04:00
parent ef30b8c051
commit e7af95a40c
2 changed files with 23 additions and 0 deletions

View File

@ -310,6 +310,12 @@ activate (GApplication *app)
win_entries, G_N_ELEMENTS (win_entries),
window);
widget = (GtkWidget *)gtk_builder_get_object (builder, "statusbar");
gtk_statusbar_push (GTK_STATUSBAR (widget), 0, "All systems are operating normally.");
g_action_map_add_action (G_ACTION_MAP (window),
G_ACTION (g_property_action_new ("statusbar", widget, "visible")));
widget = (GtkWidget *)gtk_builder_get_object (builder, "progressbar3");
pulse_id = g_timeout_add (250, (GSourceFunc)pulse_it, widget);
g_signal_connect (gtk_builder_get_object (builder, "adjustment1"),

View File

@ -2428,6 +2428,17 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<property name="action_name">win.toolbar</property>
</object>
</child>
<child>
<object class="GtkCheckMenuItem" id="statusbarmenuitem">
<property name="label">_Statusbar</property>
<property name="visible">True</property>
<property name="active">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="action_name">win.statusbar</property>
</object>
</child>
</object>
</child>
</object>
@ -2530,6 +2541,12 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
</child>
</object>
</child>
<child>
<object class="GtkStatusbar" id="statusbar">
<property name="visible">True</property>
<property name="no-show-all">True</property>
</object>
</child>
</object>
</child>
</object>