]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agoSet the location mode when changing the operation mode
Federico Mena Quintero [Wed, 27 Jul 2011 23:41:23 +0000 (18:41 -0500)]
Set the location mode when changing the operation mode

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoSwitch to OPERATION_MODE_BROWSE when switching to volume or file shortcuts
Federico Mena Quintero [Wed, 27 Jul 2011 23:03:22 +0000 (18:03 -0500)]
Switch to OPERATION_MODE_BROWSE when switching to volume or file shortcuts

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoRemove the unused, initial-text logic from the location entry
Federico Mena Quintero [Wed, 27 Jul 2011 22:46:04 +0000 (17:46 -0500)]
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>
12 years agoCreate the location_entry in a single function
Federico Mena Quintero [Wed, 27 Jul 2011 22:44:55 +0000 (17:44 -0500)]
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>
12 years agoOnly unset the entry's contents if the entry exists
Federico Mena Quintero [Wed, 27 Jul 2011 22:30:05 +0000 (17:30 -0500)]
Only unset the entry's contents if the entry exists

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoDiscard the search widgets in a separate function
Federico Mena Quintero [Wed, 27 Jul 2011 21:52:12 +0000 (16:52 -0500)]
Discard the search widgets in a separate function

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoMove the widgets above the hpaned to their own box
Federico Mena Quintero [Wed, 27 Jul 2011 21:47:55 +0000 (16:47 -0500)]
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>
12 years agoMake operation_mode_set() handle SEARCH and RECENT modes as well
Federico Mena Quintero [Tue, 26 Jul 2011 21:43:36 +0000 (16:43 -0500)]
Make operation_mode_set() handle SEARCH and RECENT modes as well

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoCentralize changing the operation mode in operation_mode_set()
Federico Mena Quintero [Tue, 26 Jul 2011 21:17:43 +0000 (16:17 -0500)]
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>
12 years agoRemove duplicated code from *_switch_to_browse_mode()
Federico Mena Quintero [Tue, 26 Jul 2011 21:04:14 +0000 (16:04 -0500)]
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>
12 years agoRename stop_operation() to operation_mode_stop()
Federico Mena Quintero [Tue, 26 Jul 2011 21:00:35 +0000 (16:00 -0500)]
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>
12 years agoSave selection to recent-files in the asynchronous Save cases
Federico Mena Quintero [Wed, 13 Jul 2011 21:04:54 +0000 (16:04 -0500)]
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>
12 years agoLog to recent-files when confirming the file chooser
Federico Mena Quintero [Tue, 12 Jul 2011 16:35:57 +0000 (11:35 -0500)]
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>
12 years agoUpdate the docs with the policies for Save dialogs
Federico Mena Quintero [Fri, 1 Jul 2011 23:04:25 +0000 (18:04 -0500)]
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>
12 years agoNo need to highlight the file's basename when setting the base folder
Federico Mena Quintero [Fri, 1 Jul 2011 19:59:06 +0000 (14:59 -0500)]
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>
12 years agoHide the Create Folder button in recent-files mode when the pathbar is on
Federico Mena Quintero [Fri, 1 Jul 2011 19:54:11 +0000 (14:54 -0500)]
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>
12 years agoCentralize the setting of the pathbar's widgets
Federico Mena Quintero [Fri, 1 Jul 2011 19:36:52 +0000 (14:36 -0500)]
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>
12 years agoCreate the recently-used widgets and infobar from the pathbar widgets as well
Federico Mena Quintero [Fri, 1 Jul 2011 17:57:44 +0000 (12:57 -0500)]
Create the recently-used widgets and infobar from the pathbar widgets as well

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoMove the pathbar creation to its own function
Federico Mena Quintero [Fri, 1 Jul 2011 17:31:08 +0000 (12:31 -0500)]
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>
12 years agoWarn the user when he still needs to type a filename or choose a folder
Federico Mena Quintero [Thu, 30 Jun 2011 21:23:12 +0000 (16:23 -0500)]
Warn the user when he still needs to type a filename or choose a folder

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoReturn the recent-folder plus filename in Save mode from get_files()
Federico Mena Quintero [Thu, 30 Jun 2011 19:38:27 +0000 (14:38 -0500)]
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>
12 years agoAllow resolving absolute paths even if there is no base_folder
Federico Mena Quintero [Wed, 29 Jun 2011 23:20:53 +0000 (18:20 -0500)]
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.

