]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoWhen cancelling the app dialog return to the last item in combobox
William Jon McCann [Thu, 20 Jan 2011 21:58:19 +0000 (16:58 -0500)]
When cancelling the app dialog return to the last item in combobox

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

13 years agoMake GtkAppChooserButton work in modal context
Matthias Clasen [Fri, 21 Jan 2011 02:21:42 +0000 (21:21 -0500)]
Make GtkAppChooserButton work in modal context

13 years agoAdd a way to set the heading of GtkAppChooserDialog
Matthias Clasen [Fri, 21 Jan 2011 01:55:59 +0000 (20:55 -0500)]
Add a way to set the heading of GtkAppChooserDialog

The application can probably set a better string than the default
we construct, like 'Select an application for "software" files'.

13 years agogdk: Remove colormap debug category
Benjamin Otte [Sun, 16 Jan 2011 16:03:40 +0000 (17:03 +0100)]
gdk: Remove colormap debug category

We don't have colormaps anymore.

13 years agox11: Don't keep two lists of devices internally
Benjamin Otte [Sun, 16 Jan 2011 13:47:59 +0000 (14:47 +0100)]
x11: Don't keep two lists of devices internally

13 years agoChange the label of the GtkAppChooserDialog button
Matthias Clasen [Fri, 21 Jan 2011 00:59:55 +0000 (19:59 -0500)]
Change the label of the GtkAppChooserDialog button

We are not "opening" an application, we are selecting it to
open a file. String change !

13 years agoMake the show more button follow the show-other property
William Jon McCann [Thu, 20 Jan 2011 21:22:51 +0000 (16:22 -0500)]
Make the show more button follow the show-other property

Instead of show-all.

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

13 years agoAdapt gtk_icon_info_load_symbolic to librsvg limitations too
Matthias Clasen [Fri, 21 Jan 2011 00:00:38 +0000 (19:00 -0500)]
Adapt gtk_icon_info_load_symbolic to librsvg limitations too

Pointed out by Owen Taylor.

13 years agoDon't reserve a column of space the for icons in app chooser button
William Jon McCann [Thu, 20 Jan 2011 20:48:00 +0000 (15:48 -0500)]
Don't reserve a column of space the for icons in app chooser button

In order to more consistently present the items regardless of
whether they have icons or not.

13 years agoDo not scan gtktextdisplay.h, avoids a scanner warning
Johan Dahlin [Thu, 20 Jan 2011 16:22:13 +0000 (14:22 -0200)]
Do not scan gtktextdisplay.h, avoids a scanner warning

13 years agoDon't use an icon for Other Applications...
William Jon McCann [Thu, 20 Jan 2011 01:00:37 +0000 (20:00 -0500)]
Don't use an icon for Other Applications...

We only show icons in "menus" for nouns or dynamic objects.

13 years agoMark api with xlib types as skipped
Johan Dahlin [Thu, 20 Jan 2011 14:11:22 +0000 (12:11 -0200)]
Mark api with xlib types as skipped

Since they'd need to have boxed type to be able to work
for introspection based bindings

13 years agogtksettings: Add gtk-doc to silent an annotation warning
Johan Dahlin [Thu, 20 Jan 2011 14:08:34 +0000 (12:08 -0200)]
gtksettings: Add gtk-doc to silent an annotation warning

13 years agoCorrect gtk-doc syntax and add missing (transfer)
Johan Dahlin [Thu, 20 Jan 2011 14:08:11 +0000 (12:08 -0200)]
Correct gtk-doc syntax and add missing (transfer)

13 years agoUse identifier-prefix instead of deprecated strip-prefix
Johan Dahlin [Thu, 20 Jan 2011 13:43:28 +0000 (11:43 -0200)]
Use identifier-prefix instead of deprecated strip-prefix

13 years agoRemove property user_data which doesn't exist anymore
Johan Dahlin [Sat, 8 Jan 2011 13:35:38 +0000 (11:35 -0200)]
Remove property user_data which doesn't exist anymore

