aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-ft-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:28:47 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:28:47 +0800
commitc0e99b7e12dc2a5f6906f9b1efadd5c844f59524 (patch)
treeb593d1450254fb4d7f980ac87b8b725f70403ef0 /src/empathy-ft-manager.c
parent354b5ec750f0e2e966808bf3184bcd75fcb4b8e9 (diff)
downloadgsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.tar
gsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.tar.gz
gsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.tar.bz2
gsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.tar.lz
gsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.tar.xz
gsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.tar.zst
gsoc2013-empathy-c0e99b7e12dc2a5f6906f9b1efadd5c844f59524.zip
Port EmpathyFtManager to new API
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2858
Diffstat (limited to 'src/empathy-ft-manager.c')
-rw-r--r--src/empathy-ft-manager.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index 43ab5abc5..e157cdbfe 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -590,7 +590,7 @@ ft_manager_destroy_cb (GtkWidget *widget,
static void
ft_manager_build_ui (EmpathyFTManager *ft_manager)
{
- GladeXML *glade;
+ GtkBuilder *gui;
gint x, y, w, h;
GtkTreeView *view;
GtkListStore *liststore;
@@ -602,9 +602,8 @@ ft_manager_build_ui (EmpathyFTManager *ft_manager)
if (ft_manager->priv->window != NULL)
return;
- filename = empathy_file_lookup ("empathy-ft-manager.glade", "src");
- glade = empathy_glade_get_file (filename,
- "ft_manager_dialog", NULL,
+ filename = empathy_file_lookup ("empathy-ft-manager.ui", "src");
+ gui = empathy_builder_get_file (filename,
"ft_manager_dialog", &ft_manager->priv->window,
"ft_list", &ft_manager->priv->treeview,
"open_button", &ft_manager->priv->open_button,
@@ -612,14 +611,14 @@ ft_manager_build_ui (EmpathyFTManager *ft_manager)
NULL);
g_free (filename);
- empathy_glade_connect (glade, ft_manager,
+ empathy_builder_connect (gui, ft_manager,
"ft_manager_dialog", "destroy", ft_manager_destroy_cb,
"ft_manager_dialog", "response", ft_manager_response_cb,
"ft_manager_dialog", "delete-event", ft_manager_delete_event_cb,
"ft_manager_dialog", "configure-event", ft_manager_configure_event_cb,
NULL);
- g_object_unref (glade);
+ g_object_unref (gui);
/* Window geometry. */
empathy_geometry_load ("ft-manager", &x, &y, &w, &h);
@@ -633,7 +632,7 @@ ft_manager_build_ui (EmpathyFTManager *ft_manager)
if (w > 0 && h > 0)
{
- /* Use the defaults from the glade file if we don't have
+ /* Use the defaults from the ui file if we don't have
* good w, h geometry. */
gtk_window_resize (GTK_WINDOW (ft_manager->priv->window), w, h);
}