12 years agoSet the filename entry's base folder when a recent-folder is selected
Federico Mena Quintero [Wed, 29 Jun 2011 22:58:10 +0000 (17:58 -0500)]
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>
12 years agoInstruct the user to pick a folder when nothing is selected in the recent-folders...
Federico Mena Quintero [Wed, 29 Jun 2011 21:42:01 +0000 (16:42 -0500)]
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>
12 years agoPut recently-used folders in the recently-used list
Federico Mena Quintero [Wed, 29 Jun 2011 17:22:42 +0000 (12:22 -0500)]
Put recently-used folders in the recently-used list

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoTurn a struct field into a local variable
Federico Mena Quintero [Tue, 28 Jun 2011 23:55:37 +0000 (18:55 -0500)]
Turn a struct field into a local variable

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoRemove unused struct field
Federico Mena Quintero [Tue, 28 Jun 2011 23:53:48 +0000 (18:53 -0500)]
Remove unused struct field

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
12 years agoActually highlight the 'recently used' and 'search' items in the shortcuts bar
Federico Mena Quintero [Tue, 28 Jun 2011 22:24:53 +0000 (17:24 -0500)]
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.

12 years agoStart in recently-used mode when no folder is set
Federico Mena Quintero [Tue, 28 Jun 2011 22:17:22 +0000 (17:17 -0500)]
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>
12 years agoPut the pathbar in the 'Save in folder:' row in Save mode
Federico Mena Quintero [Tue, 28 Jun 2011 20:21:49 +0000 (15:21 -0500)]
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>
12 years agoGet rid of the save_folder_combo
Federico Mena Quintero [Tue, 28 Jun 2011 18:33:32 +0000 (13:33 -0500)]
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>
12 years agoRemove the expander in Save mode, and the configuration key
Federico Mena Quintero [Mon, 27 Jun 2011 22:51:57 +0000 (17:51 -0500)]
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>
12 years agoUtility function to extract folders from the recently-used list
Federico Mena Quintero [Mon, 27 Jun 2011 20:30:59 +0000 (15:30 -0500)]
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>
12 years agotoolbar: don't leak the sibling path
Cosimo Cecchi [Fri, 1 Jul 2011 16:33:26 +0000 (12:33 -0400)]
toolbar: don't leak the sibling path

12 years agotoolbar: don't count invisible widgets when building the sibling path
Cosimo Cecchi [Thu, 30 Jun 2011 21:00:32 +0000 (17:00 -0400)]
toolbar: don't count invisible widgets when building the sibling path

Also, fix RTL nth-child handling for toolbars.

12 years agotoolbar: invalidate order when an item visibility changes
Cosimo Cecchi [Thu, 30 Jun 2011 19:51:10 +0000 (15:51 -0400)]
toolbar: invalidate order when an item visibility changes

12 years agoTest box and toolbar regions in parallel
Matthias Clasen [Sat, 18 Jun 2011 17:14:18 +0000 (13:14 -0400)]
Test box and toolbar regions in parallel

This makes it easy to see discrepancies.
Plus, it is fun

12 years agotoolbar: nth-child support for GtkToolbar
Matthias Clasen [Sat, 18 Jun 2011 16:45:56 +0000 (12:45 -0400)]
toolbar: nth-child support for GtkToolbar

This doesn't quite work right yet.

