[nautilus] Make it possible to have backgrounds spanning multiple monitors.
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Make it possible to have backgrounds spanning multiple monitors.
- Date: Thu, 18 Feb 2010 21:02:27 +0000 (UTC)
commit 3de6a780cb9dde0c54537139a81ab8186b81ccde
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 18 15:58:50 2010 -0500
Make it possible to have backgrounds spanning multiple monitors.
gnome-desktop added a new 'spanned' picture_option for this. This fixes
bug 610396.
eel/eel-background.c | 4 ++++
eel/eel-background.h | 3 ++-
.../nautilus-directory-background.c | 3 +++
3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-background.c b/eel/eel-background.c
index b4e16eb..d0782d7 100644
--- a/eel/eel-background.c
+++ b/eel/eel-background.c
@@ -262,6 +262,8 @@ placement_gnome_to_eel (GnomeBGPlacement p)
return EEL_BACKGROUND_ZOOM;
case GNOME_BG_PLACEMENT_TILED:
return EEL_BACKGROUND_TILED;
+ case GNOME_BG_PLACEMENT_SPANNED:
+ return EEL_BACKGROUND_SPANNED;
}
return EEL_BACKGROUND_TILED;
@@ -281,6 +283,8 @@ placement_eel_to_gnome (EelBackgroundImagePlacement p)
return GNOME_BG_PLACEMENT_ZOOMED;
case EEL_BACKGROUND_TILED:
return GNOME_BG_PLACEMENT_TILED;
+ case EEL_BACKGROUND_SPANNED:
+ return GNOME_BG_PLACEMENT_SPANNED;
}
return GNOME_BG_PLACEMENT_TILED;
diff --git a/eel/eel-background.h b/eel/eel-background.h
index 147cc5d..7b8d66d 100644
--- a/eel/eel-background.h
+++ b/eel/eel-background.h
@@ -65,7 +65,8 @@ typedef enum {
EEL_BACKGROUND_CENTERED,
EEL_BACKGROUND_SCALED,
EEL_BACKGROUND_SCALED_ASPECT,
- EEL_BACKGROUND_ZOOM
+ EEL_BACKGROUND_ZOOM,
+ EEL_BACKGROUND_SPANNED
} EelBackgroundImagePlacement;
GType eel_background_get_type (void);
diff --git a/libnautilus-private/nautilus-directory-background.c b/libnautilus-private/nautilus-directory-background.c
index 0d7b88e..75d89eb 100644
--- a/libnautilus-private/nautilus-directory-background.c
+++ b/libnautilus-private/nautilus-directory-background.c
@@ -186,6 +186,9 @@ nautilus_file_background_read_desktop_settings (char **color,
else if (strcmp (tmp, "zoom") == 0) {
*placement = EEL_BACKGROUND_ZOOM;
}
+ else if (strcmp (tmp, "spanned") == 0) {
+ *placement = EEL_BACKGROUND_SPANNED;
+ }
else if (strcmp (tmp, "none") == 0) {
g_free (*image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]