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:
@ -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>
|
2009-02-28 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 573069 – Gdk-CRITICAL warnings with Gtk 2.14 when dragging
|
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_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||||
|
|
||||||
chooser = gtk_file_chooser_button_new_with_backend ("Select A File - testfilechooserbutton",
|
chooser = gtk_file_chooser_button_new ("Select A File - testfilechooserbutton",
|
||||||
GTK_FILE_CHOOSER_ACTION_OPEN,
|
GTK_FILE_CHOOSER_ACTION_OPEN);
|
||||||
backend);
|
|
||||||
gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
|
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_remove_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
|
||||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), chooser);
|
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_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||||
|
|
||||||
chooser = gtk_file_chooser_button_new_with_backend ("Select A Folder - testfilechooserbutton",
|
chooser = gtk_file_chooser_button_new ("Select A Folder - testfilechooserbutton",
|
||||||
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
|
GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
|
||||||
backend);
|
|
||||||
gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
|
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_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);
|
gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
|
||||||
|
Reference in New Issue
Block a user