[genius] Wed Sep 21 20:54:37 2016 Jiri (George) Lebl <jirka 5z com>
- From: George Lebl <jirka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [genius] Wed Sep 21 20:54:37 2016 Jiri (George) Lebl <jirka 5z com>
- Date: Thu, 22 Sep 2016 01:54:15 +0000 (UTC)
commit 0bcdb81cdcc5b4c262b58215c9391dd5bd541f8c
Author: Jiri (George) Lebl <jiri lebl gmail com>
Date: Wed Sep 21 20:54:43 2016 -0500
Wed Sep 21 20:54:37 2016 Jiri (George) Lebl <jirka 5z com>
* src/gnome-genius.c: run program from idle to avoid a queued up
program if double hitting run
ChangeLog | 5 +++++
src/gnome-genius.c | 11 +++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 326ad00..e9be7fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 21 20:54:37 2016 Jiri (George) Lebl <jirka 5z com>
+
+ * src/gnome-genius.c: run program from idle to avoid a queued up
+ program if double hitting run
+
Wed Sep 21 20:44:39 2016 Jiri (George) Lebl <jirka 5z com>
* examples/*.gel: update the complex analysis examples to have
diff --git a/src/gnome-genius.c b/src/gnome-genius.c
index da2bf98..fa60319 100644
--- a/src/gnome-genius.c
+++ b/src/gnome-genius.c
@@ -4225,8 +4225,8 @@ close_callback (GtkWidget *menu_item, gpointer data)
close_program (p);
}
-static void
-run_program (GtkWidget *menu_item, gpointer data)
+static gboolean
+run_program_idle (gpointer data)
{
const char *vname;
const char *name;
@@ -4372,6 +4372,13 @@ run_program (GtkWidget *menu_item, gpointer data)
}
}
+ return FALSE;
+}
+
+static void
+run_program (GtkWidget *menu_item, gpointer data)
+{
+ g_idle_add (run_program_idle, NULL);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]