12 years agobox: follow children visibility when building the sibling path
Cosimo Cecchi [Thu, 30 Jun 2011 20:19:57 +0000 (16:19 -0400)]
box: follow children visibility when building the sibling path

This fixes nth-child not working for widgets which were not
visible before being added to the box, but it's also a better fix
for https://bugzilla.gnome.org/show_bug.cgi?id=652769

12 years agoRevert "gtkbox: Invalidate order on changes, even if the child is not visible"
Cosimo Cecchi [Fri, 1 Jul 2011 15:47:41 +0000 (11:47 -0400)]
Revert "gtkbox: Invalidate order on changes, even if the child is not visible"

This reverts commit 8cb0cc58e321641ebda699b9cbdc0067aeb56d3f.

12 years agoFix up docs for predefined style classes.
Matthias Clasen [Thu, 30 Jun 2011 23:18:26 +0000 (19:18 -0400)]
Fix up docs for predefined style classes.

The table was incomplete and out of date. Instead, just
put a list of links in that place, and move all the extra
documentation to the macros. Bug 653785

12 years agoGdkKeymap: Prevent an infinite loop in the non-XKB case
Matthias Clasen [Thu, 30 Jun 2011 18:45:16 +0000 (14:45 -0400)]
GdkKeymap: Prevent an infinite loop in the non-XKB case

Somehow the increment got lost, as comparison with the 2.x code
shows.

12 years agogtkbox: Invalidate order on changes, even if the child is not visible
Vincent Untz [Tue, 28 Jun 2011 09:47:37 +0000 (11:47 +0200)]
gtkbox: Invalidate order on changes, even if the child is not visible

When we build the sibling path for the order, we do not skip hidden
children (since, quoting the comment, "we cannot reliably detect changes
in widget visibility"). So we need to invalidate the order when hidden
children are reordered and removed.

https://bugzilla.gnome.org/show_bug.cgi?id=652769

12 years ago[gi] add more annotations to force drag and drop api to be methods
John (J5) Palmieri [Wed, 29 Jun 2011 18:53:33 +0000 (14:53 -0400)]
[gi] add more annotations to force drag and drop api to be methods

12 years agoUpdated Dutch translation by Wouter Bolsterlee
Wouter Bolsterlee [Wed, 29 Jun 2011 17:31:53 +0000 (19:31 +0200)]
Updated Dutch translation by Wouter Bolsterlee

12 years ago[gi] make sure gtk_drag_dest_unset is annotated as a method
John (J5) Palmieri [Wed, 29 Jun 2011 16:11:36 +0000 (12:11 -0400)]
[gi] make sure gtk_drag_dest_unset is annotated as a method

12 years agoMake GtkBuilder do not delay construct properties that can be resolved
Juan Pablo Ugarte [Wed, 29 Jun 2011 14:45:33 +0000 (11:45 -0300)]
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.

12 years agogtk/gtkmenuitem: Remove reference to deprecated and removed GtkItem
Javier Jardon [Wed, 29 Jun 2011 14:00:06 +0000 (15:00 +0100)]
gtk/gtkmenuitem: Remove reference to deprecated and removed GtkItem

12 years agoUpdate VS2010 READNE.txt
Chun-wei Fan [Wed, 29 Jun 2011 05:55:46 +0000 (13:55 +0800)]
Update VS2010 READNE.txt

This file should have Windows CRLF EOL as well

12 years agoRe-attempt to correct EOL on VS2010 solution
Chun-wei Fan [Wed, 29 Jun 2011 04:49:14 +0000 (12:49 +0800)]
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 :|

12 years agoUse a PAGE_STEP macro instead of a magic number
Claudio Saavedra [Mon, 27 Jun 2011 16:58:21 +0000 (19:58 +0300)]
Use a PAGE_STEP macro instead of a magic number

Helps to understand the code.

https://bugzilla.gnome.org/show_bug.cgi?id=653512

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Mon, 27 Jun 2011 22:32:26 +0000 (01:32 +0300)]
Updated Belarusian translation.

