aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-06 08:28:41 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-06 08:28:41 +0800
commit4c4033f2578c222627d2158110bfb6dcda39e7ac (patch)
tree70f98829969d6a0343268648b4da9b755875889e /src
parent75c63d21e5a03f20bcc1f46972cec9526e510369 (diff)
downloadgsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.tar
gsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.tar.gz
gsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.tar.bz2
gsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.tar.lz
gsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.tar.xz
gsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.tar.zst
gsoc2013-epiphany-4c4033f2578c222627d2158110bfb6dcda39e7ac.zip
Open the GNOME background properties capplet when setting the background
2005-01-06 Christian Persch <chpe@cvs.gnome.org> * src/popup-commands.c: (background_download_completed): Open the GNOME background properties capplet when setting the background from an image. Fixes bug #161215.
Diffstat (limited to 'src')
-rw-r--r--src/popup-commands.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index de08abed7..4fa7457e0 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -263,13 +263,14 @@ popup_cmd_save_image_as (GtkAction *action,
#define CONF_DESKTOP_BG_PICTURE "/desktop/gnome/background/picture_filename"
#define CONF_DESKTOP_BG_TYPE "/desktop/gnome/background/picture_options"
+#define GNOME_BACKGROUND_PREFERENCES "gnome-background-properties"
static void
background_download_completed (EphyEmbedPersist *persist,
gpointer data)
{
const char *bg;
- char *type;
+ char *type, *path;
bg = ephy_embed_persist_get_dest (persist);
eel_gconf_set_string (CONF_DESKTOP_BG_PICTURE, bg);
@@ -282,6 +283,14 @@ background_download_completed (EphyEmbedPersist *persist,
g_free (type);
g_object_unref (persist);
+
+ /* open the "Background Properties" capplet */
+ path = g_find_program_in_path (GNOME_BACKGROUND_PREFERENCES);
+ if (path != NULL)
+ {
+ g_spawn_command_line_async (path, NULL);
+ g_free (path);
+ }
}
void