Commit 9421274c authored by Tristan Matthews's avatar Tristan Matthews

* #25968: gnome: fix system tray behaviour

An incorrect function signature meant that the status icon widget
was being mistaken for the SFLPhoneClient structure.
parent 49bb07f1
......@@ -74,7 +74,7 @@ hide_status_hangup_icon()
}
}
void
static void
status_quit(SFLPhoneClient *client)
{
sflphone_quit(FALSE, client);
......@@ -93,9 +93,9 @@ status_icon_unminimize()
}
void
show_hide(SFLPhoneClient *client)
show_hide(GtkWidget *widget, SFLPhoneClient *client)
{
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(show_menu_item))) {
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
gtk_widget_show(client->win);
gtk_window_move(GTK_WINDOW(client->win),
g_settings_get_int(client->settings, "window-position-x"),
......
......@@ -64,7 +64,7 @@ void status_icon_unminimize();
/**
* Show hangup icon
*/
void show_status_hangup_icon();
void show_status_hangup_icon(SFLPhoneClient *client);
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment