Commit Graph

26697 Commits

Author SHA1 Message Date
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
Federico Mena Quintero
ecdc08e2ec Start in recently-used mode when no folder is set
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>
2011-06-28 17:17:22 -05:00
Stéphane Maniaci
7d8e458677 Make GtkFileChoser remember the last directory opened
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
2011-06-28 16:49:49 -05:00
Federico Mena Quintero
8db961e19d Put the pathbar in the 'Save in folder:' row in Save mode
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>
2011-06-28 16:43:06 -05:00
Federico Mena Quintero
888a362071 Get rid of the save_folder_combo
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>
2011-06-28 13:33:32 -05:00
Federico Mena Quintero
47f7581129 Remove the expander in Save mode, and the configuration key
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>
2011-06-27 17:51:57 -05:00
Federico Mena Quintero
c2fc707b6a Utility function to extract folders from the recently-used list
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>
2011-06-27 15:30:59 -05:00
Chun-wei Fan
c677c819c4 Update VS project files
-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.
2011-06-24 13:16:40 +08:00
Chun-wei Fan
a956bd6d90 Temporarily remove build/win32/vs10/gtk+.sln
This file needs to have DOS/Windows-style EOL...
2011-06-24 13:13:01 +08:00
Chun-wei Fan
735a40eea7 Update VS property sheets
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.
2011-06-20 17:07:17 +08:00
Chun-wei Fan
14dad8ca4c Refine Visual C++ 2010 projects
-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.
2011-06-20 12:15:44 +08:00
Chun-wei Fan
603e5f0c4a Update Visual C++ projects
Use G_ENABLE_DEBUG for all debug builds
2011-06-16 15:31:22 +08:00
Benjamin Otte
2c7846f63d toolbar: Handle the fact that size_allocate() != get_allocation()
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().
2011-06-15 20:16:06 +02:00
Benjamin Otte
65b4ab49de docs: Add Since tag to GtkWidget::draw 2011-06-13 18:32:09 +02:00
Michal Suchanek
982fc84a41 bgo#652045 - Initialize local_only in GtkFileChooserEntry
This has to be done also when we switch to the entry, otherwise completion for
non-local URIs won't work.
2011-06-08 16:25:26 -05:00
Chun-wei Fan
a074955878 Update Windows Resource template information 2011-06-07 11:13:31 +08:00
Matthias Clasen
bcdbe6593a Bump version 2011-06-06 16:47:21 -04:00
Matthias Clasen
f9c127ea13 Updates 3.0.11 2011-06-06 16:13:12 -04:00
Matthias Clasen
f1453862f1 Hacky support for combo boxes
This extends the current hacks in gailmenuitem to not only
recognize menuitems with labels in them, but also menuitems
which contain a GtkCellView, since those are used by GtkComboBox
nowadays.

Some of the AtkText apis are not fully supported.

https://bugzilla.gnome.org/show_bug.cgi?id=650302
2011-06-06 14:51:14 -04:00
Matthias Clasen
6f1fecf444 gail: Add back get_name for menu items
This was lost when GailItem was nuked. Not having it is leading
to problems, even though randomly poking strings out of your children
seems to be a less than perfect approach to naming...
2011-06-06 14:50:33 -04:00
Matthias Clasen
5c8a647a00 gtk-demo: Add an app chooser button demo
Add a 'Mail' app chooser to the 'Pickers' example.
2011-06-06 14:50:19 -04:00
Matthias Clasen
0c2ee42640 GtkCustomUnixPaperDialog: use an inline toolbar
This makes the dialog more similar to similar patterns,
e.g. in the file chooser.
2011-06-06 14:50:10 -04:00
Vincent Untz
2c79e57333 gtksearchenginetracker: Use non-case sensitive search for non-fts search
https://bugzilla.gnome.org/show_bug.cgi?id=642773
2011-06-06 16:24:13 +01:00
Matej Urbančič
eadc05b2ce Updated Slovenian translation 2011-06-03 22:18:25 +02:00
Juan Pablo Ugarte
8f4352ca53 Fixed bug #576492 "GtkBuilder does not respect G_PARAM_CONSTRUCT properties"
Added G_PARAM_CONSTRUCT flag in gtk_builder_get_parameters() checks as suggested by Johan Dahlin.
2011-06-03 15:16:22 -03:00
Carles Ferrando
c6d4284120 [l10n]Updated Catalan (Valencian) translation 2011-05-29 14:12:45 +02:00
Carles Ferrando
f77884d092 [l10n]Updated Catalan (Valencian) translation 2011-05-29 14:09:13 +02:00
Carles Ferrando
43956f4eab [l10n]Updated Catalan (Valencian) translation 2011-05-29 14:08:53 +02:00
Matej Urbančič
b7e777e7fa Updated Slovenian translation 2011-05-27 23:00:28 +02:00
Kjell Ahlstedt
219e82c9e7 bgo#642929 - Don't infinite-loop in GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
If the user pressed Enter to confirm the file chooser while the filename entry
was empty, then gtk_file_chooser_default_should_respond() would go back and forth
between the cases for handling the filename entry and the file list.
2011-05-23 15:02:25 -05:00
Benjamin Otte
847df205ed window: Only draw resize grip if its window exists
Don't rely on priv->resize_grip_visible as the code comment in the
variable declaration indicates.
This fixes warnings with GtkPlug, which can cause resize_grip_visible to
be TRUE but grid_window to be NULL - running tests/teststatusicon
reproduces this.

