[gnome-chat] contacts-list-dialog: Work header bar with new version of gtk+



commit ff455113487bf139da1df391962440843459a1b6
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Fri Feb 21 00:47:59 2014 +0200

    contacts-list-dialog: Work header bar with new version of gtk+

 src/chat-contacts-list-dialog.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/chat-contacts-list-dialog.c b/src/chat-contacts-list-dialog.c
index efc012f..2886e7f 100644
--- a/src/chat-contacts-list-dialog.c
+++ b/src/chat-contacts-list-dialog.c
@@ -344,5 +344,9 @@ chat_contacts_list_dialog_class_init (ChatContactsListDialogClass *class)
 GtkWidget *
 chat_contacts_list_dialog_new (void)
 {
-  return g_object_new (CHAT_TYPE_CONTACTS_LIST_DIALOG, NULL);
+  return g_object_new (CHAT_TYPE_CONTACTS_LIST_DIALOG,
+#if GTK_CHECK_VERSION (3, 11, 5)
+                       "use-header-bar", TRUE,
+#endif
+                       NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]