network: Fix missing GtkWidget cast

This commit is contained in:
Robert Ancell 2019-11-06 10:16:18 +13:00
parent 2007a5b240
commit 8f722a31de
2 changed files with 2 additions and 2 deletions

View file

@ -979,5 +979,5 @@ net_device_mobile_init (NetDeviceMobile *self)
g_signal_connect_swapped (self->options_button, "clicked",
G_CALLBACK (edit_connection), self);
gtk_widget_set_visible (self->options_button, g_find_program_in_path ("nm-connection-editor") != NULL);
gtk_widget_set_visible (GTK_WIDGET (self->options_button), g_find_program_in_path ("nm-connection-editor") != NULL);
}

View file

@ -250,7 +250,7 @@ net_device_simple_init (NetDeviceSimple *self)
g_signal_connect_swapped (priv->options_button, "clicked",
G_CALLBACK (edit_connection), self);
gtk_widget_set_visible (priv->options_button, g_find_program_in_path ("nm-connection-editor") != NULL);
gtk_widget_set_visible (GTK_WIDGET (priv->options_button), g_find_program_in_path ("nm-connection-editor") != NULL);
}
char *