mirror of
https://github.com/elementary/gala.git
synced 2024-11-24 12:23:58 +03:00
Fixed bug #1009991
This commit is contained in:
parent
6f9c230781
commit
a643364019
@ -211,11 +211,24 @@ namespace Gala
|
|||||||
current_workspace.auto_resize = true;
|
current_workspace.auto_resize = true;
|
||||||
current_workspace.draw.connect (draw_current_workspace);
|
current_workspace.draw.connect (draw_current_workspace);
|
||||||
|
|
||||||
var path = File.new_for_uri (new GLib.Settings ("org.gnome.desktop.background").get_string ("picture-uri")).get_path ();
|
var settings = new GLib.Settings ("org.gnome.desktop.background");
|
||||||
|
|
||||||
|
settings.changed.connect ((key) => {
|
||||||
|
if (key == "picture-uri") {
|
||||||
|
var path = File.new_for_uri (settings.get_string ("picture-uri")).get_path ();
|
||||||
try {
|
try {
|
||||||
background_pix = new Gdk.Pixbuf.from_file (path).scale_simple
|
background_pix = new Gdk.Pixbuf.from_file (path).scale_simple
|
||||||
((int)workspace_thumb.width, (int)workspace_thumb.height, Gdk.InterpType.HYPER);
|
((int)workspace_thumb.width, (int)workspace_thumb.height, Gdk.InterpType.HYPER);
|
||||||
} catch (Error e) { warning (e.message); }
|
} catch (Error e) { warning (e.message); }
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var path = File.new_for_uri (settings.get_string ("picture-uri")).get_path ();
|
||||||
|
try {
|
||||||
|
background_pix = new Gdk.Pixbuf.from_file (path).scale_simple
|
||||||
|
((int)workspace_thumb.width, (int)workspace_thumb.height, Gdk.InterpType.HYPER);
|
||||||
|
} catch (Error e) { warning (e.message); }
|
||||||
|
|
||||||
add_child (workspace_thumb);
|
add_child (workspace_thumb);
|
||||||
add_child (bg);
|
add_child (bg);
|
||||||
/*add_child (tile); removed for now until Luna+1 */
|
/*add_child (tile); removed for now until Luna+1 */
|
||||||
|
Loading…
Reference in New Issue
Block a user