[totem] icon-helpers: Don't require a GApplication



commit edd088bf217d2ab8ea84cf2f2dd6089541089dde
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 6 17:08:17 2015 +0100

    icon-helpers: Don't require a GApplication
    
    We won't need it in our test application.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743247

 src/icon-helpers.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/icon-helpers.c b/src/icon-helpers.c
index b9f5572..9c91afc 100644
--- a/src/icon-helpers.c
+++ b/src/icon-helpers.c
@@ -419,7 +419,6 @@ load_named_icon (const char *name,
                 int         size,
                 guint32     fill)
 {
-       GApplication *app;
        GdkScreen *screen;
        GIcon *icon;
        GList *windows;
@@ -428,8 +427,7 @@ load_named_icon (const char *name,
        GtkStyleContext *context;
        GdkPixbuf *pixbuf, *ret;
 
-       app = g_application_get_default ();
-       windows = gtk_application_get_windows (GTK_APPLICATION (app));
+       windows = gtk_window_list_toplevels ();
        if (windows == NULL)
                return NULL;
 


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