aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-irc-network-dialog.c
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2013-03-22 23:39:22 +0800
committerEmanuele Aina <emanuele.aina@collabora.com>2013-04-01 17:50:28 +0800
commita169a5c76e983532b4a0699bfc39cd510768a923 (patch)
tree5112d15ff58ffdc5989543e7e2955054c30c693a /libempathy-gtk/empathy-irc-network-dialog.c
parent788d278853ee3ac061f84b611a3290d5adc31577 (diff)
downloadgsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.tar
gsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.tar.gz
gsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.tar.bz2
gsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.tar.lz
gsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.tar.xz
gsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.tar.zst
gsoc2013-empathy-a169a5c76e983532b4a0699bfc39cd510768a923.zip
account-widget: Embed .ui files with GResource
https://bugzilla.gnome.org/show_bug.cgi?id=696978
Diffstat (limited to 'libempathy-gtk/empathy-irc-network-dialog.c')
-rw-r--r--libempathy-gtk/empathy-irc-network-dialog.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-irc-network-dialog.c b/libempathy-gtk/empathy-irc-network-dialog.c
index aedb5dc79..fe26ceb34 100644
--- a/libempathy-gtk/empathy-irc-network-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-dialog.c
@@ -453,7 +453,6 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network,
GtkAdjustment *adjustment;
GtkTreeSelection *selection;
GtkTreeViewColumn *column;
- gchar *filename;
GtkWidget *sw, *toolbar;
GtkStyleContext *context;
@@ -472,9 +471,7 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network,
dialog->network = network;
g_object_ref (dialog->network);
- filename = empathy_file_lookup ("empathy-account-widget-irc.ui",
- "libempathy-gtk");
- gui = empathy_builder_get_file (filename,
+ gui = empathy_builder_get_resource (ACCOUNT_WIDGETS_RESOURCES_PREFIX "/empathy-account-widget-irc.ui",
"irc_network_dialog", &dialog->dialog,
"button_close", &dialog->button_close,
"entry_network", &dialog->entry_network,
@@ -487,7 +484,6 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network,
"scrolledwindow_network_server", &sw,
"toolbar_network_server", &toolbar,
NULL);
- g_free (filename);
store = gtk_list_store_new (4, G_TYPE_OBJECT, G_TYPE_STRING,
G_TYPE_UINT, G_TYPE_BOOLEAN);