aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-encoding-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-31 06:58:12 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-31 06:58:12 +0800
commit362396c2bf69c659b5fcea2eaf3ed17b6ff93b09 (patch)
tree14f36a7f87ca3e938a14e43efa13a0b14d196a4d /src/ephy-encoding-dialog.c
parent87e9353728c1115e7f60b1f7bb63e79723888907 (diff)
downloadgsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.tar
gsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.tar.gz
gsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.tar.bz2
gsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.tar.lz
gsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.tar.xz
gsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.tar.zst
gsoc2013-epiphany-362396c2bf69c659b5fcea2eaf3ed17b6ff93b09.zip
Remove glade callbacks, and connect from code instead.
2005-10-30 Christian Persch <chpe@cvs.gnome.org> * data/glade/epiphany.glade: * data/glade/prefs-dialog.glade: * data/glade/print.glade: * embed/downloader-view.c: (update_buttons), (downloader_view_build_ui), (download_dialog_pause), (download_dialog_stop), (download_dialog_response_cb), (download_dialog_delete_event_cb): * embed/print-dialog.c: (ephy_print_setup_dialog_response_cb), (ephy_print_setup_dialog_new): * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): * src/pdm-dialog.c: (show_cookies_properties), (cookies_properties_clicked_cb), (pdm_dialog_cookies_construct), (passwords_show_toggled_cb), (pdm_dialog_passwords_construct), (pdm_dialog_response_cb), (pdm_dialog_init), (pdm_dialog_finalize): * src/prefs-dialog.c: (create_language_section), (prefs_dialog_response_cb), (prefs_clear_cache_button_clicked_cb), (set_homepage_entry), (prefs_homepage_current_button_clicked_cb), (prefs_homepage_blank_button_clicked_cb), (prefs_dialog_init): Remove glade callbacks, and connect from code instead.
Diffstat (limited to 'src/ephy-encoding-dialog.c')
-rw-r--r--src/ephy-encoding-dialog.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c
index 8d9f1cb71..261b8f4b5 100644
--- a/src/ephy-encoding-dialog.c
+++ b/src/ephy-encoding-dialog.c
@@ -43,6 +43,7 @@
enum
{
+ WINDOW_PROP,
SCROLLED_WINDOW_PROP,
AUTOMATIC_PROP,
MANUAL_PROP
@@ -51,6 +52,7 @@ enum
static const
EphyDialogProperty properties [] =
{
+ { "encoding_dialog", NULL, PT_NORMAL, 0 },
{ "scrolled_window", NULL, PT_NORMAL, 0 },
{ "automatic_button", NULL, PT_NORMAL, 0 },
{ "manual_button", NULL, PT_NORMAL, 0 },
@@ -73,9 +75,6 @@ struct _EphyEncodingDialogPrivate
static void ephy_encoding_dialog_class_init (EphyEncodingDialogClass *klass);
static void ephy_encoding_dialog_init (EphyEncodingDialog *ge);
-void ephy_encoding_dialog_response_cb (GtkWidget *widget,
- int response,
- EphyEncodingDialog *dialog);
static GObjectClass *parent_class = NULL;
@@ -223,7 +222,7 @@ activate_choice (EphyEncodingDialog *dialog)
}
}
-void
+static void
ephy_encoding_dialog_response_cb (GtkWidget *widget,
int response,
EphyEncodingDialog *dialog)
@@ -286,7 +285,7 @@ automatic_toggled_cb (GtkToggleButton *button, EphyEncodingDialog *dialog)
static void
ephy_encoding_dialog_init (EphyEncodingDialog *dialog)
{
- GtkWidget *treeview, *scroller, *button;
+ GtkWidget *treeview, *scroller, *button, *window;
GtkTreeSelection *selection;
EphyNode *node;
@@ -302,6 +301,10 @@ ephy_encoding_dialog_init (EphyEncodingDialog *dialog)
"encoding_dialog",
NULL);
+ window = ephy_dialog_get_control (EPHY_DIALOG (dialog), properties[WINDOW_PROP].id);
+ g_signal_connect (window, "response",
+ G_CALLBACK (ephy_encoding_dialog_response_cb), dialog);
+
dialog->priv->filter = ephy_node_filter_new ();
node = ephy_encodings_get_all (dialog->priv->encodings);