Commit 3905c694 authored by Manish Singh's avatar Manish Singh

refcount fixups...

-Yosh
parent 126b6cec
......@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
}
static void
dialog_apply_callback (GtkWidget *widget,
......
......@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
}
static void
dialog_apply_callback (GtkWidget *widget,
......
......@@ -297,7 +297,7 @@ build_dialog(GImageType basetype,
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
/* Action area - 'close' button only. */
......@@ -306,7 +306,7 @@ build_dialog(GImageType basetype,
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area),
button, TRUE, TRUE, 0);
gtk_widget_grab_default (button);
......@@ -883,6 +883,7 @@ static void
window_close_callback (GtkWidget *widget,
gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
gtk_main_quit();
}
......
......@@ -297,7 +297,7 @@ build_dialog(GImageType basetype,
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
/* Action area - 'close' button only. */
......@@ -306,7 +306,7 @@ build_dialog(GImageType basetype,
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area),
button, TRUE, TRUE, 0);
gtk_widget_grab_default (button);
......@@ -883,6 +883,7 @@ static void
window_close_callback (GtkWidget *widget,
gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
gtk_main_quit();
}
......
......@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
}
static void
dialog_apply_callback (GtkWidget *widget,
......
......@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
}
static void
dialog_apply_callback (GtkWidget *widget,
......
......@@ -483,10 +483,12 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
}
static void
dialog_apply_callback (GtkWidget *widget,
......
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