[gimp] Use accessors instead of widget->window and widget->style
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Use accessors instead of widget->window and widget->style
- Date: Wed, 15 Jul 2009 01:59:02 +0000 (UTC)
commit 84e933d80ba9d0511437604304543385dbac1727
Author: Michael Natterer <mitch gimp org>
Date: Wed Jul 15 03:58:30 2009 +0200
Use accessors instead of widget->window and widget->style
app/widgets/gimptagentry.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimptagentry.c b/app/widgets/gimptagentry.c
index d37902c..6d11728 100644
--- a/app/widgets/gimptagentry.c
+++ b/app/widgets/gimptagentry.c
@@ -1206,7 +1206,7 @@ gimp_tag_entry_expose (GtkWidget *widget,
const char *display_text;
/* eeeeeek */
- if (widget->window == event->window)
+ if (gtk_widget_get_window (widget) == event->window)
return FALSE;
if (! GIMP_TAG_ENTRY (widget)->description_shown)
@@ -1236,7 +1236,7 @@ gimp_tag_entry_expose (GtkWidget *widget,
&layout_width, &layout_height);
offset = (window_height - PANGO_PIXELS (layout_height)) / 2;
- gtk_paint_layout (widget->style,
+ gtk_paint_layout (gtk_widget_get_style (widget),
event->window,
GTK_STATE_INSENSITIVE,
TRUE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]