aboutsummaryrefslogtreecommitdiff
path: root/src/idoplaybackmenuitem.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-07 08:38:02 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-07 08:38:02 +0200
commitb1998c6ab583d5129ef0e10eb9b6c99ff0b89631 (patch)
tree89f3201214321fbc0384562f70164f2f057d0711 /src/idoplaybackmenuitem.c
parent09c5052d290d76faadc997a6aefe49a398959463 (diff)
parente487b162ba82a1a454657a8ab5dbd6d04a17b591 (diff)
downloadayatana-ido-b1998c6ab583d5129ef0e10eb9b6c99ff0b89631.tar.gz
ayatana-ido-b1998c6ab583d5129ef0e10eb9b6c99ff0b89631.tar.bz2
ayatana-ido-b1998c6ab583d5129ef0e10eb9b6c99ff0b89631.zip
Merge branch 'tari01-pr/no-hardcoded-icon-sizes'
Attributes GH PR #66: https://github.com/AyatanaIndicators/ayatana-ido/pull/66
Diffstat (limited to 'src/idoplaybackmenuitem.c')
-rw-r--r--src/idoplaybackmenuitem.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/idoplaybackmenuitem.c b/src/idoplaybackmenuitem.c
index 7f19718..fc42b6d 100644
--- a/src/idoplaybackmenuitem.c
+++ b/src/idoplaybackmenuitem.c
@@ -1,5 +1,6 @@
/*
* Copyright 2013 Canonical Ltd.
+ * Copyright 2023 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -18,6 +19,7 @@
* Mirco Müller <mirco.mueller@canonical.com>
* Andrea Cimitan <andrea.cimitan@canonical.com>
* Lars Uebernickel <lars.uebernickel@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include "idoplaybackmenuitem.h"
@@ -290,14 +292,8 @@ ido_playback_menu_item_button_release_event (GtkWidget *menuitem,
GdkEventButton *event)
{
IdoPlaybackMenuItem *item = IDO_PLAYBACK_MENU_ITEM (menuitem);
- Button button;
- const gchar *action = action;
- button = ido_playback_menu_item_get_button_at_pos (menuitem, event->x, event->y);
- if (button != item->cur_pushed_button)
- button = BUTTON_NONE;
-
- action = item->button_actions[item->cur_pushed_button];
+ const gchar *action = item->button_actions[item->cur_pushed_button];
if (item->action_group && action)
g_action_group_activate_action (item->action_group, action, NULL);