summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooser.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix malformed doc commentsMatthias Clasen2012-04-121-4/+4
| | | | | Most of these are forgotten :'s and similar details which gtk-doc now warns about.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Trivial doc fixJavier Jardón2012-01-161-1/+1
| | | | Use GLib consistently capitalized in the docs.
* Replace some references to the GtkTable, use GtkGrid insteadJavier Jardón2011-09-291-1/+1
|
* Update the docs with the policies for Save dialogsFederico Mena Quintero2011-07-011-45/+48
| | | | | | | | | Basically, don't ever set the current folder, and only use gtk_file_chooser_set_filename() for 'File/Save As'. This is so that the file chooser will be able to present its recently-used lists as appropriate, giving the user good suggestions by default. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Update keybinding docsMatthias Clasen2011-06-161-18/+18
| | | | These were still explaining gtkrc syntax.
* Added "shift" modifier versions of keybings for GtkFileChooser ↵Tristan Van Berkom2011-02-011-4/+11
| | | | | | "folder-up"/"folder-down" bindings. Also updated documentation, closes bug 322926
* [GI] Fixes of existing incorrect annotationsPavel Holejsovsky2011-01-201-8/+9
|
* [GI] Cosmetic cleanups of annotations and doc commentsPavel Holejsovsky2011-01-181-3/+3
| | | | | | This change does not introduce any functionality change, mostly cosmtic cleanups, like re-linebreak when introduced annotations messed up indentation or whitespace errors fixes.
* [GI] Annotate strings holding file paths as (type filename)Pavel Holejsovsky2011-01-181-19/+22
|
* More documentation fixes2.99.0Matthias Clasen2011-01-061-3/+3
|
* Tons of transfer annotationsMatthias Clasen2010-09-211-21/+21
|
* Drop Win32 DLL ABI compatibility cruftTor Lillqvist2010-08-301-169/+0
| | | | No need for that any longer as we are changing DLL name.
* gtk/gtkfilechooser.c: Use G_DEFINE_INTERFACE macroJavier Jardón2010-08-261-34/+16
|
* Bug 596125 — Property string fixesPhilip Withnall2010-08-101-1/+1
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Fix typo in docs for GtkFileChooserClaudio Saavedra2010-06-141-1/+1
| | | | | Reported by Martin Olsson in https://bugzilla.gnome.org/show_bug.cgi?id=621479
* Fix conflict Git markersBruce Cowan2010-05-251-4/+0
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=619655
* Remove remnants of filechooser backend propertyMatthias Clasen2010-05-101-6/+0
|
* Make 3.0 parallel-installable to 2.xMatthias Clasen2010-05-081-2/+2
| | | | | | | | | | | | | | | In particular, rename - libraries to lib*-3.0.so - pc files to *-3.0.pc - include paths to /usr/include/gtk-3.0/* - module paths to /usr/lib/gtk-3.0/* - rc files names to gtk-3.0/gtkrc - commandline utilities to *-3.0 - adjust documentation Also change the install location for unix-print headers to /usr/include/gtk-3.0/unix-print/gtk.
* Merge branch 'native-layout-incubator'Matthias Clasen2010-04-301-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.in docs/reference/gtk/tmpl/gtkaction.sgml docs/reference/gtk/tmpl/gtkbuilder.sgml gdk/directfb/gdkkeys-directfb.c gdk/gdk.symbols gdk/x11/gdkwindow-x11.c gtk/gtkalignment.c gtk/gtkbox.c gtk/gtkbutton.c gtk/gtkcelleditable.c gtk/gtkfilechooser.c gtk/gtkframe.c gtk/gtkinvisible.c gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtksearchenginetracker.c gtk/gtktextview.c gtk/gtktoolbutton.c gtk/gtktooltip.c gtk/gtkviewport.c gtk/gtkwidget.c gtk/gtkwindow.c po-properties/ca@valencia.po po-properties/es.po po-properties/kn.po po-properties/mr.po po/ca.po po/ca@valencia.po po/el.po po/es.po po/gl.po po/id.po po/kn.po po/lv.po po/mr.po po/th.po
| * Make the docs buildMatthias Clasen2010-04-281-2/+3
| | | | | | | | Grr
| * [annotations] Add allow-noneJohan Dahlin2010-04-031-9/+9
| | | | | | | | | | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
| * Move documentation to inline comments: GtkFileChooserJavier Jardón2010-04-031-15/+579
| | | | | | | | | | | | | | Also, use Gtk-Doc markup to improve documentation cross-references. https://bugzilla.gnome.org/show_bug.cgi?id=597865
| * [introspection] Merge in Gtk-custom.c annotationsColin Walters2010-04-031-12/+12
| | | | | | | | | | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* | [docs] Fix GtkWidget and GtkFileChooser documentationJavier Jardón2010-04-151-0/+1
| | | | | | | | | | gtk-doc version >= 1.14 is more strict, It produces valid xml if the source is valid.
* | [annotations] Add allow-noneJohan Dahlin2010-02-191-9/+9
| | | | | | | | | | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* | Move documentation to inline comments: GtkFileChooserJavier Jardón2009-12-211-15/+579
| | | | | | | | | | | | | | Also, use Gtk-Doc markup to improve documentation cross-references. https://bugzilla.gnome.org/show_bug.cgi?id=597865
* | [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-12/+12
|/ | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Document ownership for return value of gtk_file_chooser_get_file()Benjamin Otte2009-08-271-1/+2
|
* Allow disabling New Folder button in File ChoserPascal Terjan2009-07-301-0/+59
| | | | | | Bug #570516. Add a new property "create-folders" meaning that the "New Folder" button should be displayed in the modes where it used to be.
* bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashingFederico Mena Quintero2009-06-181-2/+9
| | | | | | | | | | | | | | | The virtual method list_shortcut_folders returns a GSList * of GFile *. In turn, gtk_file_chooser_list_shortcut_folders() converts those to strings. However, the delegate in gtkfilechooserutils.c was calling gtk_file_chooser_list_shortcut_folders() every time, so we were trying to convert invalid data. Now we have an internal function that deals with GFile *. That function is called by the delegate, and the conversion is done only once by the API entry points. Signed-off-by: Federico Mena Quintero <federico@novell.com>
* missing Since 2.14, fixes #549236Gian Mario Tagliaretti2008-08-251-0/+2
| | | | svn path=/trunk/; revision=21194
* gtk/gtk.symbols gtk/makegtkalias.pl gtk/gtkaccelmap.c gtk/gtkfilechooser.cTor Lillqvist2008-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | 2008-08-08 Tor Lillqvist <tml@novell.com> * gtk/gtk.symbols * gtk/makegtkalias.pl * gtk/gtkaccelmap.c * gtk/gtkfilechooser.c * gtk/gtkfilesel.c * gtk/gtkiconfactory.c * gtk/gtkicontheme.c * gtk/gtkimage.c * gtk/gtkrc.c * gtk/gtkuimanager.c * gtk/gtkwindow.c: No need for the DLL ABI backward compatibility functions on Win64. svn path=/trunk/; revision=21040
* Make GFile-oriented API public. Fixes #545978.Carlos Garnacho2008-08-041-44/+113
| | | | | | | | | | | | | 2008-08-04 Carlos Garnacho <carlos@imendio.com> * gtk/gtk.symbols: * gtk/gtkfilechooser.[ch]: Make GFile-oriented API public. Fixes #545978. * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkfilechooserutils.c: Update to use public GFile API. svn path=/trunk/; revision=20971
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Return full path here as expected, not just the basename.Carlos Garnacho2008-06-151-1/+1
| | | | | | | | | | | | | | | | | | | 2008-06-15 Carlos Garnacho <carlos@imendio.com> * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Return full path here as expected, not just the basename. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_update_current_folder): Ensure that we keep a reference to file, since it can be destroyed when switching back to browse mode. * gtk/gtkfilesystem.c (get_icon_for_special_directory): Removed, home and desktop directories are dealt by the filechooser as normal files, not volumes, so the icon for these is handled directly by GIO. (_gtk_file_system_volume_render_icon): Update caller. svn path=/trunk/; revision=20393
* gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder_uri) usePaolo Borelli2008-06-101-1/+1
| | | | | | | | | | 2008-06-10 Paolo Borelli <pborelli@katamail.com> * gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder_uri) use g_file_new_for_uri. svn path=/trunk/; revision=20347
* Bug 520874 - Should use gio directly.Carlos Garnacho2008-06-101-259/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-10 Carlos Garnacho <carlos@imendio.com> Bug 520874 - Should use gio directly. * gtk/gtkfilesystem.[ch]: Turn into a private object, which mostly provides helper functions for asynchronous calls, folder abstraction and uniform handling of volumes/drives/mounts. * gtk/gtkfilesystemwin32.[ch]: * gtk/gtkfilesystemunix.[ch]: Removed, these are no longer required. * gtk/gtkfilechooser.c: * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkfilechooserentry.[ch]: * gtk/gtkfilechooserprivate.h: * gtk/gtkfilechooserutils.c: * gtk/gtkfilesystemmodel.[ch]: * gtk/gtkpathbar.[ch]: Use GIO internally. Adapt to GtkFileSystem API. Do not load filesystem implementation modules. * gtk/Makefile.am: * gtk/gtk.symbols: the gtkfilesystem.h private header isn't installed anymore, nor the unix/win32 implementations. * README.in: Add blurb about these changes. svn path=/trunk/; revision=20342
* Check the return value of _gtk_file_chooser_get_file_system () for NULLCody Russell2008-02-111-0/+3
| | | | | | | | | | | | 2008-02-10 Cody Russell <bratsche@gnome.org> * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder_uri): Check the return value of _gtk_file_chooser_get_file_system () for NULL before passing it to gtk_file_system_path_to_uri (). (#515667, Francesco Montorsi) svn path=/trunk/; revision=19508
* Require gtk-doc 1.8Matthias Clasen2007-11-251-24/+24
| | | | | | | | | | | 2007-11-25 Matthias Clasen <mclasen@redhat.com> * configure.in: Require gtk-doc 1.8 * */*.c: Use gtk-doc abbreviations for examples in docs. svn path=/trunk/; revision=19041
* Add a file-set signal to the filechooser button. Bug 353196.Mariano Suárez-Alvarez2006-12-261-1/+1
| | | | | | | 2006-12-26 Mariano Suárez-Alvarez <mariano@gnome.org> * gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the filechooser button. Bug 353196.
* Fix the docs. (#360112)Matthias Clasen2006-10-061-2/+1
| | | | | * gtk/gtkfilechooser.c (gtk_file_chooser_set_select_multiple): Fix the docs. (#360112)
* Fix https://bugzilla.novell.com/show_bug.cgi?id=184875 - make the locationFederico Mena Quintero2006-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-07-18 Federico Mena Quintero <federico@novell.com> Fix https://bugzilla.novell.com/show_bug.cgi?id=184875 - make the location entry in Save mode preserve the stuff from set_filename(); it was overwriting it with $cwd. This is the same fix for http://bugzilla.gnome.org/show_bug.cgi?id=347066 * tests/autotestfilechooser.c: (test_black_box): Added black-box test for set_filename() and set_current_name(). * gtk/gtkfilechooser.c (gtk_file_chooser_get_type): Cast to GClassInitFunc in the call to g_type_register_static_simple(), to avoid a compiler warning. * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): Added a browse_files_last_selected_name field. We'll copy the logic from gtkfilesel.c to see when to clear the location entry. (struct _GtkFileChooserDefault): Removed the processing_pending_selections field. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize): Free impl->browse_files_last_selected_name. (pending_select_paths_process): Don't use impl->processing_pending_selections. (update_chooser_entry): Keep track of the name that was last selected in the file list. We use this to know when to clear the location entry. The logic is similar to that of gtkfilesel.c:gtk_file_selection_file_changed(). This also lets us get rid of the processing_pending_selections flag. (update_chooser_entry): Clear the entry if we didn't have a selection before. (location_switch_to_filename_entry): Do not set $cwd as the contents of the location entry here... (location_popup_handler): ... but do it here instead, only as the result of the user asking to turn on the location entry. (gtk_file_chooser_default_get_paths): If the location entry is empty, do the fallback of seeing if it is sensible to say that $cwd is the selected path. (gtk_file_chooser_default_update_current_folder): Don't set the text of the location entry; this is no longer needed with the fixes above. (shortcuts_activate_iter): Clear the location entry when activating a shortcut if we are not in SAVE mode. This keeps the contents of the location entry consistent even when switching folders via the shortcuts.
* Clarify the use of these functions, to avoid the case where a chooser isFederico Mena Quintero2006-06-191-0/+16
| | | | | | | | | | 2006-06-19 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder) (gtk_file_chooser_get_current_folder_uri): Clarify the use of these functions, to avoid the case where a chooser is in SELECT_FOLDER mode and people mistakenly use _get_current_folder() to get the selection: they should use _get_filename() instead.
* Boilerplate reductionMatthias Clasen2006-05-021-12/+6
|
* Merge of the GTK+ asynchronous file chooser branch. Please see theAFTER_KRIS_ASYNC_BRANCH_MERGEKristian Rietveld2006-05-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-01 Kristian Rietveld <kris@imendio.com> Merge of the GTK+ asynchronous file chooser branch. Please see the kris-asynch-branch for more detailed ChangeLog entries. * configure.in: increase binary version to 2.9.0. * gtk.symbols: * gtkfilechooser.c: * gtkfilechooserbutton.c: * gtkfilechooserdefault.c: * gtkfilechooserdialog.c: * gtkfilechooserembed.c: * gtkfilechooserembed.h: * gtkfilechooserentry.c: * gtkfilechooserentry.h: * gtkfilechooserprivate.h: * gtkfilesystem.c: * gtkfilesystem.h: * gtkfilesystemmodel.c: * gtkfilesystemmodel.h: * gtkfilesystemunix.c: * gtkpathbar.c: * gtkpathbar.h: Merge from kris-async-branch.
* No point in making the error path fast by caching quarks.Matthias Clasen2006-04-041-4/+1
| | | | | | | | | | | 2006-04-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkrecentchooser.c (gtk_recent_chooser_error_quark): * gtk/gtkrecentmanager.c (gtk_recent_manager_error_quark): * gtk/gtkfilechooser.c (gtk_file_chooser_error_quark): * gtk/gtkfilesystem.c (gtk_file_system_error_quark): * gtk/gtkicontheme.c (gtk_icon_theme_error_quark): No point in making the error path fast by caching quarks.