mousetweaks r221 - in trunk: . src



Author: gerdk
Date: Mon Aug  4 09:50:38 2008
New Revision: 221
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=221&view=rev

Log:
2008-08-04 Gerd Kohlberger <gerdk svn gnome org>

	* configure.ac: Check for libgnomeui
	* src/Makefile.am: Use GNOME_COMPILE_WARNINGS.
 
	* src/mt-ctw.c: Add header file.
	* src/mt-main.c: (main): spi_leaks might be used uninitialized.
	* src/mt-pidfile.c: Add header file.

	Fix new compile warnings.



Modified:
   trunk/ChangeLog
   trunk/configure.ac
   trunk/src/Makefile.am
   trunk/src/mt-ctw.c
   trunk/src/mt-main.c
   trunk/src/mt-pidfile.c

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Mon Aug  4 09:50:38 2008
@@ -43,6 +43,7 @@
 	dbus-glib-1 >= 0.7
 	libpanelapplet-2.0
 	libgnome-2.0
+	libgnomeui-2.0
 	cspi-1.0
 	xcursor
 	xfixes)

Modified: trunk/src/Makefile.am
==============================================================================
--- trunk/src/Makefile.am	(original)
+++ trunk/src/Makefile.am	Mon Aug  4 09:50:38 2008
@@ -1,6 +1,7 @@
 INCLUDES =				     \
 	$(DEPENDENCIES_CFLAGS)		     \
 	$(DISABLE_DEPRECATED)		     \
+	$(WARN_CFLAGS)			     \
 	-DDATADIR=\"$(datadir)/mousetweaks\" \
 	-DLOCALEDIR=\"$(datadir)/locale\"
 

Modified: trunk/src/mt-ctw.c
==============================================================================
--- trunk/src/mt-ctw.c	(original)
+++ trunk/src/mt-ctw.c	Mon Aug  4 09:50:38 2008
@@ -23,6 +23,7 @@
 #include "mt-main.h"
 #include "mt-service.h"
 #include "mt-common.h"
+#include "mt-ctw.h"
 
 #define WID(n) (glade_xml_get_widget (xml, n))
 

Modified: trunk/src/mt-main.c
==============================================================================
--- trunk/src/mt-main.c	(original)
+++ trunk/src/mt-main.c	Mon Aug  4 09:50:38 2008
@@ -687,7 +687,7 @@
 	MtCursorManager *manager;
 	AccessibleEventListener *bl, *ml;
 	gint spi_status;
-	gint spi_leaks;
+	gint spi_leaks = 0;
 
 	if (mt_pidfile_create () < 0)
 	    return 1;
@@ -705,7 +705,6 @@
 	if (!mt)
 	    goto FINISH;
 
-	spi_leaks = 0;
 	spi_status = SPI_init ();
 	if (!accessibility_enabled (mt, spi_status)) {
 	    mt_closure_free (mt);

Modified: trunk/src/mt-pidfile.c
==============================================================================
--- trunk/src/mt-pidfile.c	(original)
+++ trunk/src/mt-pidfile.c	Mon Aug  4 09:50:38 2008
@@ -18,7 +18,7 @@
  */
 
 /*
- * Modified version of dpid.c -libdaemon
+ * Modified version of dpid.c - libdaemon.
  * Copyright 2003-2007 Lennart Poettering <mzqnrzba (at) 0pointer (dot) de>
  */
 
@@ -38,6 +38,8 @@
 
 #include <glib.h>
 
+#include "mt-pidfile.h"
+
 #ifndef ETIME
 #define ETIME ETIMEDOUT /* For FreeBSD */
 #endif



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