diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2009-02-28 05:38:25 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2009-02-28 05:38:25 +0000 |
commit | 544899759b777311d375a6aaca28fb1528380dd5 (patch) | |
tree | 2274bd51501931644ebbc3f1279789f9486197cf /tests/testfilechooserbutton.c | |
parent | fd20c54e357380b9ce5ced3ea943f4fd80a1f455 (diff) | |
download | gtk+-544899759b777311d375a6aaca28fb1528380dd5.tar.gz |
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
Diffstat (limited to 'tests/testfilechooserbutton.c')
-rw-r--r-- | tests/testfilechooserbutton.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c index 0b9a6549ac..fccf0ce050 100644 --- a/tests/testfilechooserbutton.c +++ b/tests/testfilechooserbutton.c @@ -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); |