aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-03-19 03:13:23 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-03-19 03:13:23 +0800
commitd012141a9d6dc6e0b374b4e992e18239b21501dd (patch)
tree430ad3fc3ab6fdda82d91afe2acaadc081ac8c1a /src/prefs-dialog.c
parentd248386941ce108b1e99d1a553682d5af791a628 (diff)
downloadgsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar
gsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar.gz
gsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar.bz2
gsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar.lz
gsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar.xz
gsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar.zst
gsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.zip
Reimplement ephystate using xml and make it easier to use. -> remove some
2003-03-18 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-dialog.c: (setup_default_size): * lib/ephy-state.c: (ephy_states_load), (ephy_states_save), (find_by_name), (ensure_states), (ephy_state_window_set_size), (ephy_state_window_save_size), (window_configure_event_cb), (window_state_event_cb), (ephy_state_add_window), (ephy_state_save): * lib/ephy-state.h: * lib/ephy-types.h: * src/ephy-shell.c: (ephy_shell_finalize): * src/ephy-window.c: (setup_window), (ephy_window_init), (ephy_window_show): * src/prefs-dialog.c: (prefs_dialog_init): Reimplement ephystate using xml and make it easier to use. -> remove some duplicate code
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 813821cb6..c94998d60 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -298,16 +298,6 @@ prefs_build_notebook (PrefsDialog *pd)
}
}
-static gboolean
-prefs_dialog_configure_event_cb (GtkWidget *widget,
- GdkEventConfigure *event,
- gpointer data)
-{
- ephy_state_save_window (widget, "prefs_dialog");
-
- return FALSE;
-}
-
static void
prefs_dialog_init (PrefsDialog *pd)
{
@@ -316,13 +306,8 @@ prefs_dialog_init (PrefsDialog *pd)
gtk_window_set_title (GTK_WINDOW(pd), _("Preferences"));
gtk_dialog_set_has_separator (GTK_DIALOG(pd), FALSE);
- ephy_state_load_window (GTK_WIDGET(pd),
- "prefs_dialog", -1, -1, FALSE);
-
- g_signal_connect (pd,
- "configure_event",
- G_CALLBACK (prefs_dialog_configure_event_cb),
- NULL);
+ ephy_state_add_window (GTK_WIDGET(pd),
+ "prefs_dialog", -1, -1);
prefs_build_notebook (pd);
}