diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-11 04:25:51 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-11 04:25:51 +0800 |
commit | 152a080763af746dca107497730583c9f75b71c9 (patch) | |
tree | 908e9931e8ff58f74bf006a58129bad83689e0b3 /libempathy-gtk/empathy-ui-utils.c | |
parent | a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5 (diff) | |
download | gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.tar gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.tar.gz gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.tar.bz2 gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.tar.lz gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.tar.xz gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.tar.zst gsoc2013-empathy-152a080763af746dca107497730583c9f75b71c9.zip |
Change a bit the generic account setting API.
svn path=/trunk/; revision=622
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 23875f722..9c66e73ba 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -53,13 +53,17 @@ struct SizeData { gboolean preserve_aspect_ratio; }; -GladeXML * -empathy_glade_get (const gchar *filename, - const gchar *root, - const gchar *domain) +static GladeXML * +get_glade_file (const gchar *filename, + const gchar *root, + const gchar *domain, + const gchar *first_required_widget, + va_list args) { - GladeXML *gui; - gchar *path; + GladeXML *gui; + gchar *path; + const char *name; + GtkWidget **widget_ptr; path = g_build_filename (UNINSTALLED_GLADE_DIR, filename, NULL); if (!g_file_test (path, G_FILE_TEST_EXISTS)) { @@ -75,22 +79,6 @@ empathy_glade_get (const gchar *filename, g_warning ("Couldn't find necessary glade file '%s'", filename); } - return gui; -} - -static GladeXML * -get_glade_file (const gchar *filename, - const gchar *root, - const gchar *domain, - const gchar *first_required_widget, - va_list args) -{ - GladeXML *gui; - const char *name; - GtkWidget **widget_ptr; - - gui = empathy_glade_get (filename, root, domain); - for (name = first_required_widget; name; name = va_arg (args, char *)) { widget_ptr = va_arg (args, void *); |