aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-glade.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-24 02:07:44 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-24 02:07:44 +0800
commitc162a93f72d38ce37a2da2e5ead3126d79f0aed5 (patch)
tree61dd0f98b92b0e985947d5c2044a689f35d8c4c7 /lib/ephy-glade.c
parentebcb66eab9a7e65e39bf2f2d665b8ebc27d0c4e2 (diff)
downloadgsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar
gsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar.gz
gsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar.bz2
gsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar.lz
gsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar.xz
gsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar.zst
gsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.zip
Allow passing the translation domain to ephy_dialog_construct, to make
2004-01-23 Christian Persch <chpe@cvs.gnome.org> * embed/downloader-view.c: (downloader_view_build_ui): * embed/find-dialog.c: (find_dialog_init): * embed/mozilla/GtkNSSDialogs.cpp: * embed/print-dialog.c: (ephy_print_dialog_new), (ephy_print_setup_dialog_new): * lib/ephy-dialog.c: (impl_construct), (ephy_dialog_construct): * lib/ephy-dialog.h: * lib/ephy-glade.c: (ephy_glade_widget_new): * lib/ephy-glade.h: * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): * src/pdm-dialog.c: (pdm_dialog_init): * src/prefs-dialog.c: (setup_add_language_dialog), (prefs_dialog_init): Allow passing the translation domain to ephy_dialog_construct, to make extension's dialogues translatable. Fix all callers.
Diffstat (limited to 'lib/ephy-glade.c')
-rw-r--r--lib/ephy-glade.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/ephy-glade.c b/lib/ephy-glade.c
index 0c782bae9..39487d744 100644
--- a/lib/ephy-glade.c
+++ b/lib/ephy-glade.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000 Marco Pesenti Gritti
+ * Copyright (C) 2000, 2004 Marco Pesenti Gritti
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
*/
#include "ephy-glade.h"
@@ -34,15 +36,18 @@ glade_signal_connect_func (const gchar *cb_name, GObject *obj,
* signals attached and data set to the provided parameter.
*/
GladeXML *
-ephy_glade_widget_new (const char *file, const char *widget_name,
- GtkWidget **root, gpointer data)
+ephy_glade_widget_new (const char *file,
+ const char *widget_name,
+ GtkWidget **root,
+ gpointer data,
+ const char *domain)
{
GladeXML *gxml;
/* build the widget */
/* note that libglade automatically caches the parsed file,
* so we don't need to worry about the efficiency of this */
- gxml = glade_xml_new (file, widget_name, NULL);
+ gxml = glade_xml_new (file, widget_name, domain);
g_return_val_if_fail (gxml != NULL, NULL);
/* lookup the root widget if requested */