Commit 6cd1c58c authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Only unblock the handlers if they are blocked.

2004-12-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (dialog_response_cb): Only unblock the handlers
	if they are blocked.
parent 860228fa
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (dialog_response_cb): Only unblock the handlers
if they are blocked.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): Don't
crash if enable_search is FALSE. (#161267, Jorn Baayen)
......
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (dialog_response_cb): Only unblock the handlers
if they are blocked.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): Don't
crash if enable_search is FALSE. (#161267, Jorn Baayen)
......
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (dialog_response_cb): Only unblock the handlers
if they are blocked.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): Don't
crash if enable_search is FALSE. (#161267, Jorn Baayen)
......
2004-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (dialog_response_cb): Only unblock the handlers
if they are blocked.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): Don't
crash if enable_search is FALSE. (#161267, Jorn Baayen)
......
......@@ -2158,14 +2158,18 @@ dialog_response_cb (GtkDialog *dialog,
update_label_and_image (user_data);
update_combo_box (user_data);
if (priv->active)
{
g_signal_handler_unblock (priv->dialog,
priv->dialog_folder_changed_id);
g_signal_handler_unblock (priv->dialog,
priv->dialog_file_activated_id);
g_signal_handler_unblock (priv->dialog,
priv->dialog_selection_changed_id);
priv->active = FALSE;
}
g_signal_handler_unblock (priv->dialog,
priv->dialog_folder_changed_id);
g_signal_handler_unblock (priv->dialog,
priv->dialog_file_activated_id);
g_signal_handler_unblock (priv->dialog,
priv->dialog_selection_changed_id);
priv->active = FALSE;
gtk_widget_set_sensitive (priv->combo_box, TRUE);
gtk_widget_hide (priv->dialog);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment