aboutsummaryrefslogtreecommitdiffstats
path: root/embed/find-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-16 23:52:19 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-16 23:52:19 +0800
commit622cb80aadf523ca0d1c742f9235a04385edd1cd (patch)
tree920b263a7343cc0e63bad7e8fb79d5f5c72190a6 /embed/find-dialog.c
parent89effea2d02847e7eae987f3b8ac607cbaad8a5b (diff)
downloadgsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.tar
gsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.tar.gz
gsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.tar.bz2
gsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.tar.lz
gsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.tar.xz
gsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.tar.zst
gsoc2013-epiphany-622cb80aadf523ca0d1c742f9235a04385edd1cd.zip
Fix potential crash.
2003-06-16 Christian Persch <chpe@cvs.gnome.org> * embed/find-dialog.c: (sync_embed): Fix potential crash.
Diffstat (limited to 'embed/find-dialog.c')
-rwxr-xr-xembed/find-dialog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/embed/find-dialog.c b/embed/find-dialog.c
index 18ef22fcc..f1dfbdcb2 100755
--- a/embed/find-dialog.c
+++ b/embed/find-dialog.c
@@ -42,7 +42,8 @@ static void
impl_destruct (EphyDialog *dialog);
static void
impl_show (EphyDialog *dialog);
-
+static void
+find_get_info (EphyDialog *dialog);
/* Glade callbacks */
void find_close_button_clicked_cb (GtkWidget *button, EphyDialog *dialog);
@@ -209,6 +210,8 @@ sync_embed (FindDialog *dialog, GParamSpec *pspec, gpointer data)
LOG ("EphyEmbed changed")
set_navigation_flags (dialog, FIND_CAN_GO_PREV | FIND_CAN_GO_NEXT);
+
+ find_get_info (EPHY_DIALOG (dialog));
}
static void
@@ -217,7 +220,7 @@ find_dialog_init (FindDialog *dialog)
dialog->priv = g_new0 (FindDialogPrivate, 1);
dialog->priv->properties = NULL;
- dialog->priv->nav_flags = FIND_CAN_GO_PREV | FIND_CAN_GO_NEXT;
+ dialog->priv->nav_flags = 0;
dialog->priv->constructed = FALSE;
g_signal_connect_object (dialog, "notify::embed",