12 years agoDon't forget to initialize a variable
Matthias Clasen [Mon, 27 Jun 2011 20:46:33 +0000 (16:46 -0400)]
Don't forget to initialize a variable

Pointed out by clang in bug 653333.

12 years ago[gi] correct annotation for GtkMenuPositionFunc callbacks
John (J5) Palmieri [Mon, 27 Jun 2011 17:43:46 +0000 (13:43 -0400)]
[gi] correct annotation for GtkMenuPositionFunc callbacks

12 years agobgo#653191 - fix uninitialized variable in gtk_file_chooser_entry.c
Mike Gorse [Wed, 22 Jun 2011 20:23:15 +0000 (15:23 -0500)]
bgo#653191 - fix uninitialized variable in gtk_file_chooser_entry.c

12 years agoSpeed up page insertion
Paolo Borelli [Sun, 26 Jun 2011 18:41:21 +0000 (20:41 +0200)]
Speed up page insertion

Make sure to call widget_set_child_visible(false) on all tabs except the
current before calling widget_set_parent.

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sat, 25 Jun 2011 18:32:27 +0000 (21:32 +0300)]
Updated Belarusian translation.

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sat, 25 Jun 2011 18:25:44 +0000 (21:25 +0300)]
Updated Belarusian translation.

12 years agoUpdate VS projects distribution
Chun-wei Fan [Fri, 24 Jun 2011 18:06:53 +0000 (02:06 +0800)]
Update VS projects distribution

Change the EXTRA_DIST to distribute the gtk3-demo projects (instead of
gtk-demo)

12 years agoAdd headers required by gtk/gtkwin32embedwidget.c
Chun-wei Fan [Fri, 24 Jun 2011 05:19:58 +0000 (13:19 +0800)]
Add headers required by gtk/gtkwin32embedwidget.c

Some functions from the added headers are needed by this file to compile
without C4013 (a.k.a implicit declaration of ...) warnings/errors

12 years agoUpdate VS project files
Chun-wei Fan [Fri, 24 Jun 2011 04:48:22 +0000 (12:48 +0800)]
Update VS project files

-Reinstate build/win32/vs10/gtk+.sln with the correct EOL (DOS/Windows), so
 that it will be correctly recognized by Windows instead of having the
 annoying "Unrecognized Visual Studio Version".

-Update property sheets to reflect on new headers added

-Change the demo program to be gtk3-demo.exe, to be consistent with the
 names on other platforms, and updated/renamed related project/solution
 files, and added overlay.c to the list of demo sources.

12 years agoTemporarily remove build/win32/vs10/gtk+.sln
Chun-wei Fan [Fri, 24 Jun 2011 04:42:47 +0000 (12:42 +0800)]
Temporarily remove build/win32/vs10/gtk+.sln

The line endings need to be DOS/Windows...

12 years agoGtkPaned docs: Remove sentence saying see GtkPaned.
Murray Cumming [Thu, 23 Jun 2011 22:20:57 +0000 (00:20 +0200)]
GtkPaned docs: Remove sentence saying see GtkPaned.

12 years agoUpdated Persian Translation
Arash Mousavi [Thu, 23 Jun 2011 19:02:24 +0000 (23:32 +0430)]
Updated Persian Translation

12 years agoTrack wayland protocol changes.
Scott Moreau [Thu, 23 Jun 2011 05:10:24 +0000 (23:10 -0600)]
Track wayland protocol changes.

12 years agointrospection.m4: Update from g-i
Colin Walters [Wed, 22 Jun 2011 15:07:37 +0000 (11:07 -0400)]
introspection.m4: Update from g-i

This fixes substitution with dash.

12 years agoUpdated Galician translations
Fran Diéguez [Tue, 21 Jun 2011 11:58:45 +0000 (13:58 +0200)]
Updated Galician translations

