gpointing-device-settings r166 - trunk/modules



Author: hiikezoe
Date: Sat Mar  7 12:19:57 2009
New Revision: 166
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=166&view=rev

Log:
Use gpds_get_ui_file_directory.

Modified:
   trunk/modules/gpds-mouse-ui.c
   trunk/modules/gpds-touchpad-ui.c

Modified: trunk/modules/gpds-mouse-ui.c
==============================================================================
--- trunk/modules/gpds-mouse-ui.c	(original)
+++ trunk/modules/gpds-mouse-ui.c	Sat Mar  7 12:19:57 2009
@@ -81,20 +81,11 @@
 {
 }
 
-static const gchar *
-get_ui_file_directory (void)
-{
-    const gchar *dir;
-
-    dir = g_getenv("GPDS_UI_DIR");
-    return dir ? dir : GPDS_UIDIR;
-}
-
 static void
 gpds_mouse_ui_init (GpdsMouseUI *ui)
 {
     ui->xinput = NULL;
-    ui->ui_file_path = g_build_filename(get_ui_file_directory(),
+    ui->ui_file_path = g_build_filename(gpds_get_ui_file_directory(),
                                         "mouse.ui",
                                         NULL);
 }

Modified: trunk/modules/gpds-touchpad-ui.c
==============================================================================
--- trunk/modules/gpds-touchpad-ui.c	(original)
+++ trunk/modules/gpds-touchpad-ui.c	Sat Mar  7 12:19:57 2009
@@ -81,21 +81,12 @@
 {
 }
 
-static const gchar *
-get_ui_file_directory (void)
-{
-    const gchar *dir;
-
-    dir = g_getenv("GPDS_UI_DIR");
-    return dir ? dir : GPDS_UIDIR;
-}
-
 static void
 gpds_touchpad_ui_init (GpdsTouchpadUI *ui)
 {
     ui->xinput = NULL;
     ui->ui_file_path = 
-        g_build_filename(get_ui_file_directory(), "touchpad.ui", NULL);
+        g_build_filename(gpds_get_ui_file_directory(), "touchpad.ui", NULL);
 }
 
 G_MODULE_EXPORT void



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