[gnome-flashback] libdesktop-background: show window only when background is ready



commit ac2b97160419f5d70748a5e0a9f81c1ca0c74dd3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Sep 27 02:26:53 2014 +0300

    libdesktop-background: show window only when background is ready

 .../libdesktop-background/desktop-background.c     |    1 +
 .../libdesktop-background/desktop-window.c         |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libdesktop-background/desktop-background.c 
b/gnome-flashback/libdesktop-background/desktop-background.c
index 6bdd94d..529aae1 100644
--- a/gnome-flashback/libdesktop-background/desktop-background.c
+++ b/gnome-flashback/libdesktop-background/desktop-background.c
@@ -333,6 +333,7 @@ background_changed_cb (gpointer user_data)
        background_unrealize (background);
        background_set_up (background);
 
+       gtk_widget_show (background->priv->background);
        gtk_widget_queue_draw (background->priv->background);
 
        return G_SOURCE_REMOVE;
diff --git a/gnome-flashback/libdesktop-background/desktop-window.c 
b/gnome-flashback/libdesktop-background/desktop-window.c
index b9fe495..7aa63c2 100644
--- a/gnome-flashback/libdesktop-background/desktop-window.c
+++ b/gnome-flashback/libdesktop-background/desktop-window.c
@@ -154,7 +154,7 @@ desktop_window_new (void)
        window = GTK_WINDOW (widget);
 
        gtk_window_set_keep_below (window, TRUE);
-       gtk_window_present (window);
+       gtk_widget_realize (widget);
 
        return widget;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]