13 years agoBump required GObject-Introspection version to 0.10.1
Pavel Holejsovsky [Thu, 20 Jan 2011 13:54:19 +0000 (14:54 +0100)]
Bump required GObject-Introspection version to 0.10.1

13 years ago[GI] Mark unintrospectable constructs as (skip)
Pavel Holejsovsky [Tue, 18 Jan 2011 05:37:11 +0000 (06:37 +0100)]
[GI] Mark unintrospectable constructs as (skip)

Also adds 'Rename to:' annotation to some constructs replacing the
skipped ones.

13 years ago[GI] Add missing (out) and (array) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:10:30 +0000 (10:10 +0100)]
[GI] Add missing (out) and (array) annotations

13 years ago[GI] Add missing (transfer) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:01:17 +0000 (10:01 +0100)]
[GI] Add missing (transfer) annotations

13 years ago[GI] Add missing (scope) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:14:56 +0000 (10:14 +0100)]
[GI] Add missing (scope) annotations

13 years ago[GI] Fixes of existing incorrect annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 09:14:33 +0000 (10:14 +0100)]
[GI] Fixes of existing incorrect annotations

13 years agodocs: Fix typo
Florian Müllner [Thu, 20 Jan 2011 11:29:17 +0000 (12:29 +0100)]
docs: Fix typo

s/gtk_builder_add_From_file/gtk_builder_add_from_file

13 years agogail: fix the build
Cosimo Cecchi [Thu, 20 Jan 2011 10:59:53 +0000 (11:59 +0100)]
gail: fix the build

13 years ago[GI] Fix transfer annotation on gtk_dialog_add_button()
Steve Frécinaux [Thu, 20 Jan 2011 10:53:47 +0000 (11:53 +0100)]
[GI] Fix transfer annotation on gtk_dialog_add_button()

The transfer annotation was (transfer full) but the caller actually
doesn't own a reference of the object. This made the pygobject test suite
crash because pygobject was trying to unref the returned GtkButton
instance.

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

13 years ago[GI] Add annotation (type GdkModifierType) to state attributes in many GdkEvent structs.
Laszlo Pandy [Wed, 19 Jan 2011 09:44:49 +0000 (10:44 +0100)]
[GI] Add annotation (type GdkModifierType) to state attributes in many GdkEvent structs.

The state attribute is available in GdkEventMotion, GdkEventButton,
GdkEventScroll, GdkEventKey and GdkEventCrossing. This type annotation
fixes the wrapping of this attribute in the GI PyGObject bindings.

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

13 years ago[GI] Add (type) annotations to real types
Pavel Holejsovsky [Thu, 20 Jan 2011 09:37:17 +0000 (10:37 +0100)]
[GI] Add (type) annotations to real types

13 years agoAdd a GtkBuilder section to the tutorial
Matthias Clasen [Thu, 20 Jan 2011 06:30:34 +0000 (01:30 -0500)]
Add a GtkBuilder section to the tutorial

13 years agoBe more careful with private event data
Matthias Clasen [Thu, 20 Jan 2011 03:52:55 +0000 (22:52 -0500)]
Be more careful with private event data

When copying allocated events, also copy the source device.
When synthesizing double or triple clicks, copy the original
button press event including device information.

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

13 years agoMake GtkBorder style properties have a non-NULL default
Matthias Clasen [Thu, 20 Jan 2011 01:42:50 +0000 (20:42 -0500)]
Make GtkBorder style properties have a non-NULL default

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

13 years agoAdd gtk_text_view_get_cursor_locations
Matthias Clasen [Wed, 19 Jan 2011 22:01:19 +0000 (17:01 -0500)]
Add gtk_text_view_get_cursor_locations

In GTK 3.0 it's no longer possible to e.g. pop up something
at a text view's cursor (this wasn't exactly possible before
either without including gtktextlayout, but this is a quite
special need anyway).

13 years agoUpdated Greek translation
Michael Kotsarinis [Wed, 19 Jan 2011 20:03:53 +0000 (22:03 +0200)]
Updated Greek translation

