Skip to content

Commit

Permalink
Fix build warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Mar 14, 2023
1 parent c684ee7 commit e8d1fbc
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions plugin/status-icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ typedef struct {
static void
sortable_name_changed (gpointer data)
{
StatusIcon *icon = STATUS_ICON (icon);
StatusIcon *icon = STATUS_ICON (data);

g_signal_emit (icon, signals[RE_SORT], 0);
}
Expand Down Expand Up @@ -391,16 +391,21 @@ on_scroll_event (GtkWidget *widget,
case GDK_SCROLL_RIGHT:
delta = 1;
break;
default:
break;
}
}

xapp_status_icon_interface_call_scroll (icon->proxy,
delta,
x_dir,
event->button.time,
NULL,
NULL,
NULL);
if (delta != 0)
{
xapp_status_icon_interface_call_scroll (icon->proxy,
delta,
x_dir,
event->button.time,
NULL,
NULL,
NULL);
}

return GDK_EVENT_PROPAGATE;
}
Expand Down

0 comments on commit e8d1fbc

Please sign in to comment.