]> Pileus Git - ~andy/gtk/log
~andy/gtk
12 years agofontchooser: Reorganize code a bit
Benjamin Otte [Tue, 20 Sep 2011 23:04:00 +0000 (01:04 +0200)]
fontchooser: Reorganize code a bit

The main reason is so that we have a new function that we can use from
the cursor_changed_cb.

12 years agofontchooser: Don't store the current face and family anymore
Benjamin Otte [Tue, 20 Sep 2011 22:31:26 +0000 (00:31 +0200)]
fontchooser: Don't store the current face and family anymore

They can be queried on-demand from the font list.

12 years agofontchooser: Take font description from model
Benjamin Otte [Tue, 20 Sep 2011 22:23:07 +0000 (00:23 +0200)]
fontchooser: Take font description from model

... instead of taking face and constructing it from there.

12 years agofontchooser: Sanitize variable declarations
Benjamin Otte [Tue, 20 Sep 2011 22:19:51 +0000 (00:19 +0200)]
fontchooser: Sanitize variable declarations

- no empty lines between variables
- no unnecessary casts
- use glib-style casts
- no spaces

12 years agofontchooser: Fix leak
Benjamin Otte [Tue, 20 Sep 2011 22:14:02 +0000 (00:14 +0200)]
fontchooser: Fix leak

the path variable is set, not filled in.

12 years agofontchooser: Store an iter to the current font
Benjamin Otte [Tue, 20 Sep 2011 22:07:21 +0000 (00:07 +0200)]
fontchooser: Store an iter to the current font

Note that we cannot use GtkTreeSelection for this, because when the font
list is filtered the current font may not be visible.

12 years agocssprovider: Remove outdated docs
Morten Welinder [Tue, 20 Sep 2011 19:14:50 +0000 (21:14 +0200)]
cssprovider: Remove outdated docs

12 years agofontchooser: Store tree model member variables as GtkTreeModel
Benjamin Otte [Tue, 20 Sep 2011 15:07:44 +0000 (17:07 +0200)]
fontchooser: Store tree model member variables as GtkTreeModel

... and remove the now unnecessary treemodel casts everywhere.

Just code cleanup.

12 years agofontchooser: Rename populate_list() function
Benjamin Otte [Tue, 20 Sep 2011 15:06:18 +0000 (17:06 +0200)]
fontchooser: Rename populate_list() function

Name it gtk_font_chooser_widget_load_fonts(). Also, don't take any
arguments, they were the same everywhere and they're member variables of
the font chooser anyway.

12 years agofontchooser: Make changing the preview text fast
Benjamin Otte [Tue, 20 Sep 2011 14:49:49 +0000 (16:49 +0200)]
fontchooser: Make changing the preview text fast

Instead of reloading the font list, we now just queue a redraw. This
works, because the preview text is added using a cell data func instead
of a custom column.

12 years agofontchooser: Use a cell_data_func for the font list
Benjamin Otte [Tue, 20 Sep 2011 14:32:15 +0000 (16:32 +0200)]
fontchooser: Use a cell_data_func for the font list

This way, we don't have to store the preview text in the list.

12 years agofontchooser: Don't scroll in the populate_list() function
Benjamin Otte [Tue, 20 Sep 2011 01:37:11 +0000 (03:37 +0200)]
fontchooser: Don't scroll in the populate_list() function

12 years agofontchooser: Remove needless scroll calls
Benjamin Otte [Tue, 20 Sep 2011 01:10:33 +0000 (03:10 +0200)]
fontchooser: Remove needless scroll calls

Previous functions take care of scrolling already.

12 years agofontchooser: Introduce gtk_font_chooser_find_font()
Benjamin Otte [Tue, 20 Sep 2011 00:54:42 +0000 (02:54 +0200)]
fontchooser: Introduce gtk_font_chooser_find_font()

... which looks up the font in the list of fonts. This then can be used
to select an actual font upon changes.

Also fixes cases where the get_family() and get_face() functions would
return outdated data when set_font() had been called.

12 years agofontchooser: Rewrite size changes
Benjamin Otte [Mon, 19 Sep 2011 23:17:29 +0000 (01:17 +0200)]
fontchooser: Rewrite size changes

They now go through gtk_font_chooser_widget_take_font_desc(). The end
goal is to make all changes go through this function, so that all
updates that are happening are easy to track.

