[Xfce4-commits] [apps/xfce4-dict] 30/43: Replace Gtk Pixbuf Inline by Resource

noreply at xfce.org noreply at xfce.org
Tue Nov 1 00:31:43 CET 2016


This is an automated email from the git hooks/post-receive script.

andre pushed a commit to branch master
in repository apps/xfce4-dict.

commit a557218587e1470577db360d07155e1ca3e3010a
Author: Andre Miranda <andre42m at gmail.com>
Date:   Sun Aug 21 18:34:32 2016 -0300

    Replace Gtk Pixbuf Inline by Resource
---
 .gitignore                               |   2 +
 Makefile.am                              |   4 +-
 lib/Makefile.am                          |  23 +-
 lib/gui.c                                |  17 +-
 lib/gui.h                                |   1 -
 lib/inline-icon.h                        | 420 -------------------------------
 lib/resources.xml                        |   6 +
 panel-plugin/xfce4-dict-plugin.c         |  43 ++--
 xfce4-dict.svg => pixmaps/xfce4-dict.svg |   0
 9 files changed, 42 insertions(+), 474 deletions(-)

diff --git a/.gitignore b/.gitignore
index abede82..426ccb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,5 @@ compile
 autom4te*
 INSTALL
 xfce4-dict-*.tar.bz2
+lib/resources.c
+lib/resources.h
diff --git a/Makefile.am b/Makefile.am
index 01cc3f2..669024a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@ EXTRA_DIST =													\
 	intltool-extract.in											\
 	intltool-merge.in											\
 	intltool-update.in											\
-	xfce4-dict.svg
+	pixmaps/xfce4-dict.svg
 
 DISTCLEANFILES =												\
 	intltool-extract											\
@@ -27,7 +27,7 @@ DISTCLEANFILES =												\
 	intltool-update
 
 hicolor48dir = $(datadir)/icons/hicolor/scalable/apps
-hicolor48_DATA = xfce4-dict.svg
+hicolor48_DATA = pixmaps/xfce4-dict.svg
 
 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
 
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 874f386..70f43db 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -11,6 +11,8 @@ libdict_la_SOURCES =							\
 	libdict.h									\
 	prefs.c										\
 	prefs.h										\
+	resources.c								\
+	resources.h								\
 	speedreader.c								\
 	speedreader.h								\
 	spell.c										\
@@ -30,19 +32,12 @@ libdict_la_LIBADD =								\
 	$(LIBXFCE4UI_LIBS)							\
 	@GTHREAD_LIBS@
 
+DISTCLEANFILES =		\
+	resources.c				\
+	resources.h
 
-noinst_DATA = 									\
-	inline-icon.h
+resources.c:
+	glib-compile-resources resources.xml --sourcedir=../pixmaps --generate-source --c-name dict
 
-EXTRA_DIST = 									\
-	inline-icon.h
-
-if MAINTAINER_MODE
-# the target isn't named as the header file on
-# purpose to avoid automatic creation of the file
-# while building
-inline-icon: $(top_srcdir)/xfce4-dict.svg
-	gdk-pixbuf-csource --raw					\
-	--name=dict_icon_data						\
-	$(top_srcdir)/xfce4-dict.svg > $(srcdir)/inline-icon.h
-endif
+resources.h:
+	glib-compile-resources resources.xml --sourcedir=../pixmaps --generate-header --c-name dict
diff --git a/lib/gui.c b/lib/gui.c
index 7bb1513..8e464b8 100644
--- a/lib/gui.c
+++ b/lib/gui.c
@@ -32,7 +32,7 @@
 
 #include "common.h"
 #include "gui.h"
-#include "inline-icon.h"
+#include "resources.h"
 #include "speedreader.h"
 
 
@@ -384,7 +384,7 @@ static void textview_populate_popup_cb(GtkTextView *textview, GtkMenu *menu, Dic
 	gtk_container_add (GTK_CONTAINER (box), icon);
 	gtk_container_add (GTK_CONTAINER (box), label);
 	gtk_container_add (GTK_CONTAINER (search), box);
-	
+
 	gtk_widget_show_all(search);
 	gtk_widget_set_sensitive(GTK_WIDGET(search), textview_is_text_at_cursor(dd));
 	gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), search);
@@ -684,12 +684,6 @@ static void search_mode_spell_toggled(GtkToggleButton *togglebutton, DictData *d
 }
 
 
