From 1ff25e7c76cafd5abae29b7e7c058cee3f2f2299 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 30 Oct 2005 23:14:00 +0000 Subject: R lib/ephy-glade.c: R lib/ephy-glade.h: 2005-10-31 Christian Persch * embed/mozilla/GtkNSSDialogs.cpp: * embed/print-dialog.c: * lib/Makefile.am: * lib/ephy-dialog.c: (impl_construct): R lib/ephy-glade.c: R lib/ephy-glade.h: Remove ephy-glade since we don't need autoconnect anymore. --- lib/ephy-dialog.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'lib/ephy-dialog.c') diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 9cd0518a3..ef264845c 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -22,7 +22,6 @@ #include "config.h" #include "ephy-dialog.h" -#include "ephy-glade.h" #include "ephy-state.h" #include "ephy-gui.h" #include "eel-gconf-extensions.h" @@ -36,6 +35,9 @@ #include #include #include +#include +#include +#include enum { @@ -1035,14 +1037,18 @@ impl_construct (EphyDialog *dialog, const char *name, const char *domain) { + EphyDialogPrivate *priv = dialog->priv; GladeXML *gxml; - gxml = ephy_glade_widget_new - (file, name, &(dialog->priv->dialog), dialog, domain); + gxml = glade_xml_new (file, name, domain); + g_return_if_fail (gxml != NULL); - if (dialog->priv->name == NULL) + priv->dialog = glade_xml_get_widget (gxml, name); + g_return_if_fail (priv->dialog != NULL); + + if (priv->name == NULL) { - dialog->priv->name = g_strdup (name); + priv->name = g_strdup (name); } if (properties) @@ -1050,10 +1056,8 @@ impl_construct (EphyDialog *dialog, init_props (dialog, properties, gxml); } - g_signal_connect_object (dialog->priv->dialog, - "destroy", - G_CALLBACK(dialog_destroy_cb), - dialog, 0); + g_signal_connect_object (dialog->priv->dialog, "destroy", + G_CALLBACK(dialog_destroy_cb), dialog, 0); g_object_unref (gxml); } -- cgit v1.2.3