12 years agoAvoid GApplication being released twice on gtk_application_remove_window() calls
Claudio Saavedra [Mon, 20 Jun 2011 21:29:45 +0000 (00:29 +0300)]
Avoid GApplication being released twice on gtk_application_remove_window() calls

Removing the window from the window list before setting the
application to %NULL avoids gtk_application_remove_window() triggering
another call to gtk_application_window_removed(), which would release
the application a second time.

https://bugzilla.gnome.org/show_bug.cgi?id=653053

12 years agodocs: remove tmpl directories
Javier Jardón [Mon, 20 Jun 2011 13:24:57 +0000 (14:24 +0100)]
docs: remove tmpl directories

We do not use template files anymore

12 years agoconfigure.ac: Generate xz tarballs with ustar format by default
Javier Jardón [Mon, 20 Jun 2011 10:38:03 +0000 (11:38 +0100)]
configure.ac: Generate xz tarballs with ustar format by default

12 years agoUpdate VS property sheets
Chun-wei Fan [Mon, 20 Jun 2011 09:05:00 +0000 (17:05 +0800)]
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.

12 years agoRefine Visual C++ 2010 projects
Chun-wei Fan [Mon, 20 Jun 2011 04:19:54 +0000 (12:19 +0800)]
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.

12 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sun, 19 Jun 2011 15:32:13 +0000 (17:32 +0200)]
Updated Norwegian bokmål translation.

12 years agoUpdated Spanish translation
Jorge González [Sun, 19 Jun 2011 15:18:01 +0000 (17:18 +0200)]
Updated Spanish translation

12 years agoAdd sibling information to widget path string representations
Matthias Clasen [Sat, 18 Jun 2011 16:36:38 +0000 (12:36 -0400)]
Add sibling information to widget path string representations

12 years agoFix css syntax in example
Matthias Clasen [Sat, 18 Jun 2011 15:11:47 +0000 (11:11 -0400)]
Fix css syntax in example

12 years agoRemove an unused variable
Matthias Clasen [Sat, 18 Jun 2011 02:57:35 +0000 (22:57 -0400)]
Remove an unused variable

12 years agoRemove nonexisting properties
Matthias Clasen [Sat, 18 Jun 2011 00:35:41 +0000 (20:35 -0400)]
Remove nonexisting properties

glade insists on adding GtkGrid:n-rows and :n-columns, for
no good reason...

12 years agotests: import the widget-factory test for theming
Cosimo Cecchi [Fri, 17 Jun 2011 15:33:18 +0000 (11:33 -0400)]
tests: import the widget-factory test for theming

Courtesy of Andrea Cimitan <andrea.cimitan@canonical.com>.

12 years agoUpdate keybinding docs
Matthias Clasen [Fri, 17 Jun 2011 03:51:06 +0000 (23:51 -0400)]
Update keybinding docs

These were still explaining gtkrc syntax.

12 years agoRemove unnecessary includes
Matthias Clasen [Fri, 17 Jun 2011 03:35:24 +0000 (23:35 -0400)]
Remove unnecessary includes

gtkstyle.h is similarly unused.

12 years agoRemove unused includes
Matthias Clasen [Fri, 17 Jun 2011 03:33:43 +0000 (23:33 -0400)]
Remove unused includes

Nothing is using gtkrc.h functionality any more.

12 years agoSilence a warning
Matthias Clasen [Fri, 17 Jun 2011 03:18:03 +0000 (23:18 -0400)]
Silence a warning

12 years agoGtkBox: don't reset styles too often
Matthias Clasen [Fri, 17 Jun 2011 02:15:50 +0000 (22:15 -0400)]
GtkBox: don't reset styles too often

12 years agoinfo_bar: call style_updated at the end of info_bar_init
José Aliste [Thu, 16 Jun 2011 18:32:13 +0000 (14:32 -0400)]
info_bar: call style_updated at the end of info_bar_init