13 years agoUse simplesect in the tutorial
Matthias Clasen [Wed, 19 Jan 2011 19:34:08 +0000 (14:34 -0500)]
Use simplesect in the tutorial

This avoids blowing up the global toc even more.

13 years agoUpdated Spanish translation
Jorge González [Wed, 19 Jan 2011 18:37:26 +0000 (19:37 +0100)]
Updated Spanish translation

13 years agoUpdated Greek translation
Michael Kotsarinis [Wed, 19 Jan 2011 18:30:31 +0000 (20:30 +0200)]
Updated Greek translation

13 years agoUpdated Greek translation
Michael Kotsarinis [Wed, 19 Jan 2011 18:18:22 +0000 (20:18 +0200)]
Updated Greek translation

13 years agoMention type vs region ambiguity in the docs
Matthias Clasen [Wed, 19 Jan 2011 17:55:48 +0000 (12:55 -0500)]
Mention type vs region ambiguity in the docs

13 years agoFix linking of drawing example
Martin Pitt [Wed, 19 Jan 2011 14:40:46 +0000 (15:40 +0100)]
Fix linking of drawing example

Commit 80e1340e introduced using a GDK method in examples/drawing.c, so
actually link that to GDK. Fixes build failure with --as-needed linker option
and gcc 4.5.

13 years ago[GI] Added missing (transfer none) annotation to gtk_tree_view_get_path_at_pos
Sebastian Pölsterl [Wed, 19 Jan 2011 14:09:05 +0000 (15:09 +0100)]
[GI] Added missing (transfer none) annotation to gtk_tree_view_get_path_at_pos

13 years agogail now provides toolkit = gail as an AtkAttribute of all gtk objects.
Trevor Saunders [Wed, 19 Jan 2011 07:39:04 +0000 (15:39 +0800)]
gail now provides toolkit = gail as an AtkAttribute of all gtk objects.

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

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

13 years agoAdd a drawing example to the tutorial
Matthias Clasen [Wed, 19 Jan 2011 04:57:17 +0000 (23:57 -0500)]
Add a drawing example to the tutorial

13 years agoAdd a packing example to the tutorial
Matthias Clasen [Wed, 19 Jan 2011 04:01:16 +0000 (23:01 -0500)]
Add a packing example to the tutorial

13 years agoAdd a paragraph explaining events and signals
Matthias Clasen [Wed, 19 Jan 2011 02:42:29 +0000 (21:42 -0500)]
Add a paragraph explaining events and signals

13 years agoMake GtkCssProvider deal with widget types not being in plain CamelCase
Carlos Garnacho [Wed, 19 Jan 2011 03:12:08 +0000 (04:12 +0100)]
Make GtkCssProvider deal with widget types not being in plain CamelCase

Fixes bug #Bug 639754, reported by Kjell Ahlstedt. gtkmm doesn't
use plain CamelCase for its widget type names, so in order to
distinguish widget type names from regions in the CSS parser,
the following checks are now done:

* if it contains an uppercase letter -> widget class (that should
  also work for gtkmm)

* if it's a string compound by lowercase letters and '-' -> it's
  a region, checks have been added in gtk_style_context_add_region()
  and gtk_widget_path_iter_add_region() to ensure this.

13 years agoSet horizontal/vertical style classes to GtkRanges
Carlos Garnacho [Wed, 19 Jan 2011 02:10:12 +0000 (03:10 +0100)]
Set horizontal/vertical style classes to GtkRanges

13 years agoMake GtkCheckButton/GtkRadioButton background white again
Carlos Garnacho [Tue, 18 Jan 2011 19:02:51 +0000 (20:02 +0100)]
Make GtkCheckButton/GtkRadioButton background white again

13 years agoDon't displace background for spinbuttons in the theming engine
Carlos Garnacho [Tue, 18 Jan 2011 18:39:09 +0000 (19:39 +0100)]
Don't displace background for spinbuttons in the theming engine

This is a leftover from the older GtkStyle code, this is handled
through CSS spacings instead.

