Commit f6d7f597 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

just a small cleanup.

2003-01-02  Sven Neumann  <sven@gimp.org>

	    * app/widgets/gimpviewabledialog.c (gimp_viewable_dialog_close):
	    just a small cleanup.
parent ea95a322
2003-01-02 Sven Neumann <sven@gimp.org>
* app/widgets/gimpviewabledialog.c (gimp_viewable_dialog_close):
just a small cleanup.
2003-01-02 Michael Natterer <mitch@gimp.org>
Replaced Garry's fix for bug #98843 by a more general solution
......
......@@ -335,17 +335,14 @@ gimp_viewable_dialog_name_changed (GimpObject *object,
static void
gimp_viewable_dialog_close (GimpViewableDialog *dialog)
{
GtkWidget *widget;
GdkEventAny event;
GtkWidget *widget = GTK_WIDGET (dialog);
widget = GTK_WIDGET (dialog);
/* Synthesize delete_event to close dialog. */
/* Paranoia: Widget realized in a window? */
if(G_IS_OBJECT (widget->window) == TRUE)
if (widget->window)
{
/* Synthesize delete_event to close dialog. */
GdkEventAny event;
event.type = GDK_DELETE;
event.window = widget->window;
event.send_event = TRUE;
......@@ -353,7 +350,7 @@ gimp_viewable_dialog_close (GimpViewableDialog *dialog)
g_object_ref (G_OBJECT (event.window));
gtk_main_do_event ((GdkEvent *) &event);
g_object_unref (G_OBJECT (event.window));
}
}
Makefile
Makefile.in
deprecated
libgimpbase.args
libgimpbase.hierarchy
libgimpbase.signals
......
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