Commit 72cc37aa authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

can't use gtk_main_quit as a timeout function, since it doesn't return a

2005-11-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/screenshot.c: can't use gtk_main_quit as a
        timeout function, since it doesn't return a value. Wrap it in a
        function that returns FALSE instead. Fixes bug #322343.
parent 72a3574b
2005-11-30 Manish Singh <yosh@gimp.org>
* plug-ins/common/screenshot.c: can't use gtk_main_quit as a
timeout function, since it doesn't return a value. Wrap it in a
function that returns FALSE instead. Fixes bug #322343.
2005-11-28 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c: handle fixed_width,
......
......@@ -187,6 +187,7 @@ static gint32 shoot (GdkScreen *screen);
static gboolean shoot_dialog (GdkScreen **screen);
static void shoot_delay (gint32 delay);
static gboolean shoot_delay_callback (gpointer data);
static gboolean shoot_quit_timeout (gpointer data);
/* Global Variables */
......@@ -929,7 +930,7 @@ shoot_dialog (GdkScreen **screen)
/* A short timeout to give the server a chance to
* redraw the area that was obscured by our dialog.
*/
g_timeout_add (100, (GSourceFunc) gtk_main_quit, NULL);
g_timeout_add (100, shoot_quit_timeout, NULL);
gtk_main ();
if (shootvals.shoot_type != SHOOT_ROOT && ! shootvals.window_id)
......@@ -965,3 +966,10 @@ shoot_delay_callback (gpointer data)
return *seconds_left;
}
static gboolean
shoot_quit_timeout (gpointer data)
{
gtk_main_quit ();
return FALSE;
}
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