13 years agoupdate Punjabi Translation
A S Alam [Wed, 19 Jan 2011 03:10:52 +0000 (08:40 +0530)]
update Punjabi Translation

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Tue, 18 Jan 2011 23:02:39 +0000 (01:02 +0200)]
Updated Hebrew translation.

13 years ago[GI] Cosmetic cleanups of annotations and doc comments
Pavel Holejsovsky [Tue, 18 Jan 2011 09:12:38 +0000 (10:12 +0100)]
[GI] Cosmetic cleanups of annotations and doc comments

This change does not introduce any functionality change, mostly
cosmtic cleanups, like re-linebreak when introduced annotations messed
up indentation or whitespace errors fixes.

13 years ago[GI] Add missing (allow-none) annotations
Pavel Holejsovsky [Tue, 18 Jan 2011 08:25:47 +0000 (09:25 +0100)]
[GI] Add missing (allow-none) annotations

13 years ago[GI] Annotate strings holding file paths as (type filename)
Pavel Holejsovsky [Tue, 18 Jan 2011 05:42:31 +0000 (06:42 +0100)]
[GI] Annotate strings holding file paths as (type filename)

13 years ago[GI] Make argument names in vfunc decls consistent with invoker docs
Pavel Holejsovsky [Tue, 18 Jan 2011 05:29:57 +0000 (06:29 +0100)]
[GI] Make argument names in vfunc decls consistent with invoker docs

13 years ago[GI] Mark callbacks' context parameter with (closure) annotation.
Pavel Holejsovsky [Tue, 18 Jan 2011 05:28:24 +0000 (06:28 +0100)]
[GI] Mark callbacks' context parameter with (closure) annotation.

13 years agoGtkImage: Add "use-fallback" property
Bastien Nocera [Tue, 18 Jan 2011 16:13:00 +0000 (16:13 +0000)]
GtkImage: Add "use-fallback" property

So that icon-name and GIcon type of GtkImages can use automatic
fallback names.

13 years agoMore accurate fix for GtkTreeMenu regression.
Tristan Van Berkom [Tue, 18 Jan 2011 15:41:35 +0000 (00:41 +0900)]
More accurate fix for GtkTreeMenu regression.

The previous fix rebuilds the root menu unconditionally,
this one only rebuilds the root menu if the root path
has indeed changed.

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

13 years agoFixed gtk_calendar_get_date annotations: Added missing (out)
Sebastian Pölsterl [Tue, 18 Jan 2011 15:21:10 +0000 (16:21 +0100)]
Fixed gtk_calendar_get_date annotations: Added missing (out)

13 years agoConsistently use PKG_CONFIG in macros
Anders F Björklund [Tue, 18 Jan 2011 14:55:35 +0000 (09:55 -0500)]
Consistently use PKG_CONFIG in macros

13 years agoDon't set the default display to NULL
Matthias Clasen [Tue, 18 Jan 2011 14:36:59 +0000 (09:36 -0500)]
Don't set the default display to NULL

This was causing segfaults if DISPLAY is unset

13 years agoAdd testcases for opening display
Matthias Clasen [Tue, 18 Jan 2011 14:36:24 +0000 (09:36 -0500)]
Add testcases for opening display

More precisely, test that we can successfully fail to open
a display...

13 years agoFix GtkIconView GI annotations
Martin Pitt [Tue, 18 Jan 2011 11:32:52 +0000 (12:32 +0100)]
Fix GtkIconView GI annotations

Add the missing (out) annotations, and a missing allow-none.

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Tue, 18 Jan 2011 10:56:57 +0000 (12:56 +0200)]
Updated Hebrew translation.

13 years agoFix a combo refactor regression
Matthias Clasen [Tue, 18 Jan 2011 02:55:13 +0000 (21:55 -0500)]
Fix a combo refactor regression

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

13 years agoFix case (s/A/a) in translatable string (Select A Folder)
Luca Ferretti [Mon, 17 Jan 2011 20:43:33 +0000 (21:43 +0100)]
Fix case (s/A/a) in translatable string (Select A Folder)

