[Xfce4-commits] <garcon:master> Make it easier to debug garcon with the test application.

Jannis Pohlmann noreply at xfce.org
Sat Aug 28 15:38:01 CEST 2010


Updating branch refs/heads/master
         to 7d42e955c11060646e17d3e1f67a601ba3d6a503 (commit)
       from 6a6bd13d62e272f026bbaccef3f0d6efa172b728 (commit)

commit 7d42e955c11060646e17d3e1f67a601ba3d6a503
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Sat Aug 28 14:39:57 2010 +0200

    Make it easier to debug garcon with the test application.

 tests/gdb-test-display-menu    |    3 +++
 tests/run-test-display-menu.sh |    8 ++++++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/tests/gdb-test-display-menu b/tests/gdb-test-display-menu
new file mode 100644
index 0000000..545a1aa
--- /dev/null
+++ b/tests/gdb-test-display-menu
@@ -0,0 +1,3 @@
+run /usr/local/etc/xdg/menus/xfce-applications.menu
+bt
+quit
diff --git a/tests/run-test-display-menu.sh b/tests/run-test-display-menu.sh
new file mode 100755
index 0000000..79d10ad
--- /dev/null
+++ b/tests/run-test-display-menu.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+GLIB_OPTIONS=`pkg-config --cflags --libs glib-2.0`
+GTK_OPTIONS=`pkg-config --cflags --libs gtk+-2.0`
+GARCON_OPTIONS=`pkg-config --cflags --libs garcon-1`
+
+gcc -o test-display-menu test-display-menu.c $GLIB_OPTIONS $GTK_OPTIONS $GARCON_OPTIONS &&
+G_DEBUG=fatal-criticals gdb ./test-display-menu -x gdb-test-display-menu



More information about the Xfce4-commits mailing list