• R/O
  • SSH
  • HTTPS

gsynaptics: Commit


Commit MetaInfo

Revision119 (tree)
Time2008-02-28 13:31:13
Authorikezoe

Log Message

2008-02-28 Saleem Abdulrasool <compnerd@compnerd.org>

* configure.ac, src/init.c, src/main.c, src/Makefile.am: Remove
libgnome dependency.

Change Summary

Incremental Difference

--- gsynaptics/trunk/configure.ac (revision 118)
+++ gsynaptics/trunk/configure.ac (revision 119)
@@ -18,14 +18,14 @@
1818 # Checks for libraries.
1919 AM_PATH_GTK_2_0(2.6.0)
2020
21-PKG_CHECK_MODULES(GNOME, libgnomeui-2.0)
22-AC_SUBST(GNOME_CFLAGS)
23-AC_SUBST(GNOME_LIBS)
24-
2521 PKG_CHECK_MODULES(GLADE2, libglade-2.0)
2622 AC_SUBST(GLADE2_CFLAGS)
2723 AC_SUBST(GLADE2_LIBS)
2824
25+PKG_CHECK_MODULES(GCONF2, gconf-2.0)
26+AC_SUBST(GCONF2_CFLAGS)
27+AC_SUBST(GCONF2_LIBS)
28+
2929 GETTEXT_PACKAGE=gsynaptics
3030 AC_SUBST(GETTEXT_PACKAGE)
3131 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext package])
--- gsynaptics/trunk/ChangeLog (revision 118)
+++ gsynaptics/trunk/ChangeLog (revision 119)
@@ -1,3 +1,8 @@
1+2008-02-28 Saleem Abdulrasool <compnerd@compnerd.org>
2+
3+ * configure.ac, src/init.c, src/main.c, src/Makefile.am: Remove
4+ libgnome dependency.
5+
16 2007-11-29 Hiroyuki Ikezoe <poincare@ikezoe.net>
27
38 * configure.ac: version 0.9.13.
--- gsynaptics/trunk/src/init.c (revision 118)
+++ gsynaptics/trunk/src/init.c (revision 119)
@@ -22,7 +22,7 @@
2222 # include <config.h>
2323 #endif
2424
25-#include <gnome.h>
25+#include <glib/gi18n.h>
2626 #include <gconf/gconf-client.h>
2727
2828 #include "gsynaptics.h"
@@ -91,10 +91,7 @@
9191 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
9292 textdomain (GETTEXT_PACKAGE);
9393
94- gnome_program_init ("gsynaptics-init", VERSION,
95- LIBGNOMEUI_MODULE, argc, argv,
96- GNOME_PARAM_APP_DATADIR, NULL,
97- NULL);
94+ gtk_init (&argc, &argv);
9895
9996 synaptics = g_synaptics_new ();
10097
--- gsynaptics/trunk/src/main.c (revision 118)
+++ gsynaptics/trunk/src/main.c (revision 119)
@@ -22,7 +22,7 @@
2222 # include <config.h>
2323 #endif
2424
25-#include <gnome.h>
25+#include <glib/gi18n.h>
2626 #include <glade/glade.h>
2727 #include <gconf/gconf-client.h>
2828
@@ -683,7 +683,7 @@
683683
684684 gtk_window_set_default_size (GTK_WINDOW (widget), 400, -1);
685685
686- path = gnome_pixmap_file ("touchpad.png");
686+ path = g_build_filename (DATADIR "/pixmaps", "touchpad.png");
687687 if (path)
688688 {
689689 icon_pixbuf = gdk_pixbuf_new_from_file (path, NULL);
@@ -712,10 +712,7 @@
712712 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
713713 textdomain (GETTEXT_PACKAGE);
714714
715- gnome_program_init ("gsynaptics", VERSION,
716- LIBGNOMEUI_MODULE, argc, argv,
717- GNOME_PARAM_APP_DATADIR, DATADIR,
718- NULL);
715+ gtk_init (&argc, &argv);
719716
720717 synaptics = g_synaptics_new ();
721718 if (!g_synaptics_is_available(synaptics))
--- gsynaptics/trunk/src/Makefile.am (revision 118)
+++ gsynaptics/trunk/src/Makefile.am (revision 119)
@@ -3,8 +3,8 @@
33 -DDATADIR=\""$(datadir)/$(PACKAGE)"\" \
44 -DHELPDATADIR=\""$(datadir)"\" \
55 $(GTK_CFLAGS) \
6- $(GNOME_CFLAGS) \
76 $(GLADE2_CFLAGS) \
7+ $(GCONF2_CFLAGS) \
88 $(AM_CFLAGS)
99
1010 gsynaptics_SOURCES = \
@@ -15,8 +15,8 @@
1515
1616 gsynaptics_LDADD = \
1717 $(GTK_LIBS) \
18- $(GNOME_LIBS) \
19- $(GLADE2_LIBS)
18+ $(GLADE2_LIBS) \
19+ $(GCONF2_LIBS)
2020
2121 gsynaptics_init_SOURCES = \
2222 gsynaptics-conf.h \
@@ -25,11 +25,14 @@
2525 gsynaptics.c gsynaptics.h
2626
2727 gsynaptics_init_CFLAGS = \
28+ $(GTK_CFLAGS) \
2829 $(GLIB_CFLAGS) \
2930 $(GNOME_CFLAGS) \
31+ $(GCONF2_CFLAGS) \
3032 $(AM_CFLAGS)
3133
3234 gsynaptics_init_LDADD = \
35+ $(GTK_LIBS) \
3336 $(GLIB_LIBS) \
34- $(GNOME_LIBS)
35-
37+ $(GNOME_LIBS) \
38+ $(GCONF2_LIBS)
Show on old repository browser