Another change is that the code now merges the font description instead
of just using the new one. This avoids weird situations when people set
the font "Bold" for example, which has neither a size nor a font family.

12 years agofontchooser: Fix size computation
Benjamin Otte [Mon, 19 Sep 2011 22:30:19 +0000 (00:30 +0200)]
fontchooser: Fix size computation

12 years agofontchooser: Fix gcc warnings
Benjamin Otte [Wed, 21 Sep 2011 02:21:42 +0000 (04:21 +0200)]
fontchooser: Fix gcc warnings

12 years agoUpdated Korean translation
Changwoo Ryu [Thu, 22 Sep 2011 18:01:11 +0000 (03:01 +0900)]
Updated Korean translation

12 years agoUpdated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:37:26 +0000 (16:37 +0200)]
Updated Swedish translation

12 years agoUpdated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:36:58 +0000 (16:36 +0200)]
Updated Swedish translation

12 years agoUpdated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:36:25 +0000 (16:36 +0200)]
Updated Swedish translation

12 years agoUpdated Brazilian Portuguese translation.
Antonio Fernandes C. Neto [Thu, 22 Sep 2011 14:30:55 +0000 (10:30 -0400)]
Updated Brazilian Portuguese translation.

12 years agoUpdated Oriya Translation
Manoj Kumar Giri [Thu, 22 Sep 2011 14:05:44 +0000 (19:35 +0530)]
Updated Oriya Translation

12 years agoUpdate Assamese translation
Nilamdyuti Goswami [Thu, 22 Sep 2011 10:44:58 +0000 (12:44 +0200)]
Update Assamese translation

12 years ago[l10n] Updated German translation
Mario Blättermann [Thu, 22 Sep 2011 06:34:07 +0000 (08:34 +0200)]
[l10n] Updated German translation

12 years agoUpdated French translation
Bruno Brouard [Wed, 21 Sep 2011 18:14:03 +0000 (20:14 +0200)]
Updated French translation

12 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Wed, 21 Sep 2011 16:04:18 +0000 (18:04 +0200)]
Updated Basque language

12 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Wed, 21 Sep 2011 15:58:45 +0000 (17:58 +0200)]
Updated Basque language

12 years agogtkmountoperation-x11: unbreak compilation on OpenBSD.
Antoine Jacoutot [Tue, 20 Sep 2011 09:57:49 +0000 (11:57 +0200)]
gtkmountoperation-x11: unbreak compilation on OpenBSD.

Add missing header to prevent undeclared definitions.
Bug #659565

12 years agoUpdated Portuguese translation
Duarte Loreto [Tue, 20 Sep 2011 23:59:41 +0000 (00:59 +0100)]
Updated Portuguese translation

12 years agoUpdated Hungarian translation
Gabor Kelemen [Tue, 20 Sep 2011 22:53:47 +0000 (00:53 +0200)]
Updated Hungarian translation

12 years agoUpdated Latvian translation.
Rudolfs Mazurs [Tue, 20 Sep 2011 19:30:01 +0000 (22:30 +0300)]
Updated Latvian translation.

12 years ago[l10n] Updated German translation
Mario Blättermann [Tue, 20 Sep 2011 18:47:32 +0000 (20:47 +0200)]
[l10n] Updated German translation

12 years agoUpdated Hungarian translation
Gabor Kelemen [Tue, 20 Sep 2011 17:43:05 +0000 (19:43 +0200)]
Updated Hungarian translation

12 years agoUpdated Polish translation
Piotr Drąg [Tue, 20 Sep 2011 15:32:11 +0000 (17:32 +0200)]
Updated Polish translation

12 years agoUpdated Polish translation
Piotr Drąg [Tue, 20 Sep 2011 15:30:06 +0000 (17:30 +0200)]
Updated Polish translation

12 years agoUpdated Brazilian Portuguese translation
Antonio Fernandes C. Neto [Tue, 20 Sep 2011 15:04:44 +0000 (12:04 -0300)]
Updated Brazilian Portuguese translation

12 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 20 Sep 2011 11:23:30 +0000 (13:23 +0200)]
Updated Slovenian translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 20 Sep 2011 08:59:57 +0000 (10:59 +0200)]
Updated Spanish translation

12 years agoUpdated Russian translation
Yuri Myasoedov [Tue, 20 Sep 2011 08:05:06 +0000 (12:05 +0400)]
Updated Russian translation