13 years agoFix memory leak in gtk_window_group_list_windows
Garrett Regier [Mon, 17 Jan 2011 03:47:34 +0000 (19:47 -0800)]
Fix memory leak in gtk_window_group_list_windows

13 years agoAnnotate GtkIconView array arguments
Martin Pitt [Mon, 17 Jan 2011 15:00:52 +0000 (16:00 +0100)]
Annotate GtkIconView array arguments

13 years agoMake symbolic icons work again
Matthias Clasen [Mon, 17 Jan 2011 14:57:35 +0000 (09:57 -0500)]
Make symbolic icons work again

Work around https://bugzilla.gnome.org/show_bug.cgi?id=639750

13 years agoDrop gtk-builder-convert
Matthias Clasen [Mon, 17 Jan 2011 14:55:16 +0000 (09:55 -0500)]
Drop gtk-builder-convert

It will still be shipped in gtk 2.24.

13 years agoMove GtkFileFilter docs inline
Pavel Holejsovsky [Sat, 15 Jan 2011 13:50:50 +0000 (14:50 +0100)]
Move GtkFileFilter docs inline

13 years agoMove GtkMenu docs inline
Pavel Holejsovsky [Sat, 15 Jan 2011 13:51:11 +0000 (14:51 +0100)]
Move GtkMenu docs inline

13 years agoMove GtkFixed docs inline
Pavel Holejsovsky [Sat, 15 Jan 2011 13:50:24 +0000 (14:50 +0100)]
Move GtkFixed docs inline

Also remove incorrect documentation of opaque GtkFixed class struct.

13 years agoMake selectors with no explicit state from higher priority GtkStyleProviders override...
Carlos Garnacho [Mon, 17 Jan 2011 03:06:57 +0000 (04:06 +0100)]
Make selectors with no explicit state from higher priority GtkStyleProviders override lower ones with a state.

This makes overriding information from the themes more intuitive

13 years agoMake gtk_widget_get_path() also add all persistent style classes the widget has.
Carlos Garnacho [Mon, 17 Jan 2011 03:05:44 +0000 (04:05 +0100)]
Make gtk_widget_get_path() also add all persistent style classes the widget has.

13 years agoDo not set junction sides to the entry frame in spinbuttons.
Carlos Garnacho [Mon, 17 Jan 2011 02:58:45 +0000 (03:58 +0100)]
Do not set junction sides to the entry frame in spinbuttons.

That's meant to be the outer frame, so no junction sides apply there

13 years agoEnsure harder a GtkStyleContext has a theming engine anytime
Carlos Garnacho [Mon, 17 Jan 2011 02:56:47 +0000 (03:56 +0100)]
Ensure harder a GtkStyleContext has a theming engine anytime

13 years agoMake GtkFrame propagate the "frame" style class to its header label
Carlos Garnacho [Mon, 17 Jan 2011 02:55:53 +0000 (03:55 +0100)]
Make GtkFrame propagate the "frame" style class to its header label

13 years agoMake GtkEntry set the style context state.
Carlos Garnacho [Mon, 17 Jan 2011 02:54:58 +0000 (03:54 +0100)]
Make GtkEntry set the style context state.

13 years agoImprove progressbars theming.
Carlos Garnacho [Fri, 14 Jan 2011 00:09:40 +0000 (01:09 +0100)]
Improve progressbars theming.

Make progressbar itself have an outset border, and improve spacings.

13 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 16 Jan 2011 20:25:10 +0000 (21:25 +0100)]
Updated Spanish translation

13 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 16 Jan 2011 20:24:39 +0000 (21:24 +0100)]
Updated Spanish translation

13 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 16 Jan 2011 18:30:17 +0000 (19:30 +0100)]
Updated Spanish translation

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 16 Jan 2011 16:14:23 +0000 (17:14 +0100)]
Updated Galician translations

13 years agoPlugged memory leak in gdk_x11_device_manager_xi2_list_devices.
Tristan Van Berkom [Sun, 16 Jan 2011 13:47:12 +0000 (22:47 +0900)]
Plugged memory leak in gdk_x11_device_manager_xi2_list_devices.

