Give connection to clear, fixing crash.
authorRoy Marples <roy@marples.name>
Wed, 19 May 2010 00:54:27 +0000 (00:54 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 May 2010 00:54:27 +0000 (00:54 +0000)
src/dhcpcd-gtk/prefs.c

index efd90c5320a0c8f7c4f48e87b3198bd4666ae5be..ee51f27d069a65227ba2c361a5cc7cde7f1d088c 100644 (file)
@@ -567,7 +567,7 @@ dhcpcd_prefs_show(DHCPCD_CONNECTION *con)
        gtk_widget_set_sensitive(clear, false);
        gtk_box_pack_start(GTK_BOX(hbox), clear, false, false, 0);
        g_signal_connect(G_OBJECT(clear), "clicked",
-           G_CALLBACK(on_clear), NULL);
+           G_CALLBACK(on_clear), con);
        rebind = gtk_button_new_with_mnemonic(_("_Rebind"));
        gtk_widget_set_sensitive(rebind, false);
        w = gtk_image_new_from_stock(GTK_STOCK_EXECUTE,