gpe-applauncher: Make sure default loading icon is found.
authorFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 6 Mar 2007 14:44:54 +0000 (14:44 +0000)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 6 Mar 2007 14:44:54 +0000 (14:44 +0000)
packages/gpephone/gpe-applauncher-0.7/.mtn2git_empty [new file with mode: 0644]
packages/gpephone/gpe-applauncher-0.7/default-icon.patch [new file with mode: 0644]
packages/gpephone/gpe-applauncher_0.7.bb

diff --git a/packages/gpephone/gpe-applauncher-0.7/.mtn2git_empty b/packages/gpephone/gpe-applauncher-0.7/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/gpephone/gpe-applauncher-0.7/default-icon.patch b/packages/gpephone/gpe-applauncher-0.7/default-icon.patch
new file mode 100644 (file)
index 0000000..e1ec24f
--- /dev/null
@@ -0,0 +1,20 @@
+Index: applications.c
+===================================================================
+--- applications.c     (Revision 598)
++++ applications.c     (Arbeitskopie)
+@@ -463,8 +463,13 @@
+                                          applauncher_settings.themename ? applauncher_settings.themename : "default",
+                                          THEMEFOLDER, ICON_LOADING, NULL);
+               }
+-             
+-            g_print ("\nloading icon: %s\n", file);
++              
++            if (!g_file_test (file, G_FILE_TEST_EXISTS))
++              {
++                g_free (file);
++                file = g_build_filename (LOCAL_THEMEDIR, "default",
++                                         THEMEFOLDER, ICON_LOADING, NULL);
++              }
+                 
+             nc_window = gtk_app_notification_new();
+             gtk_widget_set_size_request(GTK_WIDGET(nc_window), -1, 70);
index ae6cd31..3493300 100644 (file)
@@ -2,13 +2,15 @@ LICENSE     = "GPL"
 DESCRIPTION = "A cellphone application launcher."
 SECTION = "gpe"
 PRIORITY    = "optional"
-PR          = "r0"
+PR          = "r1"
 
 DEPENDS = "gtk+ libgpewidget libgpephone libgpelaunch dbus-glib libxsettings-client"
 
 GPE_TARBALL_SUFFIX= "gz"
 inherit gpephone autotools
 
+SRC_URI += " file://default-icon.patch;patch=1;pnum=0"
+
 #EXTRA_OECONF = "--enable-gridlayout"
 
 FILES_${PN} += '${datadir}/themes'