aboutsummaryrefslogtreecommitdiffstats
path: root/src/popup-commands.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-07-15 06:21:57 +0800
committerChristian Persch <chpe@src.gnome.org>2007-07-15 06:21:57 +0800
commita6348fb84c37377a1c3a61f9f973c2d099d0ca73 (patch)
tree742bec4ba9716759090c8f4cb85b65e8440ddd58 /src/popup-commands.c
parent92a7c6b8b3dc7b618c36d29332fc7d2bbee22681 (diff)
downloadgsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.tar
gsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.tar.gz
gsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.tar.bz2
gsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.tar.lz
gsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.tar.xz
gsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.tar.zst
gsoc2013-epiphany-a6348fb84c37377a1c3a61f9f973c2d099d0ca73.zip
Load the appearance capplet. Doesn't seem to work yet, see bug #456337.
2007-07-15 Christian Persch <chpe@gnome.org> * src/popup-commands.c: (background_download_completed): Load the appearance capplet. Doesn't seem to work yet, see bug #456337. svn path=/trunk/; revision=7159
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r--src/popup-commands.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 4cc6ed4ce..fe76a02a8 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -272,7 +272,7 @@ popup_cmd_save_image_as (GtkAction *action,
window, TRUE, "image");
}
-#define GNOME_BACKGROUND_PREFERENCES "gnome-background-properties"
+#define GNOME_APPEARANCE_PROPERTIES "gnome-appearance-properties.desktop"
static void
background_download_completed (EphyEmbedPersist *persist)
@@ -284,16 +284,21 @@ background_download_completed (EphyEmbedPersist *persist)
bg = ephy_embed_persist_get_dest (persist);
- g_object_unref (persist);
-
- /* open the "Background Properties" capplet */
- if (!ephy_file_launch_desktop_file ("background.desktop", bg, user_time))
+ /* open the Appearance Properties capplet on the Background tab */
+ /* FIXME! */
+ if (!ephy_file_launch_desktop_file (GNOME_APPEARANCE_PROPERTIES, bg, user_time))
{
- /* If the above try didn't work, then we try the Fedora name.
- * This is a fix for #387206, but is actually a workaround for
- * bugzilla.redhat.com #201867 */
- ephy_file_launch_desktop_file ("gnome-background.desktop", bg, user_time);
+ /* Fallback for <= 2.18 desktop: try to open the "Background Properties" capplet */
+ if (!ephy_file_launch_desktop_file ("background.desktop", bg, user_time))
+ {
+ /* If the above try didn't work, then we try the Fedora name.
+ * This is a fix for #387206, but is actually a workaround for
+ * bugzilla.redhat.com #201867 */
+ ephy_file_launch_desktop_file ("gnome-background.desktop", bg, user_time);
+ }
}
+
+ g_object_unref (persist);
}
void