summaryrefslogtreecommitdiff
path: root/thunarx
diff options
context:
space:
mode:
authorAlexander Schwinn <alexxcons@xfce.org>2022-01-07 19:25:06 +0000
committerAlexander Schwinn <alexxcons@xfce.org>2022-01-07 19:25:06 +0000
commit5afec98a272877929d8f79f02071779c991d40d2 (patch)
tree4fc15d2907b3dd070bcb22d6935b0ae7095d8ed5 /thunarx
parentd2044c4f8e54332d1ab140993f3e90f89bf6633e (diff)
downloadthunar-5afec98a272877929d8f79f02071779c991d40d2.tar.gz
Return gboolean in all XfceGtkActionEntry callbacks instead of void (Issue #469)
Only like that 'gtk_accel_groups_activate' will correctly return TRUE if the related accelerator was activated. Most likely this patch only is required because of a glib bug: https://gitlab.gnome.org/GNOME/glib/-/issues/753 See as well: apps/xfce4-terminal!33 MR: !179
Diffstat (limited to 'thunarx')
-rw-r--r--thunarx/thunarx-menu-item.c3
-rw-r--r--thunarx/thunarx-menu.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/thunarx/thunarx-menu-item.c b/thunarx/thunarx-menu-item.c
index 4969a6e7..e3989546 100644
--- a/thunarx/thunarx-menu-item.c
+++ b/thunarx/thunarx-menu-item.c
@@ -341,10 +341,11 @@ thunarx_menu_item_new (const gchar *name,
*
* Emits the activate signal.
*/
-void
+gboolean
thunarx_menu_item_activate (ThunarxMenuItem *item)
{
g_signal_emit (item, signals[ACTIVATE], 0);
+ return TRUE;
}
diff --git a/thunarx/thunarx-menu.h b/thunarx/thunarx-menu.h
index 8de23b07..3f1adef5 100644
--- a/thunarx/thunarx-menu.h
+++ b/thunarx/thunarx-menu.h
@@ -102,7 +102,7 @@ ThunarxMenuItem *thunarx_menu_item_new (const gchar *name,
const gchar *tooltip,
const gchar *icon) G_GNUC_MALLOC;
-void thunarx_menu_item_activate (ThunarxMenuItem *item);
+gboolean thunarx_menu_item_activate (ThunarxMenuItem *item);
gboolean thunarx_menu_item_get_sensitive (ThunarxMenuItem *item);
void thunarx_menu_item_set_sensitive (ThunarxMenuItem *item,