[geany/geany-plugins] 0b49ba: treebrowser: removed HAVE_GIO checks
LarsDW223
git-noreply at xxxxx
Wed Mar 7 20:24:21 UTC 2018
Branch: refs/heads/master
Author: LarsDW223 <lars_paulsen at web.de>
Committer: LarsDW223 <lars_paulsen at web.de>
Date: Wed, 07 Mar 2018 20:24:21 UTC
Commit: 0b49baec7d516b82fcac4c99d26fc9ea3073effd
https://github.com/geany/geany-plugins/commit/0b49baec7d516b82fcac4c99d26fc9ea3073effd
Log Message:
-----------
treebrowser: removed HAVE_GIO checks
Modified Paths:
--------------
build/treebrowser.m4
treebrowser/src/treebrowser.c
Modified: build/treebrowser.m4
6 lines changed, 0 insertions(+), 6 deletions(-)
===================================================================
@@ -15,14 +15,8 @@ AC_DEFUN([GP_CHECK_TREEBROWSER],
])
fi
- PKG_CHECK_MODULES([GIO], [gio-2.0],
- [AC_DEFINE([HAVE_GIO], 1, [Whether we have GIO])
- have_gio=yes],
- [have_gio=no])
-
AM_CONDITIONAL(ENABLE_TREEBROWSER, test "x$enable_treebrowser" = "xyes")
GP_COMMIT_PLUGIN_STATUS([TreeBrowser])
- GP_STATUS_FEATURE_ADD([TreeBrowser GIO support], [$have_gio])
AC_CONFIG_FILES([
treebrowser/Makefile
Modified: treebrowser/src/treebrowser.c
6 lines changed, 2 insertions(+), 4 deletions(-)
===================================================================
@@ -19,9 +19,7 @@
#include "geany.h"
#include "geanyplugin.h"
-#ifdef HAVE_GIO
-# include <gio/gio.h>
-#endif
+#include <gio/gio.h>
#ifdef G_OS_WIN32
# include <windows.h>
@@ -208,7 +206,7 @@ utils_pixbuf_from_stock(const gchar *stock_id)
static GdkPixbuf *
utils_pixbuf_from_path(gchar *path)
{
-#if defined(HAVE_GIO) && GTK_CHECK_VERSION(2, 14, 0)
+#if GTK_CHECK_VERSION(2, 14, 0)
GIcon *icon;
GdkPixbuf *ret = NULL;
GtkIconInfo *info;
--------------
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