12 years agoGtkTreeModelFilter: Fix build warnings
Xavier Claessens [Mon, 19 Sep 2011 09:20:08 +0000 (11:20 +0200)]
GtkTreeModelFilter: Fix build warnings

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

12 years agoUpdated Galician translations
Fran Dieguez [Mon, 19 Sep 2011 23:27:13 +0000 (01:27 +0200)]
Updated Galician translations

12 years agoBump version
Matthias Clasen [Mon, 19 Sep 2011 22:03:11 +0000 (18:03 -0400)]
Bump version

12 years ago3.1.92
Matthias Clasen [Mon, 19 Sep 2011 21:39:00 +0000 (17:39 -0400)]
3.1.92

12 years agoUpdates
Matthias Clasen [Mon, 19 Sep 2011 20:13:42 +0000 (16:13 -0400)]
Updates

12 years agoUpdated Polish translation
Piotr Drąg [Mon, 19 Sep 2011 20:21:53 +0000 (22:21 +0200)]
Updated Polish translation

12 years agofontchooser: Remove special case for a single signal handler
Benjamin Otte [Mon, 19 Sep 2011 19:17:01 +0000 (21:17 +0200)]
fontchooser: Remove special case for a single signal handler

12 years agofontchooser: Remove useless code
Benjamin Otte [Mon, 19 Sep 2011 18:37:38 +0000 (20:37 +0200)]
fontchooser: Remove useless code

gtk_adjustment_set_value() clamps itself, no need to do the clamping.

But I was impressed at the amount of comments.

12 years agofontchooser: Don't store the size separately
Benjamin Otte [Mon, 19 Sep 2011 17:54:40 +0000 (19:54 +0200)]
fontchooser: Don't store the size separately

Instead, use the font description's size.

12 years agofontchooser: Don't reload the fonts on style changes
Benjamin Otte [Mon, 19 Sep 2011 16:51:11 +0000 (18:51 +0200)]
fontchooser: Don't reload the fonts on style changes

It's not necessary, because nothing changes.

12 years agofontchooser: Assume NULL screen means the default screen
Benjamin Otte [Mon, 19 Sep 2011 16:35:57 +0000 (18:35 +0200)]
fontchooser: Assume NULL screen means the default screen

... and update the font list only when the screen actually changes.

12 years agofontchooser: Store the font description in the model
Benjamin Otte [Mon, 19 Sep 2011 15:58:51 +0000 (17:58 +0200)]
fontchooser: Store the font description in the model

It's actually expensive to create (>5ms per font with >1000 fonts
installed), so better cache it.

12 years agofontchooser: Move the filter func to the visibility func
Benjamin Otte [Mon, 19 Sep 2011 13:45:24 +0000 (15:45 +0200)]
fontchooser: Move the filter func to the visibility func

... instead of rereading all the fonts every time.

With this change, the liststore now contains every font face known to
GTK, so we can actually walk it for matching fonts.

12 years agofontchooser: Fix code to make it not look like GTK 0.9
Benjamin Otte [Mon, 19 Sep 2011 13:16:02 +0000 (15:16 +0200)]
fontchooser: Fix code to make it not look like GTK 0.9

12 years agofontchooser: List font description as font description
Benjamin Otte [Fri, 16 Sep 2011 08:41:24 +0000 (10:41 +0200)]
fontchooser: List font description as font description

Otherwise there will be two properties listed as "Font" in property
selectors (in Glade or testfontchooser).

12 years agofontchooser: Family or face can never be NULL
Benjamin Otte [Fri, 16 Sep 2011 08:26:55 +0000 (10:26 +0200)]
fontchooser: Family or face can never be NULL

... so there's no need to special-case those situations.

12 years agofontchooser: Use gtk_list_store_insert_with_values()
Benjamin Otte [Fri, 16 Sep 2011 08:21:58 +0000 (10:21 +0200)]
fontchooser: Use gtk_list_store_insert_with_values()

... instead of append() + set_values()

12 years agofontchooserwidget: Simplify function
Benjamin Otte [Fri, 16 Sep 2011 08:14:15 +0000 (10:14 +0200)]
fontchooserwidget: Simplify function

- Don't do unnecessary casts
- Fix weird variable declaration indenting
- Fix loop indentation
- Use a for loop for iterating over a list, instead of a while loop
- Casefold font name only once, instead of every iteration
- Remove needless true_var = true_var && TRUE assignment

