Commit bae6c557 authored by Matthias Clasen's avatar Matthias Clasen

Add an "Unselect all" button

svn path=/trunk/; revision=20832
parent 69dcbadd
2008-07-15 Matthias Clasen <mclasen@redhat.com>
* tests/testfilechooserbutton.c: Add an "Unselect all" button.
2008-07-15 Matthias Clasen <mclasen@redhat.com>
Bug 507394 – mem leak from gtk_selection_add_targets
......
......@@ -142,6 +142,13 @@ del_pwds_parent_as_shortcut_clicked_cb (GtkWidget *button,
}
}
static void
unselect_all_clicked_cb (GtkWidget *button,
gpointer user_data)
{
gtk_file_chooser_unselect_all (user_data);
}
static void
tests_button_clicked_cb (GtkButton *real_button,
gpointer user_data)
......@@ -183,6 +190,12 @@ tests_button_clicked_cb (GtkButton *real_button,
gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Unselect all");
g_signal_connect (button, "clicked",
G_CALLBACK (unselect_all_clicked_cb), user_data);
gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
gtk_widget_show (button);
g_signal_connect (tests, "delete-event", G_CALLBACK (delete_event_cb), NULL);
g_object_set_data (user_data, "tests-dialog", tests);
}
......
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