gtk+ r20832 - in trunk: . tests



Author: matthiasc
Date: Tue Jul 15 05:19:23 2008
New Revision: 20832
URL: http://svn.gnome.org/viewvc/gtk+?rev=20832&view=rev

Log:
Add an "Unselect all" button


Modified:
   trunk/ChangeLog
   trunk/tests/testfilechooserbutton.c

Modified: trunk/tests/testfilechooserbutton.c
==============================================================================
--- trunk/tests/testfilechooserbutton.c	(original)
+++ trunk/tests/testfilechooserbutton.c	Tue Jul 15 05:19:23 2008
@@ -143,6 +143,13 @@
 }
 
 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 @@
       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);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]