diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-06 08:28:41 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-06 08:28:41 +0800 |
commit | 4c4033f2578c222627d2158110bfb6dcda39e7ac (patch) | |
tree | 70f98829969d6a0343268648b4da9b755875889e | |
parent | 75c63d21e5a03f20bcc1f46972cec9526e510369 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/popup-commands.c | 11 |
2 files changed, 17 insertions, 1 deletions
@@ -1,5 +1,12 @@ 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. + +2005-01-06 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-window.c: (sync_tab_security): Display open lock for low 'secure' sites too. Fixes bug #151709. 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 |