summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
Commit message (Collapse)AuthorAgeFilesLines
* Code cleanupMatthias Clasen2015-07-311-2/+1
| | | | | | Use g_slist_free_full more consistently. This commit just converts the obvious cases where g_slist_forall is directly followed by g_slist_free.
* file chooser dialog: Better spacingMatthias Clasen2015-07-231-1/+3
| | | | | | When the dialog is as narrow as possible, we still want some space between the entry and the search button, so use margins around the entry and label instead of box spacing.
* file chooser dialog: Make button not take focusMatthias Clasen2015-07-041-0/+1
| | | | | Things work smoother, keynav-wise, if the search button does not take focus on click.
* file chooser dialog: Make action changes workMatthias Clasen2015-07-041-74/+82
| | | | | We were not listening for action changes to update the save entry.
* file chooser entry: Capture Escape and emit :hide-entryMatthias Clasen2015-07-041-1/+1
| | | | | | | | | | | Make the file chooser entry optionally capture Escape and emit a signal. Make the file chooser widget hide the entry on that signal and go back to the path bar. This gives us a two-level undo: location entry -> path bar -> dialog close. When the location entry is permanently displayed in the header for save mode, we still let the first Escape close the dialog.
* file chooser dialog: Put save entry into headerMatthias Clasen2015-07-041-0/+52
| | | | | When we have a header bar, put a save entry there and make the file chooser use it.
* file chooser dialog: Show a subtitleMatthias Clasen2015-07-041-0/+3
| | | | | Use the new "subtitle" property of the file chooser widget to display a subtitle in the headerbar, if we have one.
* file chooser dialog: Prevent uneven button heightsMatthias Clasen2015-02-261-0/+14
| | | | | | | | The height of the text buttons depends on the font height, whereas the search button has a fixed-size icon in it... Prevent unevent heights by putting them all in a size group. https://bugzilla.gnome.org/show_bug.cgi?id=745263
* file chooser dialog: Add a search button to the headerMatthias Clasen2015-01-281-1/+41
| | | | | This is where we put similar search buttons in applications and in other dialogs, such as the GtkAppChooserDialog.
* Remove more leftover —esMatthias Clasen2014-09-081-1/+1
| | | | These were leftover at various places in the documentation.
* file-chooser: make accept action sensitive only when has selectionWilliam Jon McCann2014-02-201-6/+36
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=547988
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-1/+1
| | | | Instead of Return value:
* docs: fully break lines in examplesWilliam Jon McCann2014-02-121-17/+35
| | | | | | | | | Try to do a better job of keeping example content from being too wide. It is often rendered as <pre> text so the only time we can wrap it is in the source. It is best to full break lines at all punctuation and to try to keep the width under 70 chars or so.
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: Use markup for linksWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-5/+5
|
* docs: replace all <examples> with markdown headingsWilliam Jon McCann2014-02-041-15/+9
|
* Fix docs buildMatthias Clasen2014-02-031-4/+3
|
* docs: add missing close para tagWilliam Jon McCann2014-02-031-1/+2
| | | | From 30cc1512e
* Docs: Use markdown for listsMatthias Clasen2014-02-021-37/+28
| | | | This greatly reduces the amount of xml in the docs.
* docs: use |[ ]| instead of <programlisting></programlisting>William Jon McCann2014-01-291-6/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119
* docs: don't use <guimenuitem>William Jon McCann2014-01-281-8/+4
| | | | We don't want to assume menu bar structures.
* docs: don't use <emphasis>William Jon McCann2014-01-281-2/+2
| | | | It is a little heavy handed. The text can speak for itself.
* resources: move resources into a subdirectoryWilliam Jon McCann2014-01-231-1/+1
|
* file chooser dialog: Use headerbarWilliam Jon McCann2014-01-171-0/+3
| | | | | | | Make the file chooser dialog use a headerbar when desired. https://bugzilla.gnome.org/show_bug.cgi?id=720059
* file chooser: Clean up direct action area interactionMatthias Clasen2014-01-171-68/+37
|
* Update all internal users of gtk_dialog_get_action_areaMatthias Clasen2014-01-171-0/+6
| | | | | Some of these should be revisited and fixed. For now, just avoid the deprecation warnings.
* Another round of template binding api changesMatthias Clasen2013-07-261-1/+1
| | | | | | | | | | | We rename the gtk_widget_class_bind_template_child{_internal} macros by appending a _private to their name. Otherwise, it would be too magic to pass the 'public' names as arguments, but affect a member of the Private struct. At the same time, Add two new macros with the old names, gtk_widget_class_bind_template_child{_internal} that operate on members of the instance struct.
* Rename the widget template APIEmmanuele Bassi2013-07-261-5/+5
| | | | | | | | | | | | | | | | | | | | The macros and functions are inconsistently named, and are not tied to the "template" concept - to the point that it seems plausible to use them without setting the template. The new naming scheme is as follows: gtk_widget_class_bind_template_child_full gtk_widget_class_bind_template_callback_full With the convenience macros: gtk_widget_class_bind_template_child gtk_widget_class_bind_template_child_internal gtk_widget_class_bind_template_callback https://bugzilla.gnome.org/show_bug.cgi?id=700898 https://bugzilla.gnome.org/show_bug.cgi?id=700896
* widget: Use a real offset in gtk_widget_class_automate_childAlexander Larsson2013-07-261-1/+1
| | | | | | | | | | Using an offset from the struct means you can have children in both the public and private (via G_PRIVATE_OFFSET) parts of the instance. It also matches the new private macros nicer. https://bugzilla.gnome.org/show_bug.cgi?id=702563 Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-14/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Start migrating internals away from GtkStockWilliam Jon McCann2013-06-241-6/+6
|
* Move GtkFileChooserDialogPrivate into gtkfilechooserdialog.cFederico Mena Quintero2013-04-111-0/+8
| | | | | We'll take private structures out of gtkfilechooserprivate.h and move them to the appropriate place.
* GtkFileChooserDialog: Define children with a GtkBuilder templateTristan Van Berkom2013-04-081-80/+25
|
* filechooser: Move saving geometry to where it belongsBenjamin Otte2013-01-261-0/+31
| | | | | Move it from the filechooserwidget to the filechooserdialog unmap function. It was previously only working for filechooserdialogs, too.
* docs: fix a number of typos and obsolete referencesCosimo Cecchi2012-07-021-1/+1
|
* bgo#675421 - Set the wm_role on GtkFileChooserDialogFederico Mena Quintero2012-05-071-0/+2
| | | | | | | The window's role is 'GtkFileChooserDialog', so that window managers can match it for positioning. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Documentation fixesMatthias Clasen2011-09-251-1/+1
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* Try to make the docs build againMatthias Clasen2011-07-221-36/+19
| | | | | | | After some searching, it turns out that gtk-doc now interprets markdown, and can no longer accept '-' in the docs without making a mess. I hope that this does not affect more places in more subtle ways.
* filechooserdialog: Use gtk_widget_class_set_accessible_role()Benjamin Otte2011-07-181-0/+2
|
* Update the docs with the policies for Save dialogsFederico Mena Quintero2011-07-011-4/+54
| | | | | | | | | 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>
* Move documentation to inline comments: GtkFileChooserDialogJavier Jardón2011-04-141-0/+128
|
* bgo#640161 - Maintain map/unmap invariants in GtkFileChooserDialogFederico Mena Quintero2011-01-211-23/+0
| | | | | | | | | | | | We used to explicitly map and unmap the child GtkFileChooserWidget when mapping and unmapping the dialog, respectively. Now that GtkWidget actually unmaps child widgets (instead of avoiding that), we can assume that the child GtkFileChooserWidget will be unmapped when we wanted it to be. This fixes a warning that happened with the new GtkWidget invariant checker, as we were mapping our child widget before calling our parent class' ::map() handler. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Use GSettings for the filechooser settingsChristian Persch2010-10-131-1/+0
| | | | Bug #630850.
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to keep them separate as GtkSizeRequest requires a GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have one without the other. It also makes the code a lot easier because no casts are required when calling functions. Also, the names would translate to gtk_widget_get_width() and people agreed that this would be a too generic name, so a "preferred" was added to the names. So this patch moves the functions: gtk_size_request_get_request_mode() => gtk_widget_get_request_mode() gtk_size_request_get_width() => gtk_widget_get_preferred_width() gtk_size_request_get_height() => gtk_widget_get_preferred_height() gtk_size_request_get_size() => gtk_widget_get_preferred_size() gtk_size_request_get_width_for_height() => gtk_widget_get_preferred_width_for_height() gtk_size_request_get_height_for_width() => gtk_widget_get_preferred_height_for_width() ... and moves the corresponding vfuncs to the GtkWidgetClass. The patch also renames the implementations of the vfuncs in widgets to include the word "preferrred".
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-3/+8
| | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
* Remove separators from dialogsMatthias Clasen2010-09-021-1/+0
| | | | | It seems more reasonable to remove this feature than to keep fighting off every separator that pops up by accident in a dialog.
* Don't activate insensitive widgetsMatthias Clasen2010-08-101-2/+4
| | | | This was reported by Christian Becke in bug 626052.
* Use accessor functions to access GtkDialogJavier Jardón2010-07-131-10/+24
|