This broke with 0cf31b35eb
2011-05-23 16:08:37 +02:00
Matthias Clasen
750aca05ff bump version 2011-05-22 23:11:57 -04:00
Matthias Clasen
2c4b3ce8d6 Updates 3.0.10 2011-05-22 22:31:11 -04:00
Chun-wei Fan
de8a45d7f0 Update Visual C++ README.txt
-Make the preparation instructions a bit more clear
-Tell people about the now-optional dependency on fontconfig on Visual C++
 builds
2011-05-18 12:34:07 +08:00
Carlos Garnacho
636cdd2b02 button: Fix typo in keyboard grab's evmask
https://bugzilla.gnome.org/show_bug.cgi?id=650382, spotted
by Alexander Larsson.
2011-05-17 13:25:47 +02:00
Friedel Wolff
ab0875c020 Fix two small translation bugs 2011-05-10 12:46:19 +02:00
John Stowers
b846363e24 Add missing gtk_widget_override_* annotations
https://bugzilla.gnome.org/show_bug.cgi?id=649779
2011-05-09 22:47:03 +12:00
Benjamin Otte
9917861cb1 label: Compute label offset properly for wrapped justified labels
label offsets were computed wrong for wrapped or ellipsized labels that
were right- or center-justified and had excess space available.
2011-05-05 18:00:58 +02:00
Martin Pitt
49a764f933 GdkWindow: Add missing (allow-none) annotations 2011-05-03 09:32:11 +02:00
Benjamin Otte
d11c6e1beb cellarea: Fix warning messages to display the right type
The warning displayed the type of the area instead of the cell
renderer's type before.
2011-05-02 20:10:48 +02:00
Abduxukur Abdurixit
e3717bc749 Added UG translation 2011-05-02 08:38:25 +02:00
Benjamin Otte
c900fd1cd3 settings: Recompute styles when font name changes 2011-05-01 04:20:12 +02:00
Simos Xenitellis
82d517e829 l10n: Updated Greek translation for gtk+ 2011-04-27 23:22:19 +03:00
Giorgos Stephanakis
7835746ac3 l10n: Updated Greek translation for gtk+ 2011-04-27 23:20:51 +03:00
Chun-wei Fan
57a71d179b VS 2010 support updates
Sorry, accidently left ATK-2.0 stuff in this, should have been
ATK-1.0.  doh.

Only use ATK-2.x in the coming GTK+-3.2

Also mend for GDK-Pixbuf 2.0 include path in property file.
2011-04-27 01:00:07 +08:00
Chun-wei Fan
334ff9781e Bug 643270: VS 2010 support (autotools part)
-Added distribution for the VS 2010 project files
-Added rules in the GDK/GTK+ Makefile.am to fill in the template
 project/filter files during "make dist" to ensure the source file
 listing is up-to-date to simplify maintenance.

This was checked with "make dist" on Ubuntu.

Any comments on the use of the VS 2010 Projects are welcome.
2011-04-27 00:17:13 +08:00
Chun-wei Fan
7f6cc796cb Bug 643270: VS 2010 Project Files
These are the VS2010 project files to compile GDK and GTK+
with the Win32 backend, with a README.txt file to briefly
explain the steps to build this.

The main GDK and GTK+ project/filter files are templates
that are expanded during "make dist" so that the source
file listings in them will be up-to-date as far as
possible, simplifying maintenance.

Any comments and suggestions are welcome.
2011-04-27 00:14:01 +08:00
Chun-wei Fan
71f38cb958 VS 2008 support: Update README.txt again
Make the requirements for GDK-Pixbuf a bit more clear...
2011-04-27 00:06:12 +08:00
Benjamin Otte
f85feed113 widget: Add hack to make label mnemonics work again
Mnemonics for characters that go beyond the baseline (q, y, g) were not
being shown, because they are drawn outside of the label's allocated
size.
This patch just disables the clip-to-size for labels, so that the label
can draw outsize of its allocation. In most cases, that works around
this bug.

https://bugzilla.gnome.org/show_bug.cgi?id=648570
2011-04-26 14:11:04 +02:00
Chun-wei Fan
373b8de3ac VS2008 support: Process filechooser gsettings xml
This will copy the xml file and compile it so that the GTK+3 filechooser
can be used on Windows, especially the MSVC-compiled versions.
2011-04-25 15:12:10 +08:00