aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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 /embed
parentebcb66eab9a7e65e39bf2f2d665b8ebc27d0c4e2 (diff)
downloadgsoc2013-epiphany-c162a93f72d38ce37a2da2e5ead3126d79f0aed5.tar.gz
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 'embed')
-rw-r--r--embed/downloader-view.c6
-rwxr-xr-xembed/find-dialog.c6
-rw-r--r--embed/mozilla/GtkNSSDialogs.cpp2
-rwxr-xr-xembed/print-dialog.c15
4 files changed, 20 insertions, 9 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 54f94ea5c..f79f5c2c0 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2000, 2001, 2002 Marco Pesenti Gritti
+ * Copyright (C) 2000-2004 Marco Pesenti Gritti
+ * Copyright (C) 2003, 2004 Xan Lopez
*
* 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
@@ -434,7 +435,8 @@ downloader_view_build_ui (DownloaderView *dv)
ephy_dialog_construct (d,
properties,
ephy_file ("epiphany.glade"),
- "download_manager_dialog");
+ "download_manager_dialog",
+ NULL);
/* lookup needed widgets */
priv->window = ephy_dialog_get_control(d, properties[PROP_WINDOW].id);
diff --git a/embed/find-dialog.c b/embed/find-dialog.c
index 4412539bd..53bb8e3b5 100755
--- a/embed/find-dialog.c
+++ b/embed/find-dialog.c
@@ -1,5 +1,7 @@
/*
* Copyright (C) 2002 Jorn Baayen
+ * Copyright (C) 2003 Marco Pesenti Gritti
+ * Copyright (C) 2003, 2004 Christian Persch
*
* 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
@@ -254,7 +256,9 @@ find_dialog_init (FindDialog *dialog)
ephy_dialog_construct (EPHY_DIALOG(dialog),
properties,
ephy_file ("epiphany.glade"),
- "find_dialog");
+ "find_dialog",
+ NULL);
+
update_navigation_controls (dialog, TRUE, TRUE);
window = ephy_dialog_get_control (EPHY_DIALOG (dialog),
diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp
index 9c54f420c..fa86c08cf 100644
--- a/embed/mozilla/GtkNSSDialogs.cpp
+++ b/embed/mozilla/GtkNSSDialogs.cpp
@@ -1256,7 +1256,7 @@ GtkNSSDialogs::ViewCert(nsIInterfaceRequestor *ctx,
gxml = ephy_glade_widget_new (ephy_file ("certificate-dialogs.glade"),
"viewcert_dialog",
- &dialog, NULL);
+ &dialog, NULL, NULL);
nsCOMPtr<nsIDOMWindow> parent = do_GetInterface (ctx);
GtkWidget *gparent = MozillaFindGtkParent (parent);
diff --git a/embed/print-dialog.c b/embed/print-dialog.c
index 37953f015..4fc54788c 100755
--- a/embed/print-dialog.c
+++ b/embed/print-dialog.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2002 Jorn Baayen
- * Copyright (C) 2003 Christian Persch
+ * Copyright (C) 2003, 2004 Christian Persch
*
* 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
@@ -330,8 +330,11 @@ ephy_print_dialog_new (GtkWidget *parent,
g_object_set (G_OBJECT (dialog), "parent-window", parent, NULL);
}
- ephy_dialog_construct (dialog, print_props,
- ephy_file ("print.glade"), "print_dialog");
+ ephy_dialog_construct (dialog,
+ print_props,
+ ephy_file ("print.glade"),
+ "print_dialog",
+ NULL);
window = ephy_dialog_get_control (dialog, print_props[WINDOW_PROP].id);
icon = gtk_widget_render_icon (window,
@@ -359,9 +362,11 @@ ephy_print_setup_dialog_new (void)
dialog = EPHY_DIALOG (g_object_new (EPHY_TYPE_DIALOG, NULL));
- ephy_dialog_construct (dialog, setup_props,
+ ephy_dialog_construct (dialog,
+ setup_props,
ephy_file ("print.glade"),
- "print_setup_dialog");
+ "print_setup_dialog",
+ NULL);
ephy_dialog_add_enum (dialog, setup_props[PAPER_PROP].id,
n_paper_format_enum, paper_format_enum);