From 622cb80aadf523ca0d1c742f9235a04385edd1cd Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 16 Jun 2003 15:52:19 +0000 Subject: Fix potential crash. 2003-06-16 Christian Persch * embed/find-dialog.c: (sync_embed): Fix potential crash. --- ChangeLog | 6 ++++++ embed/find-dialog.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 255bd137e..e8f4f8659 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-06-16 Christian Persch + + * embed/find-dialog.c: (sync_embed): + + Fix potential crash. + 2003-06-16 Christian Persch * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_class_init): 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", -- cgit v1.2.3