[gtk+/wip/window-scales: 72/84] entry: Set the window on the icon helper
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/window-scales: 72/84] entry: Set the window on the icon helper
- Date: Wed, 26 Jun 2013 15:10:57 +0000 (UTC)
commit e68b5189437cffa57ca8cacd16ddb469b8f5a819
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jun 25 14:37:55 2013 +0200
entry: Set the window on the icon helper
gtk/gtkentry.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index bc5f6e3..2a81e13 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3044,6 +3044,10 @@ realize_icon_info (GtkWidget *widget,
gtk_widget_register_window (widget, icon_info->window);
gtk_widget_queue_resize (widget);
+
+ _gtk_icon_helper_set_window (icon_info->icon_helper,
+ gtk_widget_get_window (widget));
+
}
static EntryIconInfo*
@@ -3230,6 +3234,8 @@ gtk_entry_unrealize (GtkWidget *widget)
{
if ((icon_info = priv->icons[i]) != NULL)
{
+ _gtk_icon_helper_set_window (icon_info->icon_helper, NULL);
+
if (icon_info->window != NULL)
{
gtk_widget_unregister_window (widget, icon_info->window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]