Port EmpathyStatusIcon to new API
authorXavier Claessens <xclaesse@gmail.com>
Thu, 16 Apr 2009 12:29:04 +0000 (12:29 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 16 Apr 2009 12:29:04 +0000 (12:29 +0000)
From: Xavier Claessens <xclaesse@gmail.com>

svn path=/trunk/; revision=2863

src/empathy-status-icon.c

index 6c0ddb2502b39b0b43b6dac6e9ee9688740348d5..ef4433631bed9970be1a329af2fe2e37adef9b4a 100644 (file)
@@ -24,7 +24,6 @@
 #include <string.h>
 
 #include <gtk/gtk.h>
-#include <glade/glade.h>
 #include <gdk/gdkkeysyms.h>
 
 #include <libnotify/notification.h>
@@ -454,13 +453,11 @@ static void
 status_icon_create_menu (EmpathyStatusIcon *icon)
 {
        EmpathyStatusIconPriv *priv = GET_PRIV (icon);
-       GladeXML              *glade;
+       GtkBuilder            *gui;
        gchar                 *filename;
 
-       filename = empathy_file_lookup ("empathy-status-icon.glade", "src");
-       glade = empathy_glade_get_file (filename,
-                                      "tray_menu",
-                                      NULL,
+       filename = empathy_file_lookup ("empathy-status-icon.ui", "src");
+       gui = empathy_builder_get_file (filename,
                                       "tray_menu", &priv->popup_menu,
                                       "tray_show_list", &priv->show_window_item,
                                       "tray_new_message", &priv->message_item,
@@ -468,14 +465,13 @@ status_icon_create_menu (EmpathyStatusIcon *icon)
                                       NULL);
        g_free (filename);
 
-       empathy_glade_connect (glade,
-                             icon,
+       empathy_builder_connect (gui, icon,
                              "tray_show_list", "toggled", status_icon_show_hide_window_cb,
                              "tray_new_message", "activate", status_icon_new_message_cb,
                              "tray_quit", "activate", status_icon_quit_cb,
                              NULL);
 
-       g_object_unref (glade);
+       g_object_unref (gui);
 }
 
 static void