This was simply a misplaced 'g_list_copy()'.

13 years agoPlugged leaking PangoFontDescriptions in gtk_modifier_style_set_font().
Tristan Van Berkom [Sun, 16 Jan 2011 12:14:00 +0000 (21:14 +0900)]
Plugged leaking PangoFontDescriptions in gtk_modifier_style_set_font().

13 years agoPlugged leak in gtkcssprovider.c
Tristan Van Berkom [Sun, 16 Jan 2011 11:52:43 +0000 (20:52 +0900)]
Plugged leak in gtkcssprovider.c

SelectorStyleInfo structs were never freed.

13 years agoPlugged memory leak in gtk_style_finalize (destroy the ->background[] patterns).
Tristan Van Berkom [Sun, 16 Jan 2011 11:17:52 +0000 (20:17 +0900)]
Plugged memory leak in gtk_style_finalize (destroy the ->background[] patterns).

13 years agoPlugging memory leak in GtkCellArea (free ->style_detail at finalize time).
Tristan Van Berkom [Sun, 16 Jan 2011 09:15:07 +0000 (18:15 +0900)]
Plugging memory leak in GtkCellArea (free ->style_detail at finalize time).

13 years ago[l10n] Updated Estonian translation
Ivar Smolin [Sun, 16 Jan 2011 08:25:57 +0000 (10:25 +0200)]
[l10n] Updated Estonian translation

13 years ago[l10n] Updated Estonian translation
Ivar Smolin [Sun, 16 Jan 2011 08:25:22 +0000 (10:25 +0200)]
[l10n] Updated Estonian translation

13 years agoGtk{List,Tree}Store: Fix GI array annotations
Martin Pitt [Sat, 15 Jan 2011 21:26:12 +0000 (15:26 -0600)]
Gtk{List,Tree}Store: Fix GI array annotations

13 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Sat, 15 Jan 2011 17:17:38 +0000 (18:17 +0100)]
Updated Basque language

13 years agodocs: gtkwidget: Add some "Since: 3.0"
Javier Jardón [Wed, 12 Jan 2011 13:17:34 +0000 (13:17 +0000)]
docs: gtkwidget: Add some "Since: 3.0"

13 years agoAvoid calling gtk_widget_is_visible(NULL) in _gtk_notebook_get_tab_flags().
Tristan Van Berkom [Sat, 15 Jan 2011 12:34:49 +0000 (21:34 +0900)]
Avoid calling gtk_widget_is_visible(NULL) in _gtk_notebook_get_tab_flags().

The tab can be NULL here when GtkNotebook:show-tabs is FALSE.

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 15 Jan 2011 11:08:06 +0000 (12:08 +0100)]
Updated Norwegian bokmål translation

13 years agoAdd missing files
Kjartan Maraas [Sat, 15 Jan 2011 11:07:46 +0000 (12:07 +0100)]
Add missing files

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 12 Jan 2011 09:54:24 +0000 (10:54 +0100)]
Updated Norwegian bokmål translation

13 years agoFix a typo
Matthias Clasen [Sat, 15 Jan 2011 05:39:29 +0000 (00:39 -0500)]
Fix a typo

13 years agoFix a typo
Matthias Clasen [Sat, 15 Jan 2011 05:16:51 +0000 (00:16 -0500)]
Fix a typo

13 years agoAdd accessors for GtkRange::round-digits
Matthias Clasen [Sat, 15 Jan 2011 05:08:39 +0000 (00:08 -0500)]
Add accessors for GtkRange::round-digits

Patch by Christian Dywan,
https://bugzilla.gnome.org/show_bug.cgi?id=351755

13 years agoUnify handling of prelighted icons
Matthias Clasen [Sat, 15 Jan 2011 04:51:41 +0000 (23:51 -0500)]
Unify handling of prelighted icons

Make GtkEntry use gtk_render_icon_pixbuf for rendering the
icons, and move the working icon prelighting code from GtkEntry
to GtkThemingEngine.

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