12 years agoUpdated British English translation
Bruce Cowan [Mon, 19 Sep 2011 12:11:23 +0000 (13:11 +0100)]
Updated British English translation

12 years agoGtkPaned: Create the child window at the correct position
Chris Coulson [Mon, 19 Sep 2011 11:28:59 +0000 (12:28 +0100)]
GtkPaned: Create the child window at the correct position

When there is only a single child, create its window at the correct position
https://bugzilla.gnome.org/show_bug.cgi?id=659241

12 years agoUpdated Serbian translation
Мирослав Николић [Mon, 19 Sep 2011 01:08:22 +0000 (03:08 +0200)]
Updated Serbian translation

12 years agoUpdated Latvian translation.
Rudolfs Mazurs [Sun, 18 Sep 2011 17:55:24 +0000 (20:55 +0300)]
Updated Latvian translation.

12 years agoUpdated Swedish translation
Daniel Nylander [Sun, 18 Sep 2011 17:35:34 +0000 (19:35 +0200)]
Updated Swedish translation

12 years ago[l10n] Updated German translation
Wolfgang Stöggl [Sun, 18 Sep 2011 15:37:42 +0000 (17:37 +0200)]
[l10n] Updated German translation

12 years ago[l10n] Updated German translation
Wolfgang Stöggl [Sun, 18 Sep 2011 15:34:19 +0000 (17:34 +0200)]
[l10n] Updated German translation

12 years agoUpdated Belarusian translation (some fixes after manual testing).
Ihar Hrachyshka [Sat, 17 Sep 2011 20:28:39 +0000 (23:28 +0300)]
Updated Belarusian translation (some fixes after manual testing).

12 years agoUpdated Belarusian translation (some fixes after manual testing).
Ihar Hrachyshka [Sat, 17 Sep 2011 19:51:32 +0000 (22:51 +0300)]
Updated Belarusian translation (some fixes after manual testing).

12 years agoUpdated Bulgarian translation
Alexander Shopov [Sat, 17 Sep 2011 19:09:27 +0000 (22:09 +0300)]
Updated Bulgarian translation

12 years agoUpdated asturian translation
Xandru Armesto [Sat, 17 Sep 2011 17:03:55 +0000 (19:03 +0200)]
Updated asturian translation

12 years agoFixed a string translated to Brazilian Portuguese
Djavan Fagundes [Sat, 17 Sep 2011 15:04:13 +0000 (12:04 -0300)]
Fixed a string translated to Brazilian Portuguese

12 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 17 Sep 2011 09:01:15 +0000 (11:01 +0200)]
Updated Slovenian translation

12 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 17 Sep 2011 08:55:24 +0000 (10:55 +0200)]
Updated Slovenian translation

12 years agoUpdated Slovenian translation
Martin Srebotnjak [Sat, 17 Sep 2011 07:48:31 +0000 (09:48 +0200)]
Updated Slovenian translation

12 years agotreemodelfilter: add additional asserts to MODEL_FILTER_DEBUG mode
Kristian Rietveld [Sat, 17 Sep 2011 04:08:40 +0000 (06:08 +0200)]
treemodelfilter: add additional asserts to MODEL_FILTER_DEBUG mode

12 years agoRemove left-over calls to dump function
Kristian Rietveld [Sat, 17 Sep 2011 03:18:13 +0000 (05:18 +0200)]
Remove left-over calls to dump function

12 years agowidget-factory: add more checks and radios
Matthias Clasen [Sat, 17 Sep 2011 01:06:56 +0000 (21:06 -0400)]
widget-factory: add more checks and radios

Add examples of check and radio menuitems, as well as inconsistent
checks and toggles.

12 years agolink-button: Reset the mouse cursor when destroyed
Bastien Nocera [Fri, 16 Sep 2011 14:04:44 +0000 (15:04 +0100)]
link-button: Reset the mouse cursor when destroyed

If clicking on a link destroys the link button, and keeps the
same GdkWindow then the cursor stays as a hand in the rest of
the interface.

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

12 years agogdk/gdkkeys.h: Remove api documentation as Its already in the .c file
Javier Jardón [Fri, 16 Sep 2011 11:12:02 +0000 (13:12 +0200)]
gdk/gdkkeys.h: Remove api documentation as Its already in the .c file

