From c162a93f72d38ce37a2da2e5ead3126d79f0aed5 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 23 Jan 2004 18:07:44 +0000 Subject: Allow passing the translation domain to ephy_dialog_construct, to make 2004-01-23 Christian Persch * 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. --- src/ephy-encoding-dialog.c | 5 +++-- src/pdm-dialog.c | 4 +++- src/prefs-dialog.c | 11 +++++++---- 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c index f3df12558..69ccf13a1 100644 --- a/src/ephy-encoding-dialog.c +++ b/src/ephy-encoding-dialog.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2000, 2001, 2002, 2003 Marco Pesenti Gritti - * 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 @@ -319,7 +319,8 @@ ephy_encoding_dialog_init (EphyEncodingDialog *dialog) ephy_dialog_construct (EPHY_DIALOG (dialog), properties, ephy_file ("epiphany.glade"), - "encoding_dialog"); + "encoding_dialog", + NULL); dialog->priv->filter = ephy_node_filter_new (); diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index 6d77006d1..43525fedd 100755 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -1,6 +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 @@ -786,7 +787,8 @@ pdm_dialog_init (PdmDialog *dialog) ephy_dialog_construct (EPHY_DIALOG(dialog), properties, ephy_file ("epiphany.glade"), - "pdm_dialog"); + "pdm_dialog", + NULL); /** * Group all Properties and Remove buttons in the same size group to diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index d0a9b1e4b..24abf552f 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -1,6 +1,6 @@ /* * Copyright (C) 200-2003 Marco Pesenti Gritti - * 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 @@ -795,9 +795,11 @@ setup_add_language_dialog (PrefsDialog *pd) "parent-window", window, NULL)); - ephy_dialog_construct (dialog, add_lang_props, + ephy_dialog_construct (dialog, + add_lang_props, ephy_file ("prefs-dialog.glade"), - "add_language_dialog"); + "add_language_dialog", + NULL); store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); @@ -1147,7 +1149,8 @@ prefs_dialog_init (PrefsDialog *pd) ephy_dialog_construct (dialog, properties, ephy_file ("prefs-dialog.glade"), - "prefs_dialog"); + "prefs_dialog", + NULL); ephy_dialog_add_enum (dialog, properties[ACCEPT_COOKIES_PROP].id, n_cookies_accept_enum, cookies_accept_enum); -- cgit v1.2.3