This fix a render bug where the infobar would not add borders
arount its content. Fix proposed by Benjamin Otte.

12 years agoUpdate Visual C++ projects
Chun-wei Fan [Thu, 16 Jun 2011 07:34:43 +0000 (15:34 +0800)]
Update Visual C++ projects

Use G_ENABLE_DEBUG for all debug builds

12 years agotoolbar: Better fix for animations
Benjamin Otte [Wed, 15 Jun 2011 20:50:59 +0000 (22:50 +0200)]
toolbar: Better fix for animations

It turns out there's more places where the toolbar item size is used as
the margin box instead of the content box. Because of that, store the
margin box when allocating and use it whenever calls
toolbar_content_get_allocation() instead of calling
gtk_widget_get_allocation().

12 years agotoolbar: Handle the fact that size_allocate() != get_allocation()
Benjamin Otte [Wed, 15 Jun 2011 17:59:45 +0000 (19:59 +0200)]
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().

12 years agoreftests: fix background-area reftest after the last commit
Benjamin Otte [Wed, 15 Jun 2011 15:24:36 +0000 (11:24 -0400)]
reftests: fix background-area reftest after the last commit

12 years agothemingengine: shrink the background size to the padding-box
Cosimo Cecchi [Wed, 15 Jun 2011 05:07:11 +0000 (01:07 -0400)]
themingengine: shrink the background size to the padding-box

This fixes a regression introduced by this commit [1] that causes
background to draw beyond the padding-box, which breaks rounded corners,
(in addition to not being compliant with what CSS does by default).

[1] http://git.gnome.org/browse/gtk+/commit/?id=c56700ca3029a9ab1362009bff35f2a70e432c02

https://bugzilla.gnome.org/show_bug.cgi?id=652618

12 years agothemingengine: plug a couple of leaks
Xan Lopez [Wed, 15 Jun 2011 12:13:20 +0000 (14:13 +0200)]
themingengine: plug a couple of leaks

12 years agoborder-image: Fix leakage
Xan Lopez [Wed, 15 Jun 2011 11:45:34 +0000 (13:45 +0200)]
border-image: Fix leakage

12 years agotests: Add tests for font-family
Benjamin Otte [Sun, 29 May 2011 03:24:28 +0000 (05:24 +0200)]
tests: Add tests for font-family

This readds the tests now that font-family works again. They were
previously removed when font-family support was backed out due to bugs.

12 years agocss: Make font property a shorthand
Benjamin Otte [Sun, 29 May 2011 05:03:59 +0000 (07:03 +0200)]
css: Make font property a shorthand

... and implement the CSS font properties:
- font-size
- font-style
- font-family
- font-weight
- font-variant

This is the second try at this. The first was backed out previously due
to bugginess. Let's hope this one survives a bit longer.

Also makes the font-family CSS test work again.

12 years agoAdd a missing break statement
Matthias Clasen [Wed, 15 Jun 2011 01:59:55 +0000 (21:59 -0400)]
Add a missing break statement

12 years agoAdd a missing break statement
Matthias Clasen [Wed, 15 Jun 2011 01:58:51 +0000 (21:58 -0400)]
Add a missing break statement

12 years agoAvoid an oob read
Matthias Clasen [Wed, 15 Jun 2011 01:56:50 +0000 (21:56 -0400)]
Avoid an oob read

12 years agoRemove a redundant NULL check
Matthias Clasen [Wed, 15 Jun 2011 01:53:53 +0000 (21:53 -0400)]
Remove a redundant NULL check

12 years agoAvoid a dereference-before-null-check
Matthias Clasen [Wed, 15 Jun 2011 01:50:16 +0000 (21:50 -0400)]
Avoid a dereference-before-null-check

12 years agoGive this code a chance to work
Matthias Clasen [Wed, 15 Jun 2011 01:44:12 +0000 (21:44 -0400)]
Give this code a chance to work

At least it does not get uninitialized variable warnings now.