aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-20 18:57:33 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-21 12:36:35 (GMT)
commit34a256375a96106ac3c646815da49e2fe1ffe7cf (patch)
treed3507995205d43c5ce10daf2798929b0e5df72ea
parent70ef4fb87e7df620dbb037cc0221f12067683246 (diff)
Use GtkStatusbar instead of GnomeAppBar
No need to use the gnome-specific widget. Just use the default Gtk+ one. That should make easier when converting this to Gtk+3. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--data/camorama.glade4
-rw-r--r--src/callbacks.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/data/camorama.glade b/data/camorama.glade
index 0f78aa7..7d08062 100644
--- a/data/camorama.glade
+++ b/data/camorama.glade
@@ -606,12 +606,10 @@
</packing>
</child>
<child>
- <widget class="GnomeAppBar" id="status">
+ <widget class="GtkStatusbar" id="status">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">4</property>
- <property name="has_progress">True</property>
- <property name="has_status">True</property>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/callbacks.c b/src/callbacks.c
index 3b30b92..ad50f69 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -578,13 +578,14 @@ gint timeout_func (cam * cam)
gint fps (GtkWidget * sb)
{
gchar *stat;
+ guint cont = gtk_statusbar_get_context_id (GTK_STATUSBAR(sb), "context");
seconds++;
stat = g_strdup_printf (_("%.2f fps - current %.2f fps - average"),
(float) frames / (float) (2),
(float) frames2 / (float) (seconds * 2));
frames = 0;
- gnome_appbar_push (GNOME_APPBAR (sb), stat);
+ gtk_statusbar_push (GTK_STATUSBAR(sb), cont, stat);
g_free (stat);
return 1;
}

Privacy Policy