Index: src/callbacks.c
===================================================================
--- src/callbacks.c (revision 1459)
+++ src/callbacks.c (working copy)
@@ -37,10 +37,20 @@
quit (FakeApp * app)
{
kill (app->xnest_pid, SIGKILL);
+ system ("killall -9 voicecall && rm -f /tmp/.voc.pid");
+ system ("halt"); /* evil, but it will do the trick */
gtk_main_quit ();
}
void
+on_take_screenshot_activate (GtkMenuItem * menuitem, FakeApp * app)
+{
+ gchar *cmd = g_strdup_printf("DISPLAY=%s gpe-scap", app->xnest_dpy_name);
+ system (cmd);
+ g_free (cmd);
+}
+
+void
on_quit_activate (GtkMenuItem * menuitem, FakeApp * app)
{
quit (app);
Index: src/callbacks.h
===================================================================
--- src/callbacks.h (revision 1459)
+++ src/callbacks.h (working copy)
@@ -8,6 +8,8 @@
void on_quit_activate (GtkMenuItem * menuitem, FakeApp * app);
+void on_take_screenshot_activate (GtkMenuItem * menuitem, FakeApp * app);
+
void on_about_activate (GtkMenuItem * menuitem, FakeApp * app);
void on_window_destroy (GtkObject * widget, FakeApp * app);
Index: src/main.c
===================================================================
--- src/main.c (revision 1459)
+++ src/main.c (working copy)
@@ -78,6 +78,9 @@
glade_xml_signal_connect_data (glade, "on_quit_activate",
(GCallback) on_quit_activate, app);
+ glade_xml_signal_connect_data (glade, "on_take_screenshot_activate",
+ (GCallback) on_take_screenshot_activate, app);
+
glade_xml_signal_connect_data (glade, "on_about_activate",
(GCallback) on_about_activate, app);
Index: data/Xoo.glade
===================================================================
--- data/Xoo.glade (revision 1459)
+++ data/Xoo.glade (working copy)
@@ -77,11 +77,26 @@
+
+
+
+
+
+
+
+