[beast: 4/16] BST: use gxk_pixbuf_new_from_inline()



commit 5e19ee7a858765d2f7282a7cb6d09f53fe5f3548
Author: Tim Janik <timj gnu org>
Date:   Wed Sep 6 03:32:44 2017 +0200

    BST: use gxk_pixbuf_new_from_inline()
    
    Signed-off-by: Tim Janik <timj gnu org>

 beast-gtk/bstasciipixbuf.cc    |    3 ++-
 beast-gtk/gxk/gxkimagecache.cc |    3 ++-
 beast-gtk/gxk/gxkstock.cc      |    4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/beast-gtk/bstasciipixbuf.cc b/beast-gtk/bstasciipixbuf.cc
index c245e99..9e2ce50 100644
--- a/beast-gtk/bstasciipixbuf.cc
+++ b/beast-gtk/bstasciipixbuf.cc
@@ -1,5 +1,6 @@
 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
 #include "bstasciipixbuf.hh"
+#include "gxk/gxkcompat.hh"
 
 
 /* --- prototypes --- */
@@ -745,5 +746,5 @@ static const guint8 ascii_font_pixdata[] =
 static GdkPixbuf*
 ascii_pixbuf_create (void)
 {
-  return gdk_pixbuf_new_from_inline (-1, ascii_font_pixdata, FALSE, NULL);
+  return gxk_pixbuf_new_from_inline (-1, ascii_font_pixdata, FALSE, NULL);
 }
diff --git a/beast-gtk/gxk/gxkimagecache.cc b/beast-gtk/gxk/gxkimagecache.cc
index 6d1c20c..343f688 100644
--- a/beast-gtk/gxk/gxkimagecache.cc
+++ b/beast-gtk/gxk/gxkimagecache.cc
@@ -1,5 +1,6 @@
 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
 #include "gxkimagecache.hh"
+#include "gxkcompat.hh"
 #include <string.h>
 
 
@@ -38,7 +39,7 @@ load_pixbuf (const char *file_name,
         "\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0"
         "\0\377\0\0\0\210\0\0\0"
       };
-      return gdk_pixbuf_new_from_inline (sizeof (black32_pixbuf), black32_pixbuf, FALSE, errorp);
+      return gxk_pixbuf_new_from_inline (sizeof (black32_pixbuf), black32_pixbuf, FALSE, errorp);
     }
   /* try to load from disk */
   return gdk_pixbuf_new_from_file (file_name, errorp);
diff --git a/beast-gtk/gxk/gxkstock.cc b/beast-gtk/gxk/gxkstock.cc
index 5c07fd3..0085727 100644
--- a/beast-gtk/gxk/gxkstock.cc
+++ b/beast-gtk/gxk/gxkstock.cc
@@ -1,6 +1,6 @@
 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
 #include "gxkstock.hh"
-
+#include "gxkcompat.hh"
 #include <string.h>
 
 /* --- variables --- */
@@ -168,7 +168,7 @@ gxk_stock_register_icon (const GxkStockIcon *icon)
 
   assert_return (icon != NULL);
 
-  pixbuf = gdk_pixbuf_new_from_inline (-1, icon->inlined_pixbuf, FALSE, NULL);
+  pixbuf = gxk_pixbuf_new_from_inline (-1, icon->inlined_pixbuf, FALSE, NULL);
   iset = gtk_icon_set_new_from_pixbuf (pixbuf);
   g_object_unref (pixbuf);
   gtk_icon_factory_add (stock_icon_factory, icon->stock_id, iset);


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