[gpointing-device-settings] "mouse" module alwas use mouse.png icon.



commit 12a97ba7c72bc689b085756eaab56ba0dfc87172
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date:   Wed Jan 27 19:37:24 2010 +0900

    "mouse" module alwas use mouse.png icon.
    
    Do not use touchpad.png.

 modules/gpds-mouse-ui.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/modules/gpds-mouse-ui.c b/modules/gpds-mouse-ui.c
index ea1368e..8f07953 100644
--- a/modules/gpds-mouse-ui.c
+++ b/modules/gpds-mouse-ui.c
@@ -497,17 +497,11 @@ get_content_widget (GpdsUI *ui, GError **error)
 static GdkPixbuf *
 get_icon_pixbuf (GpdsUI *ui, GError **error)
 {
-    const gchar *pixbuf_name;
     gchar *path;
     GdkPixbuf *pixbuf;
 
-    if (strstr(gpds_ui_get_device_name(ui), "TrackPoint"))
-        pixbuf_name = "trackpoint.png";
-    else 
-        pixbuf_name = "mouse.png";
-
     path = g_build_filename(gpds_get_icon_file_directory(),
-                            pixbuf_name, NULL);
+                            "mouse.png", NULL);
     pixbuf = gdk_pixbuf_new_from_file(path, error);
     g_free(path);
 



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