bug-buddy r2654 - in trunk: . gnome-breakpad



Author: cosimoc
Date: Sun Aug 31 11:20:10 2008
New Revision: 2654
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2654&view=rev

Log:
2008-08-31  Cosimo Cecchi  <cosimoc gnome org>

	* configure.in:
	* gnome-breakpad/gnome-breakpad.cc:
	Replace a direct call to X API with gdk_x11, and do not specify x11
	anymore as a required module in the configure script.
	Removed a bit of duplicate code.
	This should also fix bug #500179.


Modified:
   trunk/ChangeLog
   trunk/configure.in
   trunk/gnome-breakpad/gnome-breakpad.cc

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Sun Aug 31 11:20:10 2008
@@ -118,7 +118,7 @@
 AM_CONDITIONAL(BREAKPAD_SOLARIS, test x$solaris = xyes)
 AM_CONDITIONAL(BREAKPAD_LINUX, test x$linux = xyes)
 
-GDK_REQUIRED="x11 gdk-2.0 >= 2.9"
+GDK_REQUIRED="gdk-x11-2.0 >= 2.9"
 PKG_CHECK_MODULES(GNOME_BREAKPAD,
 [
 	$GDK_REQUIRED

Modified: trunk/gnome-breakpad/gnome-breakpad.cc
==============================================================================
--- trunk/gnome-breakpad/gnome-breakpad.cc	(original)
+++ trunk/gnome-breakpad/gnome-breakpad.cc	Sun Aug 31 11:20:10 2008
@@ -77,13 +77,6 @@
                 _exit(1);
         }
 
-        /* Make sure we release grabs */
-        gdk_pointer_ungrab(GDK_CURRENT_TIME);
-        gdk_keyboard_ungrab(GDK_CURRENT_TIME);
-        XUngrabServer (GDK_DISPLAY ());
-
-        gdk_flush();
-
 	check_if_gdb (NULL);
 
 	/* If we are here is because gdb couldn't be run.
@@ -187,7 +180,7 @@
         /* Make sure we release grabs */
         gdk_pointer_ungrab(GDK_CURRENT_TIME);
         gdk_keyboard_ungrab(GDK_CURRENT_TIME);
-        XUngrabServer (GDK_DISPLAY ());
+	gdk_x11_ungrab_server ();
 
         gdk_flush();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]