~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to shortcuts/src/applet-bookmarks.c

  • Committer: Matthieu Baerts
  • Date: 2012-04-05 13:57:14 UTC
  • Revision ID: matttbe@gmail.com-20120405135714-5h3p7wc1y3vnco02
Shortcuts: used a default icon if vfs_backend_get_file_info returns none icon name (g_file_info_get_icon seems not able to find an icon for folders on KDE)

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
                                                }
134
134
                                                if (cRealURI == NULL)
135
135
                                                        cRealURI = g_strdup ("none");
 
136
                                                if (cIconName == NULL)
 
137
                                                        cIconName = g_strdup ("inode-directory");
136
138
                                                
137
139
                                                pNewIcon = cairo_dock_create_dummy_launcher (cName,
138
140
                                                        cIconName,
393
395
                                }
394
396
                                if (cRealURI == NULL)
395
397
                                        cRealURI = g_strdup ("none");
 
398
                                if (cIconName == NULL)
 
399
                                        cIconName = g_strdup ("inode-directory"); // should be the default icon
396
400
                                
397
401
                                pNewIcon = pNewIcon = cairo_dock_create_dummy_launcher (cName,
398
402
                                        cIconName,