summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 592606 - Activate the default button in a respose-request callbackBenjamin Otte2009-08-271-1/+8
| | | | | | | | | | Previously the rightmost button with a proper response id was activated, this is now only done if there is no default button set. With this patch the right widget gets activated when there are multiple widgets wth response ids conforming to is_stock_accept_response_id() as the selected widget is made the new default widget before showing the overwrite confirmation dialog.
* remove unused variablesBenjamin Otte2009-06-271-1/+0
|
* Don't clamp the restored size of the file chooser dialogFederico Mena Quintero2009-01-141-33/+32
| | | | | | | | | | | | | | * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_size_changed): Simply resize the dialog to the default size without any fancy clamping. Also, leave in place ifdef-ed out code to restore the file chooser's position in addition to its size. The code to restore the position doesn't quite work yet, but we'll leave it in as a reference. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=22118
* [PATCH 2/7] bgo543308 - Remove obsolete sizing code in GtkFileChooserDialogFederico Mena Quintero2008-08-201-51/+0
| | | | | | Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=21163
* [PATCH 1/7] bgo543308 - Let the file chooser widget be in charge of its ↵Federico Mena Quintero2008-08-201-1/+0
| | | | | | | | default size; don't force it from the dialog Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=21162
* Deprecate gtk_file_chooser_*_new_with_backend(), since GIO is already usedCarlos Garnacho2008-08-041-1/+1
| | | | | | | | | | | | | | 2008-08-04 Carlos Garnacho <carlos@imendio.com> * gtk/gtk.symbols: * gtk/gtkfilechooserbutton.[ch]: * gtk/gtkfilechooserdefault.[ch]: * gtk/gtkfilechooserdialog.[ch]: * gtk/gtkfilechooserwidget.[ch]: Deprecate gtk_file_chooser_*_new_with_backend(), since GIO is already used directly. Fixes #545976. svn path=/trunk/; revision=20972
* 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
* bgo322298 - Make the file chooser dialog always resizableFederico Mena Quintero2008-05-191-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2008-05-19 Federico Mena Quintero <federico@novell.com> http://bugzilla.gnome.org/show_bug.cgi?id=322298 - Save dialog can't be resized until you expand the "Browse for other folders" section. * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface): Removed the "get_resizable" method. (_gtk_file_chooser_embed_get_resizable): Removed. * gtk/gtkfilechooserembed.c: Removed the _get_resizable() machinery. * gtk/gtkfilechooserdefault.c: Likewise. * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_size_changed): Act as if the dialog were always resizable. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=20113
* bgo505857 - GtkFileChooserDialog ensures its default responseFederico Mena Quintero2008-03-071-14/+36
| | | | | | Signed-off-by: Federico Mena Quintero <federico@gnu.org> svn path=/trunk/; revision=19727
* change fix for #347883 to not obfuscate the code.Michael Natterer2007-06-011-8/+5
| | | | | | | | | | 2007-06-01 Michael Natterer <mitch@imendio.com> * gtk/gtkfilechooserdialog.c (response_cb): change fix for #347883 to not obfuscate the code. svn path=/trunk/; revision=18001
* Reset the internal response_requested flag, once the response triggered by ↵Mathias Hasselmann2007-05-311-8/+11
| | | | | | file_chooser_widget_response_requested has been processed (#347883) svn path=/trunk/; revision=17994
* Refactor GtkFileChooserDialog sizing.Carlos Garnacho2007-05-181-129/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-18 Carlos Garnacho <carlos@imendio.com> Refactor GtkFileChooserDialog sizing. * gtkfilechooserembed.[ch] (delegate_get_resizable_hints) (_gtk_file_chooser_embed_get_resizable_hints): s/resizable_hints/resizable/, return just one boolean value to determine whether the filechooser should be resizable or not. * gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove variables related to the GtkFileChooserEmbed get_default_size() and get_resizable() implementations. (struct GtkFileChooserDefault): Move default size management here. * gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate): Added, store currently allocated size to calculate default size later. (gtk_file_chooser_default_get_resizable_hints): s/resizable_hints/resizable/. (gtk_file_chooser_default_set_property): Reload settings if the file chooser action changes, this way the save expander state will be known before mapping the window, avoiding wrong window positioning and flickering. (#424299, #424309) (find_good_size_from_style): Only get size from style if it wasn't set previously. (gtk_file_chooser_default_get_default_size): return default size based on stored default size and preview/extra widget sizes. * gtkfilechooserdialog.c (file_chooser_widget_update_hints) (file_chooser_widget_realized_size_changed) (file_chooser_widget_unrealized_size_changed): simplified to (file_chooser_widget_size_changed): set window size and resizability based on the GtkFileChooserEmbed interface implementation. (Bug #420285, Tomeu Vizoso) (gtk_file_chooser_dialog_map): force a dialog size change, so it's clamped for sure to the 75% of the screen size. svn path=/trunk/; revision=17859
* Apply a patch by Carlos Garnacho to fix several problems with filechooserMatthias Clasen2007-02-261-5/+7
| | | | | | | | | | | | | | | | | | | 2007-02-26 Matthias Clasen <mclasen@redhat.com> Apply a patch by Carlos Garnacho to fix several problems with filechooser size handling (#325477, #151169, 143213, #153785) * gtk/gtkfilechooserdefault.c: Increase NUM_LINES slightly. (browse_widgets_create): Don't force the paned position to 200. (find_good_size_from_style): Take the size of the extra widget into account. * gtk/gtkfilechooserdialog.c (file_chooser_widget_update_hints): Accept a minimal width parameter. Update all callers. svn path=/trunk/; revision=17357
* Set the HIG spacings directly instead of using style-set handlers. Fix theChristian Persch2006-12-251-27/+7
| | | | | | | | | | | | | | | | | | | | | 2006-12-25 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init), (gtk_about_dialog_init), (display_credits_dialog), (display_license_dialog): * gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init), (gtk_file_chooser_dialog_init), (gtk_file_chooser_dialog_constructor), (gtk_file_chooser_dialog_unmap): * gtk/gtkrecentchooserdefault.c: (_gtk_recent_chooser_default_init): * gtk/gtkrecentchooserdialog.c: (gtk_recent_chooser_dialog_class_init), (gtk_recent_chooser_dialog_init), (gtk_recent_chooser_dialog_constructor), (gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly instead of using style-set handlers. Fix the filechooser's spacing between content and action area to 12px. Bug #372447.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-50/+11
|
* Merge of the GTK+ asynchronous file chooser branch. Please see theAFTER_KRIS_ASYNC_BRANCH_MERGEKristian Rietveld2006-05-011-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Call ::initial_focus() on the child before calling ::map() on our parentFederico Mena Quintero2006-02-161-2/+2
| | | | | | | | | | 2006-02-16 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call ::initial_focus() on the child before calling ::map() on our parent class. This will prevent the shortcuts treeview from highlighting its first row as a result of getting assigned focus by gtk_dialog_map().
* Start a set of automated tests for the file chooser. The only test inFederico Mena Quintero2005-09-151-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-09-15 Federico Mena Quintero <federico@ximian.com> * tests/autotestfilechooser.c: Start a set of automated tests for the file chooser. The only test in there right now doesn't pass yet. It specifies the intended behavior of the first optimization of a series which I'll do on the file chooser (see http://primates.ximian.com/~federico/news-2005-09.html#14 for the details of this optimization). * tests/Makefile.am: Added autotestfilechooser.c. * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDialogPrivate): Move all the file chooser's private structures to here, so that they can be accessed by tests/autotestfilechooser.c: _GtkFileChooserDialogPrivate, _GtkFileChooserWidgetPrivate, LoadState, _GtkFileChooserDefault. * gtk/gtkfilechooserdialog.c: See above. * gtk/gtkfilechooserwidget.c: See above. * gtk/gtkfilechooserdefault.c: See above.
* Intern some more strings.Matthias Clasen2005-09-011-1/+2
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* *** empty log message ***Matthias Clasen2005-05-031-1/+1
|
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Fix argument order in docs.Matthias Clasen2005-01-171-1/+1
| | | | | | | 2005-01-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new_with_backend): Fix argument order in docs.
* Merged from gtk-2-4:Federico Mena Quintero2004-12-151-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-14 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-4: Fix #145470: * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_initial_focus): Queue a pending operation to select the first row if we are not finished loading yet. (gtk_file_chooser_default_class_init): Override GtkWidget::map(). (gtk_file_chooser_default_map): New ::map() handler; refresh the file and bookmark lists. * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_class_init): Override GtkWidget::map() and GtkWidget::unmap(). (gtk_file_chooser_dialog_constructor): Don't call initial_focus() here. (gtk_file_chooser_dialog_map): Map the file chooser widget if needed. Call initial_focus() here. (gtk_file_chooser_dialog_unmap): Unmap the file chooser widget. When we are re-mapped, the widget will get mapped as well and it will have a chance to refresh.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Clamp the new size to the screen. Part of bug 129020.Soeren Sandmann2004-03-121-4/+29
| | | | | | | | Fri Mar 12 23:37:15 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_realized_size_changed): Clamp the new size to the screen. Part of bug 129020.
* Don't ignore the return value of gtk_widget_activate().Federico Mena Quintero2004-03-121-9/+34
| | | | | | | | | | | | | | | | | | | | | | 2004-03-12 Federico Mena Quintero <federico@ximian.com> * gtk/gtkwindow.c (gtk_window_activate_focus): Don't ignore the return value of gtk_widget_activate(). (gtk_window_activate_default): Likewise. Fixes #137008. * gtk/gtkfilechooserdialog.c (response_cb): Act on positive response IDs we recognize, rather than bailing out on cancellation ones. Fixes #136237; patch by Olivier Andrieu <oliv__a@users.sourceforge.net>. (file_chooser_widget_file_activated): If the dialog doesn't have a default widget, try to find a suitable response widget on our own. People should *really* be using gtk_dialog_set_default_response(), but this is to help lazy programmers. * gtk/gtkdialog.c (_gtk_dialog_get_response_for_widget): New internal function. (get_response_data): Add a "create" argument so that we don't unconditionally create the response data.
* revert earlier change to insert_path so that we test that the directoryJonathan Blandford2004-03-111-2/+3
| | | | | | | | | | | Thu Mar 11 16:18:51 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkfilechooserdefault.c (shortcuts_insert_path): revert earlier change to insert_path so that we test that the directory exists. * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_constructor): move focus.
* Fixes #136105.Federico Mena Quintero2004-03-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | 2004-03-08 Federico Mena Quintero <federico@ximian.com> Fixes #136105. * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface): Added an ::initial_focus() method. * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_delegate_iface_init): Set the initial_focus method. (delegate_initial_focus): Implement. (_gtk_file_chooser_embed_initial_focus): New function. * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_constructor): Call _gtk_file_chooser_embed_initial_focus(). * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Install the ::initial_focus() handler. (gtk_file_chooser_default_initial_focus): Implement.
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* New handler. Ask the GtkFileChooser widget if it wants to do somethingFederico Mena Quintero2004-03-051-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-04 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdialog.c (response_cb): New handler. Ask the GtkFileChooser widget if it wants to do something special rather than letting us terminate the dialog. (gtk_file_chooser_dialog_init): Connect to "response"; see the comment in the sources to see why we don't override the method in class_init. * gtk/gtkfilechooserembed.h (struct _GtkFileChooserEmbedIface): Added a ::should_respond() method. * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_delegate_iface_init): Add a delegate for ::should_respond(). (delegate_should_respond): New delegate. (_gtk_file_chooser_embed_should_respond): New function. * gtk/gtkfilechooserdefault.c (set_list_model, create_file_list): Use dashes in signal names rather than underscores. (gtk_file_chooser_default_init): Hook up our ::should_respond() implementation. (gtk_file_chooser_default_should_respond): Implement. go into a folder rather than responding if we are in File mode and the selected file is a folder. (get_selection): New helper function. (add_bookmark_button_clicked_cb): Use get_selection(). (bookmarks_check_add_sensitivity): Likewise. (gtk_file_chooser_default_get_paths): Likewise. (check_save_entry): New helper function. (gtk_file_chooser_default_get_paths): Use check_save_entry(). (selection_check): Renamed from selection_is_folders(). Now checks whether the selection is empty, all files, all folders. (bookmarks_check_add_sensitivity): Use selection_check().
* Split function into realized and unrealized variants, and consolidate theJonathan Blandford2004-03-031-47/+106
| | | | | | | | | | | | | | | Tue Mar 2 23:39:55 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_realized_size_changed): Split function into realized and unrealized variants, and consolidate the handling fo size-changing and default changing. * gtk/gtkfilechooserembed.[ch] (gtk_file_chooser_embed_class_init): remove resizable-hints-changed, as it just complicated things. * gtk/gtkfilechooserdefault.c (update_appearance): Don't emit resizable-hints-changed.
* get the logic correct. This will fix sizing on save dialogs.Jonathan Blandford2004-03-021-0/+1
| | | | | | | | | | Tue Mar 2 15:03:15 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_get_resizable_hints): get the logic correct. This will fix sizing on save dialogs. (save_widgets_create): set_mnemonic_widget.
* only store the size if we can resize in that direction.Jonathan Blandford2004-03-011-2/+11
| | | | | | | | Mon Mar 1 16:51:21 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_size_changed): only store the size if we can resize in that direction.
* Handle shrinking/growing.Jonathan Blandford2004-03-011-0/+28
| | | | | | | | Mon Mar 1 12:05:54 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkfilechooserdialog.c (file_chooser_widget_resizable_hints_changed): Handle shrinking/growing.
* Add g_return_if_fail() (_gtk_file_chooser_embed_get_resizable_hints): AddJonathan Blandford2004-02-291-7/+11
| | | | | | | | | | | | | | | | | | | Sun Feb 29 01:51:27 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserembed.c (_gtk_file_chooser_embed_get_default_size): Add g_return_if_fail() (_gtk_file_chooser_embed_get_resizable_hints): Add g_return_if_fail() * gtk/gtkfilechooserdialog.c (file_chooser_widget_default_size_changed): Get the correct initial size for the dialog. Also, don't bother with gtk_window_set_default_size(). It's not really meaningful. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_get_default_size): Get the correct spacing for the preview_widget (update_preview_widget_visibility): Clear widget field after we destroy it.
* Whoops. Didn't mean to commit the size change.Jonathan Blandford2004-02-271-1/+1
| | | | | | | Fri Feb 27 18:52:19 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set): Whoops. Didn't mean to commit the size change.
* New private interface to help negotiate the default size of the widget.Jonathan Blandford2004-02-271-28/+57
| | | | | | | | | | | | | | Fri Feb 27 18:46:27 2004 Jonathan Blandford <jrb@redhat.com> * gtk/gtkfilechooserembed.h: New private interface to help negotiate the default size of the widget. Still a bit buggy, but better than the old behavior. * gtk/gtkfilechooserdefault.c: Implement the embed interface. * gtk/gtkfilechooserwidget.c: Proxy the embed interface. * gtk/gtkfilechooserdialog.c: Use the embed interface.
* Chain to the parent's ::finalize() handler. Fixes #134885; caught by JanFederico Mena Quintero2004-02-191-0/+2
| | | | | | | | 2004-02-19 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize): Chain to the parent's ::finalize() handler. Fixes #134885; caught by Jan Arne Petersen.
* Remove old file-system property. Add new file-system-backend stringAlexander Larsson2004-02-191-31/+86
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-19 Alexander Larsson <alexl@redhat.com> * gtk/gtkfilechooser.c: (gtk_file_chooser_class_init): * gtk/gtkfilechooserutils.c: * gtk/gtkfilechooserutils.h: * gtk/gtkfilechooserwidget.c: Remove old file-system property. Add new file-system-backend string property * gtk/gtkfilechooserdefault.[ch]: Handle the file-system-backend property * gtk/gtkfilechooserdialog.[ch]: (gtk_file_chooser_dialog_new_with_backend): Remove old file-system property. Add new file-system-backend string property Add new function gtk_file_chooser_dialog_new_with_backend * gtk/gtkfilesystem.c: * gtk/gtkfilesystem.h: Add filesystem module support.
* Use HIG-compliant spacings. This sucks a lot.Federico Mena Quintero2004-02-181-0/+15
| | | | | | | | 2004-02-17 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings. This sucks a lot.
* Fix #129020.Federico Mena Quintero2004-02-141-8/+100
| | | | | | | | | | | | | | | | | 2004-02-13 Federico Mena Quintero <federico@ximian.com> Fix #129020. * gtk/gtkfilechooserdialog.c (set_default_size): New function, sets a reasonable default size for the window. (gtk_file_chooser_dialog_realize): New function, call set_default_size(). (gtk_file_chooser_dialog_style_set): Likewise. (gtk_file_chooser_dialog_screen_changed): Likewise. * tests/testfilechooser.c (main): Don't set a default size for the dialog.
* Fix #129872, based on a patch by Jan Arne Petersen <jpetersen@uni-bonn.de>Federico Mena Quintero2004-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Federico Mena Quintero <federico@ximian.com> Fix #129872, based on a patch by Jan Arne Petersen <jpetersen@uni-bonn.de> * gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks): Implement. (gtk_file_system_unix_add_bookmark): Implement. (gtk_file_system_unix_remove_bookmark): Implement. 2004-01-29 Federico Mena Quintero <federico@ximian.com> Fixes #132693. * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't use filename_from_path(). Also, check that the filename is absolute. (gtk_file_system_unix_get_folder): Likewise. (gtk_file_system_unix_create_folder): Likewise. (gtk_file_system_unix_make_path): Likewise. (gtk_file_system_unix_parse): Likewise. (gtk_file_folder_unix_get_info): Likewise. (filename_from_path): Removed.
* Turn off the dialog's separator (thanks to Iain Holmes).Federico Mena Quintero2003-11-191-0/+2
| | | | | | | 2003-11-19 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_init): Turn off the dialog's separator (thanks to Iain Holmes).
* Mark as 2.4 additions.Matthias Clasen2003-11-081-0/+2
| | | | | | | | | | Sat Nov 8 01:50:17 2003 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c: * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): * gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as 2.4 additions.
* Fixed docs. (gtk_file_chooser_remove_filter): Likewise.Federico Mena Quintero2003-10-231-0/+13
| | | | | | | | | | | | | 2003-10-23 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs. (gtk_file_chooser_remove_filter): Likewise. (gtk_file_chooser_select_all): Added docs. (gtk_file_chooser_unselect_all): Likewise. * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs. * gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.
* gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic frameworkOwen Taylor2003-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Wed Oct 22 23:20:04 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]: gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic framework for the new file selector widget. * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]: Initial implementation of the GtkFileChooser user interface. * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation for Unix files. * configure.in gtk/Makefile.am gtk/xdgmime: Build code for freedesktop.org MIME system on Unix. * tests/testfilechooser.c: Test program for GtkFileChooser * tests/prop-editor.c: Add support for properties on interfaces.