[totem/gnome-2-28] Use gtk_statusbar_get_message_area()
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem/gnome-2-28] Use gtk_statusbar_get_message_area()
- Date: Fri, 4 Dec 2009 00:17:18 +0000 (UTC)
commit 86337009f2ba30ea21a30042189fa3e1fe62ce69
Author: Christian Persch <chpe gnome org>
Date: Mon Nov 16 14:55:00 2009 +0100
Use gtk_statusbar_get_message_area()
Just the the provided hbox, instead of performing widget surgery.
Bug #602096.
src/totem-statusbar.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-statusbar.c b/src/totem-statusbar.c
index f9f31c0..ea6cef7 100644
--- a/src/totem-statusbar.c
+++ b/src/totem-statusbar.c
@@ -62,6 +62,9 @@ totem_statusbar_init (TotemStatusbar *statusbar)
statusbar->time = 0;
statusbar->length = -1;
+#if GTK_CHECK_VERSION (2, 19, 1)
+ hbox = gtk_statusbar_get_message_area (gstatusbar);
+#else
hbox = gtk_hbox_new (FALSE, SPACING);
/* Widget surgery */
@@ -71,6 +74,7 @@ totem_statusbar_init (TotemStatusbar *statusbar)
g_object_unref (gstatusbar->label);
gtk_container_add (GTK_CONTAINER (gstatusbar->frame), hbox);
gtk_widget_show (hbox);
+#endif
gtk_label_set_ellipsize (GTK_LABEL (gstatusbar->label), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]