empathy r2854 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2854 - trunk/src
- Date: Thu, 16 Apr 2009 12:28:34 +0000 (UTC)
Author: xclaesse
Date: Thu Apr 16 12:28:34 2009
New Revision: 2854
URL: http://svn.gnome.org/viewvc/empathy?rev=2854&view=rev
Log:
Port EmpathyAccountsDialog to new API
From: Xavier Claessens <xclaesse gmail com>
Modified:
trunk/src/empathy-accounts-dialog.c
Modified: trunk/src/empathy-accounts-dialog.c
==============================================================================
--- trunk/src/empathy-accounts-dialog.c (original)
+++ trunk/src/empathy-accounts-dialog.c Thu Apr 16 12:28:34 2009
@@ -28,7 +28,6 @@
#include <stdlib.h>
#include <gtk/gtk.h>
-#include <glade/glade.h>
#include <glib/gi18n.h>
#include <dbus/dbus-glib.h>
@@ -1044,7 +1043,7 @@
McAccount *selected_account)
{
static EmpathyAccountsDialog *dialog = NULL;
- GladeXML *glade;
+ GtkBuilder *gui;
gchar *filename;
GList *accounts, *l;
gboolean import_asked;
@@ -1056,11 +1055,9 @@
dialog = g_new0 (EmpathyAccountsDialog, 1);
- filename = empathy_file_lookup ("empathy-accounts-dialog.glade",
+ filename = empathy_file_lookup ("empathy-accounts-dialog.ui",
"src");
- glade = empathy_glade_get_file (filename,
- "accounts_dialog",
- NULL,
+ gui = empathy_builder_get_file (filename,
"accounts_dialog", &dialog->window,
"vbox_details", &dialog->vbox_details,
"frame_no_profile", &dialog->frame_no_profile,
@@ -1079,8 +1076,7 @@
NULL);
g_free (filename);
- empathy_glade_connect (glade,
- dialog,
+ empathy_builder_connect (gui, dialog,
"accounts_dialog", "destroy", accounts_dialog_destroy_cb,
"accounts_dialog", "response", accounts_dialog_response_cb,
"button_create", "clicked", accounts_dialog_button_create_clicked_cb,
@@ -1093,7 +1089,7 @@
g_object_add_weak_pointer (G_OBJECT (dialog->window), (gpointer) &dialog);
- g_object_unref (glade);
+ g_object_unref (gui);
/* Create profile chooser */
dialog->combobox_profile = empathy_profile_chooser_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]