-const guint8 *dict_gui_get_icon_data(void)
-{
-	return dict_icon_data;
-}
-
-
 static void speedreader_clicked_cb(GtkButton *button, DictData *dd)
 {
 	GtkWidget *dialog = xfd_speed_reader_new(GTK_WINDOW(dd->window), dd);
@@ -812,7 +806,7 @@ void dict_gui_finalize(DictData *dd)
 void dict_gui_create_main_window(DictData *dd)
 {
 	GtkWidget *main_box, *entry_box, *label_box;
-	GtkWidget *sep, *align, *scrolledwindow_results;
+	GtkWidget *sep, *scrolledwindow_results;
 	GdkPixbuf *icon;
 	GtkWidget *method_chooser, *radio, *label, *button;
 	GtkAccelGroup *accel_group = gtk_accel_group_new();
@@ -822,7 +816,8 @@ void dict_gui_create_main_window(DictData *dd)
 	gtk_window_set_default_size(GTK_WINDOW(dd->window), 580, 360);
 	gtk_widget_set_name(dd->window, "Xfce4Dict");
 
-	icon = gdk_pixbuf_new_from_inline(-1, dict_icon_data, FALSE, NULL);
+	dict_get_resource();
+	icon = gdk_pixbuf_new_from_resource("/org/xfce/dict/icon", NULL);
 	gtk_window_set_icon(GTK_WINDOW(dd->window), icon);
 	g_object_unref(icon);
 
@@ -1033,7 +1028,7 @@ void dict_gui_about_dialog(GtkWidget *widget, DictData *dd)
                               "Harald Judt <hjudt at xfce.org>",
                               NULL };
 	const gchar *title = _("Xfce4 Dictionary");
-	GdkPixbuf *logo = gdk_pixbuf_new_from_inline(-1, dict_icon_data, FALSE, NULL);
+	GdkPixbuf *logo = gdk_pixbuf_new_from_resource("/org/xfce/dict/icon", NULL);
 
 	gtk_about_dialog_set_email_hook(about_activate_link, NULL, NULL);
 	gtk_about_dialog_set_url_hook(about_activate_link, NULL, NULL);
diff --git a/lib/gui.h b/lib/gui.h
index 556699c..e6305b5 100644
--- a/lib/gui.h
+++ b/lib/gui.h
@@ -28,7 +28,6 @@ void dict_gui_set_panel_entry_text(DictData *dd, const gchar *text);
 void dict_gui_show_main_window(DictData *dd);
 void dict_gui_query_geometry(DictData *dd);
 void dict_gui_finalize(DictData *dd);
-const guint8 *dict_gui_get_icon_data(void);
 
 void dict_gui_textview_apply_tag_to_word(GtkTextBuffer *buffer, const gchar *word,
 										 GtkTextIter *pos, const gchar *first_tag,
diff --git a/lib/inline-icon.h b/lib/inline-icon.h
deleted file mode 100644
index 96a6141..0000000
--- a/lib/inline-icon.h
+++ /dev/null
@@ -1,420 +0,0 @@
-/* GdkPixbuf RGBA C-Source image dump */
-
-#ifdef __SUNPRO_C
-#pragma align 4 (dict_icon_data)
-#endif
-#ifdef __GNUC__
-static const guint8 dict_icon_data[] __attribute__ ((__aligned__ (4))) = 
-#else
-static const guint8 dict_icon_data[] = 
-#endif
-{ ""
-  /* Pixbuf magic (0x47646b50) */
-  "GdkP"
-  /* length: header (24) + pixel_data (9216) */
-  "\0\0$\30"
-  /* pixdata_type (0x1010002) */
-  "\1\1\0\2"
-  /* rowstride (192) */
-  "\0\0\0\300"
-  /* width (48) */
-  "\0\0\0""0"
-  /* height (48) */
-  "\0\0\0""0"
-  /* pixel_data: */
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\252\252\252"
-  "\3\312\312\3125\313\313\313l\317\317\317\243\320\320\320\324\320\320"
-  "\320\351\322\322\322\367\324\324\324\367\323\323\323\361\321\321\321"
-  "\337\317\317\317\241\313\313\313S\377\377\377\2\306\306\306\11\315\315"
-  "\315\\\320\320\320\251\321\321\321\341\323\323\323\356\324\324\324\364"
-  "\322\322\322\366\317\317\317\351\313\313\313\330\311\311\311\257\306"
-  "\306\306y\306\306\306G\304\304\304\15\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\317\317\317\20\315"
-  "\315\315`\317\317\317\300\315\315\315\366\326\326\326\362\350\350\350"
-  "\371\363\363\363\377\372\372\372\377\374\374\374\377\373\373\372\377"
-  "\367\370\367\377\364\365\363\377\361\362\360\377\351\352\350\377\333"
-  "\333\332\370\312\307\307\360y\0\0\377\330\331\327\370\352\353\352\377"
-  "\366\366\366\377\370\370\370\377\367\367\367\377\367\367\367\377\366"
-  "\366\366\377\364\364\364\377\355\355\355\377\341\341\341\374\320\320"
-  "\320\361\300\300\300\370\300\300\300\330\276\276\276\205\274\274\274"
-  ".\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\310\310\310\16\313\313\313]\317"
-  "\317\317\300\316\316\316\370\333\333\333\364\362\362\362\377\375\375"
-  "\375\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\375\375\375\377\366\366\365\377\357\360\355\377\346\347\344\377"
-  "\335\337\333\377\334\335\331\377\345\346\344\377\344\345\343\377y\0\0"
-  "\377\326\315\314\377\337\340\336\377\352\353\352\377\360\360\360\377"
-  "\356\356\356\377\355\355\355\377\354\354\354\377\353\353\353\377\355"
-  "\355\355\377\360\360\360\377\364\364\364\377\363\363\363\377\345\345"
-  "\345\377\320\320\320\371\274\274\274\363\271\271\271\343\266\266\266"
-  "t\270\270\270\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\314\314\314\5\314\314\314\377\326\326\326\365\352"
-  "\352\352\377\375\375\375\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\375\375\375\377\366\366\365\377\356\357\354\377\346\347\344\377"
-  "\335\337\333\377\324\326\321\377\311\314\306\377\313\315\307\377z\1\1"
-  "\377\256\223\220\377\331\332\327\377\352\353\352\377\357\357\357\377"
-  "\356\356\356\377\355\355\355\377\353\353\353\377\352\352\352\377\351"
-  "\351\351\377\350\350\350\377\346\346\346\377\351\351\351\377\357\357"
-  "\357\377\365\365\365\377\356\356\356\377\330\330\330\377\303\303\303"
-  "\365\261\261\261\377\231\231\231\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0""333\5Q<N\377\311\310\311\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\375\375\374\377\366\366\365\377\356\357\354\377\346\347\344"
-  "\377\335\337\333\377\324\326\321\377\311\314\306\377\277\302\273\377"
-  "}\4\4\377\230SR\377\331\333\330\377\353\353\352\377\357\357\357\377\356"
-  "\356\356\377\355\355\355\377\353\353\353\377\352\352\352\377\351\351"
-  "\351\377\347\347\347\377\346\346\346\377\345\345\345\377\343\343\343"
-  "\377\346\346\346\377\363\363\363\377\343\343\343\377\343\343\343\377"
-  "\254\253\254\377M8J\377333\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0;';'iZh\365\320\316\320\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\375\375\374"
-  "\377\364\365\364\377\355\357\354\377\345\347\344\377\334\336\332\377"
-  "\324\326\321\377\311\314\306\377\277\302\273\377\201\14\14\377\200\7"
-  "\7\377\332\333\330\377\352\352\351\377\357\357\357\377\356\356\356\377"
-  "\354\354\354\377\353\353\353\377\352\352\352\377\350\350\350\377\347"
-  "\347\347\377\346\346\346\377\344\344\344\377\343\343\343\377\343\343"
-  "\343\377\364\364\364\377\344\344\344\377\343\343\343\377\261\257\261"
-  "\377`O_\365;';'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0<%<L\201"
-  "r\200\366\330\327\330\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\374\374\373\377\364"
-  "\365\364\377\355\357\354\377\344\346\343\377\334\336\332\377\324\326"
-  "\321\377\311\314\306\377\277\302\273\377\221ea\377\202\11\11\377\321"
-  "\307\305\377\352\352\351\377\357\357\357\377\355\355\355\377\354\354"
-  "\354\377\353\353\353\377\352\352\352\377\350\350\350\377\347\347\347"
-  "\377\346\346\346\377\344\344\344\377\343\343\343\377\343\343\343\377"
-  "\360\360\360\377\350\350\350\377\343\343\343\377\266\265\267\377qbp\366"
-  "<%<L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77&:r\224\212\224"
-  "\374\345\345\345\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\373\374\373\377\364\365"
-  "\363\377\354\355\353\377\344\346\343\377\334\335\331\377\323\325\320"
-  "\377\310\313\305\377\277\301\273\377\232\225\221\377\205\14\14\377\245"
-  "TS\377\352\353\352\377\356\356\356\377\355\355\355\377\354\354\354\377"
-  "\352\352\352\377\351\351\351\377\350\350\350\377\347\347\347\377\345"
-  "\345\345\377\344\344\344\377\343\343\343\377\343\343\343\377\355\355"
-  "\355\377\354\354\354\377\343\343\343\377\302\302\302\377|q{\374\77&:"
-  "r\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77'<\242\252\244\253"
-  "\377\354\354\354\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\373\374\373\377\364\365"
-  "\363\377\354\355\353\377\344\346\343\377\334\335\331\377\322\324\317"
-  "\377\310\313\305\377\277\301\273\377\234\235\231\377\240SR\377\210\17"
-  "\17\377\314\247\247\377\356\356\356\377\355\355\355\377\354\354\354\377"
-  "\352\352\352\377\351\351\351\377\350\350\350\377\346\346\346\377\345"
-  "\345\345\377\344\344\344\377\343\343\343\377\343\343\343\377\351\351"
-  "\351\377\360\360\360\377\343\343\343\377\312\312\312\377\213\204\213"
-  "\377\77'<\242\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@'<\317"
-  "\275\271\275\377\362\362\362\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\373\374\373"
-  "\377\364\365\363\377\354\355\353\377\344\346\343\377\334\335\331\377"
-  "\322\324\317\377\310\313\305\377\277\301\273\377\234\235\231\377\273"
-  "\262\256\377\213\21\21\377\215\26\26\377\342\323\323\377\355\355\355"
-  "\377\353\353\353\377\352\352\352\377\351\351\351\377\347\347\347\377"
-  "\346\346\346\377\345\345\345\377\344\344\344\377\343\343\343\377\343"
-  "\343\343\377\345\345\345\377\364\364\364\377\343\343\343\377\322\322"
-  "\322\377\226\222\226\377@'<\317\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0>'<\356\304\302\304\377\371\371\371\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\372\373\372\377\364\365\363\377\354\355\353\377\344\345\342\377"
-  "\333\335\331\377\321\324\317\377\310\313\305\377\276\301\273\377\234"
-  "\237\231\377\300\302\276\377\275\216\214\377\216\24\24\377\24077\377"
-  "\344\333\333\377\353\353\353\377\352\352\352\377\351\351\351\377\347"
-  "\347\347\377\346\346\346\377\345\345\345\377\343\343\343\377\343\343"
-  "\343\377\343\343\343\377\343\343\343\377\363\363\363\377\345\345\345"
-  "\377\333\333\333\377\232\231\233\377>'<\356\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0 at +@\14E.B\372\303\303\303\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376"
-  "\376\376\377\372\373\372\377\364\365\363\377\354\355\353\377\344\345"
-  "\342\377\333\335\331\377\321\324\317\377\310\313\305\377\276\301\273"
-  "\377\235\237\232\377\300\302\276\377\332\332\330\377\251NN\377\227!!"
-  "\377\247BB\377\347\341\341\377\352\352\352\377\350\350\350\377\347\347"
-  "\347\377\346\346\346\377\344\344\344\377\343\343\343\377\343\343\343"
-  "\377\343\343\343\377\343\343\343\377\360\360\360\377\351\351\351\377"
-  "\342\342\342\377\234\233\234\377D-A\372 at +@\14\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0@%:0\\HZ\363\300\277\300\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376"
-  "\376\377\372\373\372\377\364\365\363\377\354\355\353\377\344\345\342"
-  "\377\333\335\331\377\321\324\317\377\310\313\305\377\276\301\273\377"
-  "\234\236\231\377\300\302\276\377\333\334\331\377\345\335\334\377\242"
-  "66\377\24522\377\254NN\377\350\345\345\377\350\350\350\377\347\347\347"
-  "\377\345\345\345\377\344\344\344\377\343\343\343\377\343\343\343\377"
-  "\343\343\343\377\343\343\343\377\354\354\354\377\355\355\355\377\343"
-  "\343\343\377\237\236\237\377VBT\363@%:0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0>&;Wn^n\366\304\302\304\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\376\377"
-  "\372\372\372\377\363\364\362\377\354\355\352\377\343\345\342\377\333"
-  "\335\330\377\321\324\316\377\310\312\305\377\276\301\272\377\235\237"
-  "\232\377\301\303\277\377\333\334\331\377\351\352\351\377\340\316\316"
-  "\377\240--\377\255<<\377\265``\377\347\345\345\377\346\346\346\377\345"
-  "\345\345\377\344\344\344\377\343\343\343\377\343\343\343\377\343\343"
-  "\343\377\343\343\343\377\350\350\350\377\361\361\361\377\343\343\343"
-  "\377\246\244\246\377dTd\366>&;W\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77';"
-  "}\177q\177\375\317\316\317\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376\376\377"
-  "\371\371\371\377\363\364\362\377\354\355\352\377\342\344\341\377\333"
-  "\335\330\377\321\324\316\377\310\312\305\377\276\301\272\377\235\237"
-  "\233\377\301\303\277\377\332\333\331\377\351\352\351\377\355\355\355"
-  "\377\326\266\266\377\24411\377\260@@\377\275uu\377\346\346\346\377\345"
-  "\345\345\377\344\344\344\377\343\343\343\377\343\343\343\377\343\343"
-  "\343\377\343\343\343\377\344\344\344\377\364\364\364\377\343\343\343"
-  "\377\263\262\263\377ses\375\77';}\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77"
-  "(<\256\217\205\220\377\334\334\334\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376"
-  "\376\377\371\371\371\377\363\364\362\377\354\355\352\377\342\344\341"
-  "\377\333\335\330\377\321\324\316\377\310\312\305\377\276\301\272\377"
-  "\235\237\233\377\301\302\277\377\332\334\331\377\352\352\351\377\355"
-  "\355\355\377\353\353\353\377\311\222\222\377\271KK\377\260@@\377\316"
-  "\244\244\377\345\345\345\377\343\343\343\377\343\343\343\377\343\343"
-  "\343\377\343\343\343\377\343\343\343\377\343\343\343\377\363\363\363"
-  "\377\346\346\346\377\301\301\301\377\177u\200\377\77(<\256\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\77)=\326\237\231\240\377\344\344\344\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\375\375\375\377\371\371\371\377\363\363\362\377\352"
-  "\353\351\377\342\344\340\377\332\335\330\377\321\323\316\377\310\312"
-  "\304\377\276\301\272\377\236\240\233\377\301\303\277\377\333\334\331"
-  "\377\352\352\351\377\354\354\354\377\353\353\353\377\352\351\351\377"
-  "\262QQ\377\316aa\377\253<<\377\337\325\325\377\343\343\343\377\343\343"
-  "\343\377\343\343\343\377\343\343\343\377\343\343\343\377\343\343\343"
-  "\377\357\357\357\377\352\352\352\377\312\312\312\377\216\210\217\377"
-  "\77)=\326\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\77(<\365\250\245\251\377\355"
-  "\355\355\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\376\376\376\377\375\375\375\377\371\371\371\377"
-  "\362\362\361\377\352\353\351\377\342\344\340\377\332\335\330\377\321"
-  "\323\316\377\310\312\304\377\276\301\272\377\237\241\234\377\302\303"
-  "\277\377\333\334\331\377\351\351\351\377\354\354\354\377\353\353\353"
-  "\377\351\351\351\377\335\312\312\377\255<<\377\310XX\377\300tt\377\343"
-  "\343\343\377\343\343\343\377\343\343\343\377\343\343\343\377\343\343"
-  "\343\377\343\343\343\377\353\353\353\377\355\355\355\377\323\323\323"
-  "\377\227\224\230\377\77(<\365\0\0\0\0\0\0\0\0\0\0\0\0=$=\25D+A\370\252"
-  "\250\252\377\367\367\367\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\376\376\376\377\375\375\375\377"
-  "\370\370\367\377\361\362\361\377\352\353\351\377\342\344\340\377\331"
-  "\334\327\377\321\323\316\377\310\312\304\377\276\301\272\377\237\241"
-  "\235\377\302\303\277\377\332\333\331\377\351\352\351\377\354\354\354"
-  "\377\352\352\352\377\351\351\351\377\350\350\350\377\270\\\\\377\313"
-  "UU\377\255;;\377\335\323\323\377\343\343\343\377\343\343\343\377\343"
-  "\343\343\377\343\343\343\377\343\343\343\377\347\347\347\377\361\361"
-  "\361\377\335\335\335\377\233\231\233\377D+A\370=$=\25\0\0\0\0\0\0\0\0"
-  "='=;N9N\361\250\247\250\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\376\376\376\377\375"
-  "\375\375\377\370\370\367\377\361\362\361\377\352\353\351\377\342\344"
-  "\340\377\331\334\327\377\321\323\316\377\307\312\304\377\275\300\272"
-  "\377\237\241\235\377\302\304\300\377\333\334\331\377\351\352\351\377"
-  "\354\354\354\377\352\352\352\377\351\351\351\377\350\350\350\377\316"
-  "\236\236\377\274FF\377\274EE\377\313\227\227\377\343\343\343\377\343"
-  "\343\343\377\343\343\343\377\343\343\343\377\343\343\343\377\344\344"
-  "\344\377\364\364\364\377\343\343\343\377\233\233\233\377M8M\361='=;\0"
-  "\0\0\0\0\0\0\0=%:`_M_\366\252\251\252\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376"
-  "\376\376\377\374\374\374\377\370\370\367\377\361\362\361\377\351\352"
-  "\350\377\342\344\340\377\331\334\327\377\321\323\316\377\307\312\304"
-  "\377\275\300\272\377\240\242\235\377\303\304\301\377\333\334\331\377"
-  "\351\352\351\377\353\353\353\377\352\352\352\377\351\351\351\377\347"
-  "\347\347\377\334\306\306\377\262\77\77\377\302BB\377\273__\377\343\343"
-  "\343\377\343\343\343\377\343\343\343\377\343\343\343\377\343\343\343"
-  "\377\343\343\343\377\362\362\362\377\347\347\347\377\240\237\240\377"
-  "]K]\366=%:`\0\0\0\0\0\0\0\0\77%<\211m\\m\376\261\260\262\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\375\375\375\377\374\374\374\377\370\370\367\377\360"
-  "\361\357\377\351\352\347\377\342\344\340\377\331\333\327\377\320\323"
-  "\316\377\307\312\304\377\275\300\271\377\241\243\236\377\303\304\301"
-  "\377\333\334\332\377\351\351\350\377\353\353\353\377\352\352\352\377"
-  "\351\351\351\377\347\347\347\377\343\336\336\377\25788\377\30299\377"
-  "\264CC\377\343\343\343\377\343\343\343\377\343\343\343\377\343\343\343"
-  "\377\343\343\343\377\343\343\343\377\356\356\356\377\352\352\352\377"
-  "\250\246\250\377kZk\376\77%<\211\0\0\0\0\0\0\0\0A'>\271xly\377\301\300"
-  "\301\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\376\376\376\377\376\376\376\377\375\375\375\377\372"
-  "\372\372\377\367\367\366\377\362\362\361\377\353\355\352\377\343\344"
-  "\341\377\323\326\321\377\307\312\304\377\275\300\271\377\241\243\236"
-  "\377\303\305\301\377\334\335\334\377\357\357\357\377\362\362\362\377"
-  "\362\362\362\377\362\362\362\377\361\361\361\377\360\360\360\377\260"
-  "66\377\272++\377\26199\377\344\344\344\377\343\343\343\377\343\343\343"
-  "\377\343\343\343\377\343\343\343\377\343\343\343\377\352\352\352\377"
-  "\356\356\356\377\265\264\265\377wkx\377A'>\271\0\0\0\0\0\0\0\0@'<\340"
-  "\206|\207\377\322\322\322\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
-  "\377\376\376\376\377\366\366\366\377\353\353\353\377\341\341\341\377"
-  "\332\332\332\377\322\322\322\377\321\321\321\377\333\333\332\377\341"
-  "\342\341\377\350\350\347\377\355\356\354\377\342\343\340\377\304\307"
-  "\300\377\254\255\251\377\340\341\337\377\360\361\360\377\350\350\350"
-  "\377\336\336\336\377\325\325\325\377\313\313\313\377\314\314\314\377"
-  "\320\313\313\377\26177\377\263\34\34\377\26066\377\364\364\364\377\362"
-  "\362\362\377\356\356\356\377\351\351\351\377\344\344\344\377\343\343"
-  "\343\377\347\347\347\377\362\362\362\377\303\303\303\377\206|\206\377"
-  "@'<\340\0\0\0\0\0\0\0\1@)>\372\223\215\224\377\340\340\340\377\377\377"
-  "\377\377\377\377\377\377\377\377\377\377\372\372\372\377\353\353\353"
-  "\377\317\317\317\377\261\261\260\377\236\236\236\377\240\240\240\377"
-  "\241\242\240\377\240\242\237\377\240\242\236\377\242\244\240\377\242"
-  "\244\237\377\241\243\237\377\241\242\237\377\237\237\236\377\241\241"
-  "\241\377\315\315\313\377\351\352\350\377\337\337\335\377\306\307\306"
-  "\377\241\241\241\377\237\237\236\377\242\242\240\377\243\245\241\377"
-  "\245\247\243\377\245\247\243\377\247\206\204\377\25755\377\254\20\20"
-  "\377\26098\377\235\236\235\377\256\256\255\377\310\310\310\377\342\342"
-  "\342\377\360\360\360\377\360\360\360\377\352\352\352\377\365\365\365"
-  "\377\316\316\316\377\222\214\222\377@)>\372\0\0\0\1>#>\35D-C\365\231"
-  "\227\232\377\356\356\356\377\367\367\367\377\336\336\336\377\270\270"
-  "\270\377\241\241\241\377\235\235\233\377\237\240\233\377\250\254\244"
-  "\377\260\264\253\377\255\260\247\377\251\254\244\377\245\251\240\377"
-  "\244\251\237\377\244\250\237\377\245\251\240\377\247\253\242\377\252"
-  "\256\246\377\257\264\253\377\255\261\250\377\234\235\232\377\251\251"
-  "\250\377\243\243\242\377\234\235\233\377\257\261\253\377\263\267\256"
-  "\377\261\265\255\377\262\264\255\377\262\264\255\377\263\265\257\377"
-  "\261ro\377\252\37\37\377\246\12\12\377\261DC\377\270\273\264\377\262"
-  "\264\256\377\245\246\242\377\236\236\235\377\240\240\240\377\266\266"
-  "\266\377\330\330\330\377\357\357\357\377\333\333\333\377\230\225\230"
-  "\377D-C\365>#>\35@&<DK5I\361\233\233\233\377\246\246\246\377\242\243"
-  "\242\377\231\231\226\377\241\244\236\377\257\263\252\377\255\261\250"
-  "\377\245\251\237\377\237\243\230\377\232\236\224\377\232\237\224\377"
-  "\233\240\225\377\235\241\227\377\236\242\230\377\237\243\231\377\240"
-  "\245\233\377\242\246\234\377\243\247\235\377\245\251\241\377\256\261"
-  "\251\377\264\267\257\377\246\250\243\377\246\250\242\377\264\270\260"
-  "\377\262\264\255\377\256\261\251\377\256\261\251\377\257\263\253\377"
-  "\260\264\254\377\262\265\255\377\260EC\377\253\"\"\377\252\36\36\377"
-  "\260TR\377\270\273\264\377\271\274\265\377\272\275\266\377\272\275\266"
-  "\377\272\275\266\377\253\257\251\377\235\236\233\377\241\242\241\377"
-  "\245\245\245\377\233\233\233\377K5I\361@&<D\77&<jZGZ\367\222\223\221"
-  "\377\233\240\230\377\262\266\255\377\263\266\256\377\254\260\250\377"
-  "\245\251\237\377\242\247\234\377\245\251\240\377\247\253\241\377\251"
-  "\254\243\377\252\256\245\377\253\257\246\377\254\260\246\377\255\260"
-  "\250\377\253\257\246\377\251\255\244\377\247\253\242\377\255\262\251"
-  "\377\261\264\254\377\243\246\237\377\223\223\220\377\216\216\213\377"
-  "\215\215\213\377\223\223\220\377\243\246\240\377\262\266\257\377\264"
-  "\267\257\377\262\265\255\377\264\267\260\377\265\264\254\377\26066\377"
-  "\261DC\377\26066\377\262[Y\377\271\275\265\377\273\276\267\377\272\275"
-  "\266\377\272\275\266\377\272\275\266\377\272\275\266\377\272\275\266"
-  "\377\272\275\266\377\254\256\251\377\222\223\221\377ZGZ\367\77&<j>%;"
-  "\227gYg\377\207\210\204\377\246\252\241\377\262\266\255\377\252\255\245"
-  "\377\250\253\243\377\245\251\242\377\242\246\236\377\240\244\234\377"
-  "\236\241\232\377\232\234\226\377\227\231\224\377\227\231\223\377\225"
-  "\226\222\377\226\226\222\377\232\234\226\377\242\245\236\377\257\262"
-  "\253\377\237\243\235\377\210\211\206\377wov\377bQd\377YB\\\377YB\\\377"
-  "bQd\377wov\377\207\211\205\377\240\244\236\377\260\263\255\377\244\247"
-  "\240\377\235\232\224\377\231\222\217\377\227\230\224\377\236\202~\377"
-  "\243sp\377\233\235\230\377\241\243\236\377\244\247\241\377\250\252\245"
-  "\377\253\256\247\377\256\262\253\377\261\264\256\377\264\267\257\377"
-  "\267\271\263\377\220\221\216\377gYg\377>%;\227@'=\304sis\377\210\212"
-  "\205\377\206\207\203\377\204\204\202\377\203\202\200\377\201\177\177"
-  "\377~y{\377ysx\377tks\377nbo\377j]k\377gYi\377gYi\377gYi\377gYi\377i"
-  "\\k\377sjs\377\207\210\204\377\203\202\201\377hSk\377ZA^\377S9W\377R"
-  "8V\377R8V\377S9W\377ZA^\377hSk\377\203\202\202\377\210\211\205\377tk"
-  "t\377j\\k\377gYi\377gYi\377gYi\377gYi\377i\\k\377mam\377tjs\377ysx\377"
-  "\177y}\377\203\200\200\377\205\203\202\377\206\206\204\377\207\210\204"
-  "\377\210\212\205\377sis\377@'=\304\77(<\350fPi\377iSm\377hQk\377hQk\377"
-  "hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377"
-  "hQk\377hQk\377hQk\377iTm\377O9M\372G1E\373^G_\377hQk\377fOi\377fOi\377"
-  "hQk\377^G_\377G1E\373N8M\372iTm\377hQk\377hQk\377hQk\377hQk\377hQk\377"
-  "hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377hQk\377"
-  "iSm\377fPi\377\77(<\350>&;\377\77'<\377@(=\377@(=\377@(=\377@(=\377@"
-  "(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377"
-  "@(=\377@(=\377@(=\377B-\77\316F8D\226A,\77\334A)=\365D,A\370D,A\370A"
-  ")=\365A,\77\334F8D\226B,A\315@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377"
-  "@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377@(=\377"
-  "@(=\377\77'<\377>&;\377\0\0\0\0\0\0\0\0\0\0\0\0UUU\3```\10NNN\15UUU\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0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
-  "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"};
-
-
diff --git a/lib/resources.xml b/lib/resources.xml
new file mode 100644
index 0000000..36b515f
--- /dev/null
+++ b/lib/resources.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+    <gresource prefix="/org/xfce/dict">
+        <file alias="icon">xfce4-dict.svg</file>
+    </gresource>
+</gresources>
diff --git a/panel-plugin/xfce4-dict-plugin.c b/panel-plugin/xfce4-dict-plugin.c
index 031e98f..b38b192 100644
--- a/panel-plugin/xfce4-dict-plugin.c
+++ b/panel-plugin/xfce4-dict-plugin.c
@@ -36,6 +36,7 @@
 #include <string.h>
 
 #include "libdict.h"
+#include "resources.h"
 
 
 typedef struct
@@ -51,39 +52,21 @@ typedef struct
 
 static gboolean entry_is_dirty = FALSE;
 
-static GdkPixbuf *dict_plugin_load_and_scale(const guint8 *data, gint dstw, gint dsth)
-{
-	GdkPixbuf *pb, *pb_scaled;
-	gint pb_w, pb_h;
-
-	pb = gdk_pixbuf_new_from_inline(-1, data, FALSE, NULL);
-	pb_w = gdk_pixbuf_get_width(pb);
-	pb_h = gdk_pixbuf_get_height(pb);
-
-	if (dstw == pb_w && dsth == pb_h)
-		return(pb);
-	else if (dstw < 0)
-		dstw = (dsth * pb_w) / pb_h;
-	else if (dsth < 0)
-		dsth = (dstw * pb_h) / pb_w;
-
-	pb_scaled = gdk_pixbuf_scale_simple(pb, dstw, dsth, GDK_INTERP_HYPER);
-	g_object_unref(G_OBJECT(pb));
-
-	return pb_scaled;
-}
-
 
 static gboolean dict_plugin_panel_set_size(XfcePanelPlugin *plugin, gint wsize, DictPanelData *dpd)
 {
+  GtkBorder border;
+	GtkStyleContext *context;
 	gint size;
 	gint bsize = wsize;
-	bsize /= xfce_panel_plugin_get_nrows(plugin);
+	bsize /= xfce_panel_plugin_get_nrows (plugin);
 
-	size = bsize - 2 - (2 * MAX(dpd->panel_button->style->xthickness,
-									 dpd->panel_button->style->ythickness));
+	context = gtk_widget_get_style_context (GTK_WIDGET (dpd->panel_button));
+	gtk_style_context_get_border (context, gtk_widget_get_state_flags (GTK_WIDGET (dpd->panel_button)), &border);
+	size = bsize - 2 * MAX (border.left + border.right, border.top + border.bottom);
 
-	dpd->dd->icon = dict_plugin_load_and_scale(dict_gui_get_icon_data(), size, -1);
+	dpd->dd->icon = gdk_pixbuf_new_from_resource_at_scale("/org/xfce/dict/icon",
+										size, -1, TRUE, NULL);
 
 	gtk_image_set_from_pixbuf(GTK_IMAGE(dpd->panel_button_image), dpd->dd->icon);
 
@@ -360,6 +343,7 @@ static void dict_plugin_drag_data_received(GtkWidget *widget, GdkDragContext *dr
 
 static void dict_plugin_construct(XfcePanelPlugin *plugin)
 {
+	GtkCssProvider *css_provider;
 	DictPanelData *dpd = g_new0(DictPanelData, 1);
 
 	xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
@@ -376,6 +360,13 @@ static void dict_plugin_construct(XfcePanelPlugin *plugin)
 	dpd->panel_button_image = gtk_image_new();
 	gtk_container_add(GTK_CONTAINER(dpd->panel_button), GTK_WIDGET(dpd->panel_button_image));
 
+	/* Setup Gtk style */
+	css_provider = gtk_css_provider_new ();
+	gtk_css_provider_load_from_data (css_provider, "button { padding: 1px; border-width: 1px;}", -1, NULL);
+	gtk_style_context_add_provider (GTK_STYLE_CONTEXT (gtk_widget_get_style_context (GTK_WIDGET (dpd->panel_button))),
+																	GTK_STYLE_PROVIDER (css_provider),
+																	GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
 	gtk_widget_show_all(dpd->panel_button);
 
 	g_signal_connect(dpd->panel_button, "clicked", G_CALLBACK(dict_plugin_panel_button_clicked), dpd);
diff --git a/xfce4-dict.svg b/pixmaps/xfce4-dict.svg
similarity index 100%
rename from xfce4-dict.svg
rename to pixmaps/xfce4-dict.svg

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list