[Pkg-xfce-commits] r7019 - in goodies/branches/experimental/xfce4-linelight-plugin/debian: . patches

Lionel Le Folgoc mrpouit-guest at alioth.debian.org
Sat May 19 11:21:11 UTC 2012


Author: mrpouit-guest
Date: 2012-05-19 11:21:11 +0000 (Sat, 19 May 2012)
New Revision: 7019

Added:
   goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/
   goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/01_port-to-xfcerc.patch
   goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/series
Modified:
   goodies/branches/experimental/xfce4-linelight-plugin/debian/changelog
Log:
* debian/patches:
  - 01_port-to-xfcerc.patch: added, port to libxfce4util6.

Modified: goodies/branches/experimental/xfce4-linelight-plugin/debian/changelog
===================================================================
--- goodies/branches/experimental/xfce4-linelight-plugin/debian/changelog	2012-05-19 11:17:54 UTC (rev 7018)
+++ goodies/branches/experimental/xfce4-linelight-plugin/debian/changelog	2012-05-19 11:21:11 UTC (rev 7019)
@@ -1,3 +1,10 @@
+xfce4-linelight-plugin (0.1.7-3) UNRELEASED; urgency=low
+
+  * debian/patches:
+    - 01_port-to-xfcerc.patch: added, port to libxfce4util6.
+
+ -- Lionel Le Folgoc <mrpouit at gmail.com>  Sat, 19 May 2012 13:19:05 +0200
+
 xfce4-linelight-plugin (0.1.7-2) unstable; urgency=low
 
   [ Lionel Le Folgoc ]

Added: goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/01_port-to-xfcerc.patch
===================================================================
--- goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/01_port-to-xfcerc.patch	                        (rev 0)
+++ goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/01_port-to-xfcerc.patch	2012-05-19 11:21:11 UTC (rev 7019)
@@ -0,0 +1,64 @@
+Description: Port to XfceRc
+ XfceDesktopEntry was deprecated in libxfce4util 4.8.x and has been removed in
+ libxfce4util 4.9.x.
+Author: Lionel Le Folgoc <mrpouit at ubuntu.com>
+Forwarded: no
+Last-Update: 2012-04-19
+
+--- xfce4-linelight-plugin-0.1.7.orig/panel-plugin/linelight.c
++++ xfce4-linelight-plugin-0.1.7/panel-plugin/linelight.c
+@@ -207,7 +207,7 @@ void linelight_add_list_entry(LineLightD
+     remove_newline(entry);
+ 
+     GtkTreeIter iter;
+-    char *icon;
++    const gchar *icon = NULL;
+     GdkPixbuf *pixbuf;
+ 
+     gtk_list_store_insert(data->list, &iter, data->listPointer[sec]);
+@@ -218,13 +218,15 @@ void linelight_add_list_entry(LineLightD
+     //icon
+     if (g_file_query_exists (file, NULL) && sec == BIN_SECTION )
+     {
+-        XfceDesktopEntry* app = xfce_desktop_entry_new(entry,categories,3);
++        XfceRc* app = xfce_rc_simple_open(entry, TRUE);
+ 
+-        if (app != NULL && xfce_desktop_entry_get_string(app, "Icon", TRUE, &icon)  && NULL != (pixbuf= load_icon(icon)))
++        if (app != NULL)
+         {
+-            gtk_list_store_set(data->list, &iter, ICON_COL, pixbuf, -1);
+-            g_object_unref(app);
+-            free(icon);
++            xfce_rc_set_group(app, G_KEY_FILE_DESKTOP_GROUP);
++            icon = xfce_rc_read_entry(app, G_KEY_FILE_DESKTOP_KEY_ICON, NULL);
++            if (icon != NULL && NULL != (pixbuf= load_icon(icon)))
++                gtk_list_store_set(data->list, &iter, ICON_COL, pixbuf, -1);
++            xfce_rc_close(app);
+         }
+     }
+     else if (file != NULL)
+--- xfce4-linelight-plugin-0.1.7.orig/panel-plugin/main.c
++++ xfce4-linelight-plugin-0.1.7/panel-plugin/main.c
+@@ -155,14 +155,15 @@ static void cell_renderer(GtkTreeViewCol
+     }
+     else if (strstr(name,".desktop") != NULL) //Application names based on .desktop files
+     {
+-        XfceDesktopEntry *application = xfce_desktop_entry_new(path,categories,3);
+-        if (XFCE_IS_DESKTOP_ENTRY(application))
++        XfceRc *application = xfce_rc_simple_open(path, TRUE);
++        if (application != NULL)
+         {
+-            char* app_name;
+-            xfce_desktop_entry_get_string(application, "Name", TRUE, &app_name);
+-            g_object_unref(application);
+-            g_object_set(cell,"text", app_name,NULL);
+-            free(app_name);
++            const gchar* app_name = NULL;
++            xfce_rc_set_group(application, G_KEY_FILE_DESKTOP_GROUP);
++            app_name = xfce_rc_read_entry(application, G_KEY_FILE_DESKTOP_KEY_NAME, NULL);
++            if (app_name != NULL)
++                g_object_set(cell,"text", app_name, NULL);
++            xfce_rc_close(application);
+         }
+     }
+     else

Added: goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/series
===================================================================
--- goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/series	                        (rev 0)
+++ goodies/branches/experimental/xfce4-linelight-plugin/debian/patches/series	2012-05-19 11:21:11 UTC (rev 7019)
@@ -0,0 +1 @@
+01_port-to-xfcerc.patch




More information about the Pkg-xfce-commits mailing list