aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-23 12:51:23 -0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-23 12:51:23 -0200
commitdfa0e9d779a1f341937251eaebffe1c720120cfe (patch)
tree77f36ec2cb0720a4e696f59059ba2081baae7e7e /src/camorama-window.c
parent7933c506c9d2a52fb38ffc5f09bf92c8eea7ca06 (diff)
get rid of glib-helpers.h
The only definition there is a macro. Such macro exists already at glib, and we don't really need it, as it is used only on two places, and the definition we use is trivial. So, just get rid of it for good. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/camorama-window.c')
-rw-r--r--src/camorama-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 2a28fae..07261b7 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -28,12 +28,12 @@
# include <config.h>
#endif
+#include <glib.h>
#include <glib/gi18n.h>
#include "callbacks.h"
#include "camorama-filter-chain.h"
#include "camorama-globals.h"
#include "filter.h"
-#include "glib-helpers.h"
#include "support.h"
static GQuark menu_item_filter_type = 0;
@@ -77,8 +77,8 @@ static void delete_filter_clicked(GtkTreeSelection *sel,
GList *paths = gtk_tree_selection_get_selected_rows(sel, &model);
struct weak_target target = { model, NULL };
- g_list_foreach(paths, G_FUNC(reference_path), &target);
- g_list_foreach(target.list, G_FUNC(delete_filter), model);
+ g_list_foreach(paths, (GFunc)(reference_path), &target);
+ g_list_foreach(target.list, (GFunc)(delete_filter), model);
g_list_free_full(target.list,
(GDestroyNotify) gtk_tree_row_reference_free);
g_list_free_full(paths, (GDestroyNotify) gtk_tree_path_free);

Privacy Policy