Commit Graph

26752 Commits

Author SHA1 Message Date
Matthias Clasen
d20e61877a Fix distcheck 3.0.12 2011-07-27 22:03:18 -04:00
Federico Mena Quintero
c9449b054d Merge branch 'bgo593793-filechooser-recent-folders' into gtk-3-0 2011-07-27 18:47:35 -05:00
Federico Mena Quintero
ef19f731ea Set the location mode when changing the operation mode
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
d9317d9caf Switch to OPERATION_MODE_BROWSE when switching to volume or file shortcuts
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
6b2cca9168 Remove the unused, initial-text logic from the location entry
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>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
4b49244388 Create the location_entry in a single function
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>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
a4927d05d8 Only unset the entry's contents if the entry exists
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
14b9b2f3e0 Discard the search widgets in a separate function
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
f52cee3bd2 Move the widgets above the hpaned to their own box
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>
2011-07-27 18:46:27 -05:00
Federico Mena Quintero
8e9d5e10d0 Make operation_mode_set() handle SEARCH and RECENT modes as well
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-27 18:46:26 -05:00
Federico Mena Quintero
9b0c174e10 Centralize changing the operation mode in operation_mode_set()
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>
2011-07-27 18:46:26 -05:00
Federico Mena Quintero
6a00a965c5 Remove duplicated code from *_switch_to_browse_mode()
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>
2011-07-27 18:46:26 -05:00
Federico Mena Quintero
3b2185cd8e Rename stop_operation() to operation_mode_stop()
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>
2011-07-27 18:46:26 -05:00
Federico Mena Quintero
09cf0f73ec Save selection to recent-files in the asynchronous Save cases
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>
2011-07-27 18:45:26 -05:00
Federico Mena Quintero
1974406604 Log to recent-files when confirming the file chooser
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>
2011-07-27 18:45:15 -05:00
Matthias Clasen
9e33f88677 Update NEWS for 3.0.12 2011-07-22 00:41:07 -04:00
Ryan Lortie
98513a02a2 GtkThemingEngine: increase the level of the hacks
GtkThemingEngine contains a rather fantastic hack that modifies-in-place
the structure of a GParamSpec.  Recent changes to GLib have caused this
hack to explode in a very bad way.

Modify the hack to check the GLib version and do the correct thing on
either side of the change.
2011-07-21 16:01:09 +02:00
Daniel Nylander
dbefb01d45 Updated Swedish translation 2011-07-18 22:09:21 +02:00
Matej Urbančič
bbb9c4a17a Updated Slovenian translation 2011-07-14 14:37:38 +02:00
Federico Mena Quintero
cb314515a9 Save selection to recent-files in the asynchronous Save cases
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>
2011-07-13 16:38:26 -05:00
Mario Blättermann
e46a7259c5 [l10n] Updated German translation 2011-07-13 20:13:23 +02:00
Piotr Drąg
64f772d9c8 Updated Polish translation 2011-07-13 08:45:20 +02:00
Federico Mena Quintero
2de2a9c3f6 Log to recent-files when confirming the file chooser
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>
2011-07-12 11:35:57 -05:00
Marek Černocký
0f036ff55c Updated Czech translation 2011-07-10 19:00:09 +02:00
Gil Forcada
b5fadbd747 [l10n]Updated Catalan translation 2011-07-10 00:22:50 +02:00
Jorge González
add6bf5819 Updated Spanish translation 2011-07-09 14:21:41 +02:00
Ignacio Casal Quinteiro
feeb0d4819 gtkaccelmap: the data gtk_accel_map_foreach needs to be annotated as allow-none 2011-07-09 13:11:35 +02:00
Piotr Drąg
7387319429 Updated Polish translation 2011-07-09 08:58:17 +02:00
Juan Pablo Ugarte
f6110110e2 Fixed bug #654125 "gdkoffscreenwindow set any impl handlers to null but adhoc gdk_window_set_* do not cope" 2011-07-08 19:28:05 -03:00
Federico Mena Quintero
d4a002ea62 Merge remote branch 'origin/bgo593793-filechooser-recent-folders' into gtk-3-0 2011-07-08 11:48:33 -05:00
Federico Mena Quintero
095eec84c0 Update the docs with the policies for Save dialogs
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>
2011-07-01 18:04:25 -05:00
Federico Mena Quintero
a06f1b3811 No need to highlight the file's basename when setting the base folder
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>
2011-07-01 14:59:06 -05:00
Federico Mena Quintero
f429598b65 Hide the Create Folder button in recent-files mode when the pathbar is on
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>
2011-07-01 14:54:11 -05:00
Federico Mena Quintero
09850ff87e Centralize the setting of the pathbar's widgets
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>
2011-07-01 14:36:52 -05:00
Federico Mena Quintero
345286d4a6 Create the recently-used widgets and infobar from the pathbar widgets as well
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-07-01 12:57:44 -05:00
Federico Mena Quintero
d1b823aa8f Move the pathbar creation to its own function
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>
2011-07-01 12:36:22 -05:00
Federico Mena Quintero
c6df130f6a Warn the user when he still needs to type a filename or choose a folder
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-06-30 16:23:12 -05:00
Federico Mena Quintero
b88acf80bc Return the recent-folder plus filename in Save mode from get_files()
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>
2011-06-30 14:38:27 -05:00
Matthias Clasen
c5d26520d2 GdkKeymap: Prevent an infinite loop in the non-XKB case
Somehow the increment got lost, as comparison with the 2.x code
shows.
2011-06-30 14:47:02 -04:00
Federico Mena Quintero
a7486df39f Allow resolving absolute paths even if there is no base_folder
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.
2011-06-29 18:20:53 -05:00
Federico Mena Quintero
22723af060 Set the filename entry's base folder when a recent-folder is selected
This lets the filename entry do completion relative to the selected recent-folder.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-06-29 17:58:10 -05:00
Federico Mena Quintero
e6ceb42289 Instruct the user to pick a folder when nothing is selected in the recent-folders list
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-06-29 17:04:14 -05:00
Federico Mena Quintero
a3280339bd Put recently-used folders in the recently-used list
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-06-29 14:06:36 -05:00
Wouter Bolsterlee
d184ef548c Updated Dutch translation by Wouter Bolsterlee 2011-06-29 19:32:10 +02:00
Juan Pablo Ugarte
bbef902b61 Make GtkBuilder do not delay construct properties that can be resolved
(so construct is respected when possible) and skip construct only props that
can not.
2011-06-29 11:47:07 -03:00
Chun-wei Fan
c80202dcec Update VS2010 README.txt
This file should also have Windows CRLF line endings
2011-06-29 13:54:15 +08:00
Chun-wei Fan
2b7aea4e13 Re-attempt to correct EOL on VS2010 solution
This time I realized that I needed to set autocrlf=false on my Windows side
... ugh...

This is one of those files that must have CRLF line endings to work
correctly :|
2011-06-29 12:50:57 +08:00
Federico Mena Quintero
b33827ee8a Turn a struct field into a local variable
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-06-28 18:55:37 -05:00
Federico Mena Quintero
6c64af402c Remove unused struct field
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-06-28 18:53:48 -05:00
Federico Mena Quintero
fc562d8052 Actually highlight the 'recently used' and 'search' items in the shortcuts bar
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.
2011-06-28 18:43:18 -05:00