[geany/geany-plugins] 1487ec: Merge pull request #257 from b4n/geanysendmail/no-pixbuf-csource
Frank Lanitz
git-noreply at xxxxx
Sat Jun 27 13:47:31 UTC 2015
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: Frank Lanitz <frank at frank.uvena.de>
Date: Sat, 27 Jun 2015 13:47:31 UTC
Commit: 1487ecedf4917b3af88f395af782830b352b9609
https://github.com/geany/geany-plugins/commit/1487ecedf4917b3af88f395af782830b352b9609
Log Message:
-----------
Merge pull request #257 from b4n/geanysendmail/no-pixbuf-csource
geanysendmail: Drop use of deprecated GdkPixbuf inline data
Modified Paths:
--------------
geanysendmail/src/Makefile.am
geanysendmail/src/geanysendmail.c
geanysendmail/src/icon.h
geanysendmail/src/mail-icon.xpm
Modified: geanysendmail/src/Makefile.am
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -2,7 +2,7 @@ include $(top_srcdir)/build/vars.build.mk
geanyplugins_LTLIBRARIES = geanysendmail.la
-geanysendmail_la_SOURCES = geanysendmail.c icon.h
+geanysendmail_la_SOURCES = geanysendmail.c mail-icon.xpm
geanysendmail_la_LIBADD = $(COMMONLIBS)
include $(top_srcdir)/build/cppcheck.mk
Modified: geanysendmail/src/geanysendmail.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -29,7 +29,7 @@
#endif
#include <geanyplugin.h>
-#include "icon.h"
+#include "mail-icon.xpm"
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
@@ -199,7 +199,7 @@ static void add_stock_item(void)
}
else
{
- GdkPixbuf *pb = gdk_pixbuf_new_from_inline(-1, mail_pixbuf, FALSE, NULL);
+ GdkPixbuf *pb = gdk_pixbuf_new_from_xpm_data(mail_icon);
icon_set = gtk_icon_set_new_from_pixbuf(pb);
g_object_unref(pb);
}
Modified: geanysendmail/src/icon.h
50 lines changed, 0 insertions(+), 50 deletions(-)
===================================================================
@@ -1,50 +0,0 @@
-/* GdkPixbuf RGBA C-Source image dump */
-
-#ifdef __SUNPRO_C
-#pragma align 4 (mail_pixbuf)
-#endif
-#ifdef __GNUC__
-static const guint8 mail_pixbuf[] __attribute__ ((__aligned__ (4))) =
-#else
-static const guint8 mail_pixbuf[] =
-#endif
-{ ""
- /* Pixbuf magic (0x47646b50) */
- "GdkP"
- /* length: header (24) + pixel_data (520) */
- "\0\0\2\40"
- /* pixdata_type (0x1010002) */
- "\1\1\0\2"
- /* rowstride (52) */
- "\0\0\0""4"
- /* width (13) */
- "\0\0\0\15"
- /* height (10) */
- "\0\0\0\12"
- /* pixel_data: */
- "\0\0\0\0\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\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\0\0\0\0\377"
- "GGG\377\365\365\365\377\365\365\365\377\365\365\365\377\365\365\365\377"
- "\365\365\365\377\365\365\365\377\365\365\365\377\365\365\365\377\365"
- "\365\365\377222\377\0\0\0\377\0\0\0\377\365\365\365\377GGG\377\365\365"
- "\365\377\365\365\365\377\365\365\365\377\364\364\364\377\365\365\365"
- "\377\364\364\364\377\364\364\364\377GGG\377\301\301\301\377\0\0\0\377"
- "\0\0\0\377\365\365\365\377\352\352\352\377GGG\377\365\365\365\377\365"
- "\365\365\377\364\364\364\377\365\365\365\377\364\364\364\377GGG\377\353"
- "\353\353\377\252\252\252\377\0\0\0\377\0\0\0\377\365\365\365\377\365"
- "\365\365\377\365\365\365\377GGG\377\365\365\365\377\365\365\365\377\365"
- "\365\365\377===\377\357\357\357\377\353\353\353\377\353\353\353\377\0"
- "\0\0\377\0\0\0\377\363\363\363\377\365\365\365\377\357\357\357\377GG"
- "G\377\77\77\77\377\365\365\365\377FFF\377GGG\377\365\365\365\377\363"
- "\363\363\377\275\275\275\377\0\0\0\377\0\0\0\377\365\365\365\377\364"
- "\364\364\377GGG\377\365\365\365\377\365\365\365\377GGG\377\365\365\365"
- "\377\363\363\363\377GGG\377\326\326\326\377\240\240\240\377\0\0\0\377"
- "\0\0\0\377\365\365\365\377GGG\377\364\364\364\377\365\365\365\377\365"
- "\365\365\377\362\362\362\377\364\364\364\377\363\363\363\377\272\272"
- "\272\377222\377\351\351\351\377\0\0\0\377\0\0\0\377GGG\377\240\240\240"
- "\377\240\240\240\377\214\214\214\377\277\277\277\377\272\272\272\377"
- "\332\332\332\377\315\315\315\377\247\247\247\377\323\323\323\377(((\377"
- "\0\0\0\377\0\0\0\0\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\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\0"};
-
-
Modified: geanysendmail/src/mail-icon.xpm
44 lines changed, 44 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,44 @@
+/* XPM */
+static const char *mail_icon[] = {
+/* columns rows colors chars-per-pixel */
+"13 10 28 1 ",
+" c black",
+". c #282828",
+"X c #323232",
+"o c gray24",
+"O c #3F3F3F",
+"+ c #464646",
+"@ c gray28",
+"# c gray55",
+"$ c #A0A0A0",
+"% c #A7A7A7",
+"& c #AAAAAA",
+"* c gray73",
+"= c gray74",
+"- c gray75",
+"; c #C1C1C1",
+": c #CDCDCD",
+"> c LightGray",
+", c gray84",
+"< c #DADADA",
+"1 c #E9E9E9",
+"2 c #EAEAEA",
+"3 c gray92",
+"4 c #EFEFEF",
+"5 c gray95",
+"6 c #F3F3F3",
+"7 c #F4F4F4",
+"8 c gray96",
+"9 c None",
+/* pixels */
+"9 9",
+" @888888888X ",
+" 8 at 8888868@- ",
+" 82 at 88688@2& ",
+" 888 at 888O422 ",
+" 684 at O8@@86- ",
+" 88 at 88@86@,$ ",
+" 8 at 688666*X2 ",
+" @$$#-*<:%>. ",
+"9 9"
+};
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list