[recipes: 1/3] Set the chef_dialog to NULL while destroying the dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes: 1/3] Set the chef_dialog to NULL while destroying the dialog
- Date: Fri, 2 Mar 2018 01:00:50 +0000 (UTC)
commit 93faae0fb34837f9bb4575e6cf95e891a6565c57
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Thu Mar 1 17:34:02 2018 +0700
Set the chef_dialog to NULL while destroying the dialog
src/gr-window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index 926f6af..63ef803 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -1171,7 +1171,6 @@ chef_done (GrChefDialog *dialog,
GrChef *chef,
GrWindow *window)
{
- window->chef_dialog = NULL;
gtk_widget_destroy (GTK_WIDGET (dialog));
}
@@ -1182,6 +1181,7 @@ present_my_chef_dialog (GrChef *chef,
GrWindow *window = data;
window->chef_dialog = (GtkWidget *)gr_chef_dialog_new (chef, FALSE);
+ g_object_add_weak_pointer (G_OBJECT (window->chef_dialog), (gpointer *)&window->chef_dialog);
gtk_window_set_title (GTK_WINDOW (window->chef_dialog), _("Chef Information"));
g_signal_connect (window->chef_dialog, "done", G_CALLBACK (chef_done), window);
gr_window_present_dialog (window, GTK_WINDOW (window->chef_dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]