12 years agoUpdated Portuguese translation
Duarte Loreto [Thu, 15 Sep 2011 23:47:03 +0000 (00:47 +0100)]
Updated Portuguese translation

12 years agoUpdated Portuguese translation
Duarte Loreto [Thu, 15 Sep 2011 23:45:41 +0000 (00:45 +0100)]
Updated Portuguese translation

12 years agoUpdated Slovenian translation
Martin Srebotnjak [Thu, 15 Sep 2011 20:37:48 +0000 (22:37 +0200)]
Updated Slovenian translation

12 years agoUpdated Punjabi Translation
A S Alam [Thu, 15 Sep 2011 16:53:43 +0000 (22:23 +0530)]
Updated Punjabi Translation

12 years agoUpdated asturian translation
Xandru Armesto [Thu, 15 Sep 2011 16:37:23 +0000 (18:37 +0200)]
Updated asturian translation

12 years agoiconview: add support for prelight cells
Cosimo Cecchi [Wed, 14 Sep 2011 21:32:02 +0000 (17:32 -0400)]
iconview: add support for prelight cells

Render GtkIconView cell items with the prelight state flag when they're
being mouse hovered.
This works basically in the same way it's done for GtkTreeView cells,
and e.g. GtkCellRendererPixbuf will need to have its follow-state
property to opt in to prelight rendering.

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

12 years agoUpdated Galician translations
Fran Dieguez [Wed, 14 Sep 2011 21:14:00 +0000 (23:14 +0200)]
Updated Galician translations

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Wed, 14 Sep 2011 18:52:12 +0000 (21:52 +0300)]
Updated Belarusian translation.

12 years agoGtkApplication: chain up ::startup
Ryan Lortie [Wed, 14 Sep 2011 18:02:51 +0000 (14:02 -0400)]
GtkApplication: chain up ::startup

12 years agoUpdated Russian translation
Yuri Myasoedov [Wed, 14 Sep 2011 17:52:57 +0000 (21:52 +0400)]
Updated Russian translation

12 years agoUpdate French translation
Alexandre Franke [Wed, 14 Sep 2011 16:25:36 +0000 (18:25 +0200)]
Update French translation

12 years agoiconview: Don't rturn TRUE from draw handler
Benjamin Otte [Wed, 14 Sep 2011 14:09:36 +0000 (16:09 +0200)]
iconview: Don't rturn TRUE from draw handler

12 years agotreeview: Return FALSE from draw handler
Benjamin Otte [Wed, 14 Sep 2011 14:03:54 +0000 (16:03 +0200)]
treeview: Return FALSE from draw handler

... like every widget should.

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

12 years agoUpdated Brazilian Portuguese translation.
Antonio Fernandes C. Neto [Wed, 14 Sep 2011 12:57:40 +0000 (08:57 -0400)]
Updated Brazilian Portuguese translation.

12 years agoPost-release bump
Matthias Clasen [Tue, 13 Sep 2011 22:17:47 +0000 (18:17 -0400)]
Post-release bump

12 years ago3.1.90
Matthias Clasen [Tue, 13 Sep 2011 21:40:52 +0000 (17:40 -0400)]
3.1.90

12 years agoFix a parameter name mismatch
Matthias Clasen [Tue, 13 Sep 2011 18:57:21 +0000 (14:57 -0400)]
Fix a parameter name mismatch

12 years agoUpdates
Matthias Clasen [Tue, 13 Sep 2011 17:28:43 +0000 (13:28 -0400)]
Updates

12 years agol10n: Updated Italian translation
Luca Ferretti [Tue, 13 Sep 2011 21:29:15 +0000 (23:29 +0200)]
l10n: Updated Italian translation

12 years agol10n: Updated Italian translation
Luca Ferretti [Tue, 13 Sep 2011 21:26:00 +0000 (23:26 +0200)]
l10n: Updated Italian translation

12 years agol10n: Updated Italian translation
Luca Ferretti [Tue, 13 Sep 2011 21:25:55 +0000 (23:25 +0200)]
l10n: Updated Italian translation

12 years agoMerge branch 'bgo593793-filechooser-recent-folders-master'
Federico Mena Quintero [Tue, 13 Sep 2011 20:24:37 +0000 (15:24 -0500)]
Merge branch 'bgo593793-filechooser-recent-folders-master'