summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bgo#658600 - Don't try to focus the location entry in Recent-files modebgo593793-filechooser-recent-foldersFederico Mena Quintero2011-09-131-1/+2
| | | | | | We don't ever start up in Search mode, so we don't need an extra check for that mode, yet. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* bgo#657186 - Sort the recent-files list in newest-to-oldest orderFederico Mena Quintero2011-08-261-0/+1
| | | | | | Otherwise it's not very useful... :) Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Load and populate the recent-items in a single passFederico Mena Quintero2011-08-261-23/+9
| | | | | | | There's no real asynchronicity going on, anyway, so let's do both within a single iteration of the idle handler. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Don't sort the recent-items by handFederico Mena Quintero2011-08-251-12/+0
| | | | | | | | The mtime from GtkRecentManager may not the same as the file's actual mtime, so the final result could appear unsorted to the user. Instead, we will let the view do the sorting. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* bgo#655822 - Put back the expand-folders schema in gsettingsFederico Mena Quintero2011-08-021-0/+3
| | | | | | | Apparently schemas are part of the ABI contract; running apps crash if a schema disapppears and they happen to access it. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Set the location mode when changing the operation modeFederico Mena Quintero2011-07-271-0/+1
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Switch to OPERATION_MODE_BROWSE when switching to volume or file shortcutsFederico Mena Quintero2011-07-271-0/+4
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove the unused, initial-text logic from the location entryFederico Mena Quintero2011-07-271-75/+5
| | | | | | | | Years ago, when the location entry only appeared in a popup window, it used to appear populated with the current folder's path. We had some logic to do this, but since now the location entry appears in the main dialog, we can do away with that old code. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Create the location_entry in a single functionFederico Mena Quintero2011-07-271-14/+20
| | | | | | We had duplicated code to create the entry in two cases, for Open and for Save modes. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Only unset the entry's contents if the entry existsFederico Mena Quintero2011-07-271-1/+4
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Discard the search widgets in a separate functionFederico Mena Quintero2011-07-271-3/+13
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Move the widgets above the hpaned to their own boxFederico Mena Quintero2011-07-272-7/+13
| | | | | | | This way we can re-create the contents of that box easily without disrupting the rest of the file chooser. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Make operation_mode_set() handle SEARCH and RECENT modes as wellFederico Mena Quintero2011-07-271-90/+71
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Centralize changing the operation mode in operation_mode_set()Federico Mena Quintero2011-07-271-88/+40
| | | | | | | | | | | This will be the central function to switch operation modes: stop searches or the recent-files process; switch widgets, etc. We factor out the common code from recent_switch_to_browse_mode() and search_switch_to_browse_mode(), and remove those functions. All the code that switched modes by hand now calls the central operation_mode_set(). Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove duplicated code from *_switch_to_browse_mode()Federico Mena Quintero2011-07-271-8/+2
| | | | | | | That code indeed lives in operation_mode_stop(), so use it instead of having inlined duplicates. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Rename stop_operation() to operation_mode_stop()Federico Mena Quintero2011-07-271-28/+31
| | | | | | | We'll now prefix functions to change the impl->operation_mode with 'operation_mode', for clarity. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Save selection to recent-files in the asynchronous Save casesFederico Mena Quintero2011-07-271-7/+19
| | | | | | | | | | | | | Various paths in SAVE or CREATE_FOLDER return from ::should_respond() but leave an asynchronous process running. This process checks some things in the user's selection, for example, 'does the file exist, and if so do we need to bring up an overwrite-confirmation dialog?'. When these async processes complete *and* it is indeed time for the dialog to be terminated (via the response-requested signal), we also need to save the selection to the recently-used list - as ::should_respond() does by itself in the cases when it can request a response immediately. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Log to recent-files when confirming the file chooserFederico Mena Quintero2011-07-271-17/+59
| | | | | | | To make life easier for users, when apps don't properly update the recently-used list after choosing a file, we now do that directly from the file chooser. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Update the docs with the policies for Save dialogsFederico Mena Quintero2011-07-012-50/+109
| | | | | | | | | 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>
* No need to highlight the file's basename when setting the base folderFederico Mena Quintero2011-07-011-1/+0
| | | | | | | | | | | | | | None of the cases where _gtk_file_chooser_entry_set_base_folder() appear to require the entry highlighting the file's basename. Doing the highlighting actually makes things look weird in Save/Recent mode if you 1. type a filename 2. click on a recent-folder, as right after (2) your filename would get its basename highlighted for no apparent reason. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Hide the Create Folder button in recent-files mode when the pathbar is onFederico Mena Quintero2011-07-011-1/+3
| | | | | | | The create-folder machinery doesn't handle that case yet; we may enable it later once we figure out the implications for the GUI. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Centralize the setting of the pathbar's widgetsFederico Mena Quintero2011-07-012-165/+202
| | | | | | | | | | | | | | It used to be that every part of the file chooser's code would show/hide the widgets near the pathbar as needed. Now we have two central functions: path_bar_update() path_bar_set_mode() These take care of all the widget shuffling; setting the visibility of the pathbar, info bar, and Create Folder button as appropriate; setting the contents of the info bar, etc. - based on the current operation_mode and action. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Create the recently-used widgets and infobar from the pathbar widgets as wellFederico Mena Quintero2011-07-011-28/+36
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Move the pathbar creation to its own functionFederico Mena Quintero2011-07-011-27/+24
| | | | | | | | | We will centralize the place where all the pathbar-related widgets are created: the location button, the pathbar itself, the Create Folder button, and in subsequent commits, the info bar as well. We will deal with the pathbar/infobar as a unit, instead of swapping them in and out in an ad-hoc fashion. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Warn the user when he still needs to type a filename or choose a folderFederico Mena Quintero2011-06-302-13/+96
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Return the recent-folder plus filename in Save mode from get_files()Federico Mena Quintero2011-06-301-5/+13
| | | | | | | Since the GtkFileChooserEntry already gets the recent-folder set upon it when a recent-folder is selected, it already can give us the correct fully-formed path. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Allow resolving absolute paths even if there is no base_folderFederico Mena Quintero2011-06-292-3/+15
| | | | | This lets us do proper completion in GtkFileChooserEntry even when no base folder has been set. Completion for relative paths won't work, as usual, as expected.
* Set the filename entry's base folder when a recent-folder is selectedFederico Mena Quintero2011-06-291-2/+18
| | | | | | This lets the filename entry do completion relative to the selected recent-folder. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Instruct the user to pick a folder when nothing is selected in the ↵Federico Mena Quintero2011-06-292-14/+77
| | | | | | recent-folders list Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Put recently-used folders in the recently-used listFederico Mena Quintero2011-06-293-68/+62
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Turn a struct field into a local variableFederico Mena Quintero2011-06-281-6/+3
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove unused struct fieldFederico Mena Quintero2011-06-281-3/+0
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Actually highlight the 'recently used' and 'search' items in the shortcuts barFederico Mena Quintero2011-06-281-0/+22
| | | | | | They weren't being selected in the shortcuts bar when those modes were activated programmatically, instead of through the user selecting them from the user interface.
* Start in recently-used mode when no folder is setFederico Mena Quintero2011-06-282-39/+39
| | | | | | | | | | | | | | | In RELOAD_EMPTY mode, when no folder has been selected by the calling app, we now start showing the recently-used list. The rationale is as follows: - In Open mode, the user is likely to pick a file he has used recently. - In Save mode, the user is likely to want a destination folder which he has used recently. For the Save case, where we want to present the user with recent folders instead of recent files, we will make the recent-list do so in subsequent commits. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Make GtkFileChoser remember the last directory openedStéphane Maniaci2011-06-282-17/+55
| | | | | | | | | | | | | | | | Introduces a 'last-folder-uri' GSettings key, where we remember the last-opened folder from the previous instance of the file chooser. The idea is that this works globally, across all applications, so it will be easy to do things like 1. Save an attachment from a mail (or some other file) 2. Open another program 3. Do File/Open and automatically get sent to the folder where (1) happened. Signed-off-by: Federico Mena Quintero <federico@gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=644426
* Put the pathbar in the 'Save in folder:' row in Save modeFederico Mena Quintero2011-06-282-30/+68
| | | | | | | | Now we reparent the browse_path_bar_hbox to that spot in Save mode, or to be above the file lists in Open mode. The pathbar makes for a very clear indication of the location to save in. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Get rid of the save_folder_comboFederico Mena Quintero2011-06-282-272/+2
| | | | | | | And with this we get rid of the craziness of having a separate filter model for the combobox's model. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Remove the expander in Save mode, and the configuration keyFederico Mena Quintero2011-06-273-96/+24
| | | | | | | This effectively makes the file chooser always be in 'expanded' mode. Later, we'll move the pathbar to the 'Save in folder:' line. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Utility function to extract folders from the recently-used listFederico Mena Quintero2011-06-272-0/+74
| | | | | | | | This extracts the parent folders from the items in the recently-used list. We'll use it in the file chooser to present a list of recently-used folders. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Update VS project filesChun-wei Fan2011-06-247-215/+280
| | | | | | | | | | | | -Fix the VS2010 property sheet as the DefDir "macro" needs to be updated as well when the intermediate directories were seperated by project. -Reinstate build/win32/vs10/gtk+.sln with the correct DOS/Windows EOL so that file can be correctly recognized by Windows, without the "Unrecognized Visual Studio Version" problem. -Update solutions and projects where gtk-demo becomes gtk3-demo, to be consistent across the board.
* Temporarily remove build/win32/vs10/gtk+.slnChun-wei Fan2011-06-241-65/+0
| | | | This file needs to have DOS/Windows-style EOL...
* Update VS property sheetsChun-wei Fan2011-06-202-2/+2
| | | | | | | As Cairo and Cairo-GObject are often built as two seperate DLLs/modules, set the property sheets to link to both libraries, instead of using the previous approach where a monolithic Cairo DLL which contains GObject support is used.
* Refine Visual C++ 2010 projectsChun-wei Fan2011-06-206-7/+1
| | | | | | | -Remove unneeded tags from projects -Seperate intermediate directories for projects to avoid rebuilding/ linking on every rebuild and MSBuild errors (et al.) for not being able to write into build log files as they are in use.
* Update Visual C++ projectsChun-wei Fan2011-06-168-16/+16
| | | | Use G_ENABLE_DEBUG for all debug builds
* toolbar: Handle the fact that size_allocate() != get_allocation()Benjamin Otte2011-06-151-0/+12
| | | | | | | | | size_allocate() allocates the available space for the margin box, get_allocation() returns the actual space of the content box and those can be different. And then animations never stop. If that makes you go "huh?", you might want to read http://www.w3.org/TR/CSS21/box.html and the docs for gtk_widget_compute_align().
* docs: Add Since tag to GtkWidget::drawBenjamin Otte2011-06-131-0/+2
|
* bgo#652045 - Initialize local_only in GtkFileChooserEntryMichal Suchanek2011-06-081-0/+1
| | | | | This has to be done also when we switch to the entry, otherwise completion for non-local URIs won't work.
* Update Windows Resource template informationChun-wei Fan2011-06-072-2/+2
|
* Bump versionMatthias Clasen2011-06-061-2/+2
|
* Updates3.0.11Matthias Clasen2011-06-061-0/+20
|