Commit 54489975 authored by Matthias Clasen's avatar Matthias Clasen

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
parent fd20c54e
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
......
......@@ -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);
......
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