aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/popup-commands.c11
2 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c021b84de..6361a0ad4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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