aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-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 /lib/ephy-dialog.c
parentd248386941ce108b1e99d1a553682d5af791a628 (diff)
downloadgsoc2013-epiphany-d012141a9d6dc6e0b374b4e992e18239b21501dd.tar.gz
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 'lib/ephy-dialog.c')
-rw-r--r--lib/ephy-dialog.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 8c8344dda..7262bc59c 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -837,26 +837,11 @@ impl_get_value (EphyDialog *dialog,
}
}
-static gboolean
-ephy_dialog_configure_event_cb (GtkWidget *widget,
- GdkEventConfigure *event,
- EphyDialog *dialog)
-{
- ephy_state_save_window (widget, dialog->priv->name);
-
- return FALSE;
-}
-
static void
setup_default_size (EphyDialog *dialog)
{
- ephy_state_load_window (dialog->priv->dialog,
- dialog->priv->name, -1, -1, FALSE);
-
- g_signal_connect (dialog->priv->dialog,
- "configure_event",
- G_CALLBACK (ephy_dialog_configure_event_cb),
- dialog);
+ ephy_state_add_window (dialog->priv->dialog,
+ dialog->priv->name, -1, -1);
}
static gint