mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
Skip Desktop if it equals the home folder
svn path=/trunk/; revision=22192
This commit is contained in:
parent
4569b49bed
commit
a220373a55
@ -1,3 +1,11 @@
|
|||||||
|
2009-01-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Skip Desktop if it equals the home folder
|
||||||
|
Patch by Christian Dywan
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (shortcuts_append_desktop): Skip
|
||||||
|
Desktop if it equals the home folder.
|
||||||
|
|
||||||
2009-01-23 Matthias Clasen <mclasen@redhat.com>
|
2009-01-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 536965 – GtkPlug: crash on theme change
|
Bug 536965 – GtkPlug: crash on theme change
|
||||||
|
@ -1920,6 +1920,15 @@ shortcuts_append_desktop (GtkFileChooserDefault *impl)
|
|||||||
profile_start ("start", NULL);
|
profile_start ("start", NULL);
|
||||||
|
|
||||||
name = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
|
name = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP);
|
||||||
|
/* "To disable a directory, point it to the homedir."
|
||||||
|
* See http://freedesktop.org/wiki/Software/xdg-user-dirs
|
||||||
|
**/
|
||||||
|
if (!g_strcmp0 (name, g_get_home_dir ()))
|
||||||
|
{
|
||||||
|
profile_end ("end", NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
file = g_file_new_for_path (name);
|
file = g_file_new_for_path (name);
|
||||||
shortcuts_insert_file (impl, -1, SHORTCUT_TYPE_FILE, NULL, file, _("Desktop"), FALSE, SHORTCUTS_DESKTOP);
|
shortcuts_insert_file (impl, -1, SHORTCUT_TYPE_FILE, NULL, file, _("Desktop"), FALSE, SHORTCUTS_DESKTOP);
|
||||||
impl->has_desktop = TRUE;
|
impl->has_desktop = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user