gtk+ r22422 - in trunk: . tests



Author: matthiasc
Date: Sat Feb 28 05:38:25 2009
New Revision: 22422
URL: http://svn.gnome.org/viewvc/gtk+?rev=22422&view=rev

Log:
        * tests/testfilechooserbutton.c: Don't use deprecated API.
        Reported by Tobias Mueller



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

Modified: trunk/tests/testfilechooserbutton.c
==============================================================================
--- trunk/tests/testfilechooserbutton.c	(original)
+++ trunk/tests/testfilechooserbutton.c	Sat Feb 28 05:38:25 2009
@@ -315,9 +315,8 @@
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
 
-  chooser = gtk_file_chooser_button_new_with_backend ("Select A File - testfilechooserbutton",
-						      GTK_FILE_CHOOSER_ACTION_OPEN,
-						      backend);
+  chooser = gtk_file_chooser_button_new ("Select A File - testfilechooserbutton",
+                                         GTK_FILE_CHOOSER_ACTION_OPEN);
   gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_file_chooser_remove_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_label_set_mnemonic_widget (GTK_LABEL (label), chooser);
@@ -345,9 +344,8 @@
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
 
-  chooser = gtk_file_chooser_button_new_with_backend ("Select A Folder - testfilechooserbutton",
-						      GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
-						      backend);
+  chooser = gtk_file_chooser_button_new ("Select A Folder - testfilechooserbutton",
+                                         GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
   gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_file_chooser_remove_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);



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