[gnome-menus] libmenu: Fix desktop_entry_copy() for .desktop file



commit f29590a8c3771af47debf75c929170fe59877dce
Author: Vincent Untz <vuntz gnome org>
Date:   Sun Jun 12 11:53:59 2011 +0200

    libmenu: Fix desktop_entry_copy() for .desktop file
    
    We were not dealing with the appinfo field at all.

 libmenu/desktop-entries.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libmenu/desktop-entries.c b/libmenu/desktop-entries.c
index 5d06b0c..03c0717 100644
--- a/libmenu/desktop-entries.c
+++ b/libmenu/desktop-entries.c
@@ -351,6 +351,8 @@ desktop_entry_copy (DesktopEntry *entry)
       DesktopEntryDesktop *desktop_entry = (DesktopEntryDesktop*) entry;
       DesktopEntryDesktop *retval_desktop_entry = (DesktopEntryDesktop*) retval;
 
+      retval_desktop_entry->appinfo = g_object_ref (desktop_entry->appinfo);
+
       i = 0;
       if (desktop_entry->categories != NULL)
         {



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