Don't use deprecated API. Reported by Tobias Mueller

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


svn path=/trunk/; revision=22422
This commit is contained in:
Matthias Clasen 2009-02-28 05:38:25 +00:00
parent fd20c54e35
commit 544899759b
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2009-02-28 Matthias Clasen <mclasen@redhat.com>
Bug 573113 Can't build tests due to testfilechooserbutton.c...
* tests/testfilechooserbutton.c: Don't use deprecated API.
Reported by Tobias Mueller
2009-02-28 Matthias Clasen <mclasen@redhat.com>
Bug 573069 Gdk-CRITICAL warnings with Gtk 2.14 when dragging

View File

@ -315,9 +315,8 @@ main (int argc,
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 @@ main (int argc,
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);