--- a/src/window_network.c Tue Sep 16 10:46:31 2008 +0200
+++ b/src/window_network.c Tue Sep 16 13:35:14 2008 +0200
@@ -41,6 +41,7 @@
*
*/
static void on_realize_event(GtkWidget *widget, gpointer data);
+static void window_network_launch_easynetwork(GtkWidget *widget, gpointer user_data);
@@ -129,6 +130,7 @@ window_network_init(void)
gtk_box_pack_start(GTK_BOX(vbox), network_status_label, TRUE, FALSE, 8);
configure_network_button = gtk_button_new();
+ g_signal_connect(G_OBJECT(configure_network_button), "clicked", G_CALLBACK(window_network_launch_easynetwork), NULL);
image = gtk_image_new_from_icon_name("gtk-refresh", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(configure_network_button), image);
gtk_button_set_label(GTK_BUTTON(configure_network_button), _("Configure network"));
@@ -155,6 +157,15 @@ on_realize_event(GtkWidget *widget, gpoi
}
+static void
+window_network_launch_easynetwork(GtkWidget *widget, gpointer user_data)
+{
+ g_spawn_command_line_async("/usr/sbin/easynetwork", NULL);
+}
+
+
+
+
void
window_network_set_network_status(enum network_status network_status)
{
@@ -191,5 +202,10 @@ window_network_set_network_status(enum n
gtk_image_set_from_pixbuf(GTK_IMAGE(network_status_image), pixbuf);
g_object_unref(pixbuf);
}
-}
-
+
+}
+
+
+
+
+