Code cleanup

This commit is contained in:
Pierre Pronchery 2014-01-15 21:43:47 -06:00
parent a40ea94a8d
commit 0613ee8a1b

View File

@ -1,5 +1,5 @@
/* $Id$ */ /* $Id$ */
/* Copyright (c) 2013 Pierre Pronchery <khorben@defora.org> */ /* Copyright (c) 2013-2014 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Panel */ /* This file is part of DeforaOS Desktop Panel */
/* This program is free software: you can redistribute it and/or modify /* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -283,13 +283,14 @@ static gboolean _wifibrowser_on_view_button_press(GtkWidget * widget,
static gboolean _wifibrowser_on_view_popup_menu(GtkWidget * widget, static gboolean _wifibrowser_on_view_popup_menu(GtkWidget * widget,
gpointer data) gpointer data)
{ {
WPA * wpa = data;
GdkEventButton event; GdkEventButton event;
memset(&event, 0, sizeof(event)); memset(&event, 0, sizeof(event));
event.type = GDK_BUTTON_PRESS; event.type = GDK_BUTTON_PRESS;
event.button = 0; event.button = 0;
event.time = gtk_get_current_event_time(); event.time = gtk_get_current_event_time();
return _wifibrowser_on_view_button_press(widget, &event, data); return _wifibrowser_on_view_button_press(widget, &event, wpa);
} }