[gtk+/rendering-cleanup: 119/124] textview: Replace GdkGC * argument with gpointer
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 119/124] textview: Replace GdkGC * argument with gpointer
- Date: Thu, 22 Jul 2010 02:08:39 +0000 (UTC)
commit f0d95db2b26007a0d183dcce277e4280e10c25b9
Author: Benjamin Otte <otte redhat com>
Date: Thu Jul 22 02:30:08 2010 +0200
textview: Replace GdkGC * argument with gpointer
The argument is unused.
That's also the reason why we can pass NULL instead of the real GC in
the caller.
gtk/gtktextdisplay.c | 2 +-
gtk/gtktextdisplay.h | 2 +-
gtk/gtktextutil.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index a62880a..20a7f5c 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -800,7 +800,7 @@ void
gtk_text_layout_draw (GtkTextLayout *layout,
GtkWidget *widget,
GdkDrawable *drawable,
- GdkGC *cursor_gc,
+ gpointer cursor_gc,
/* Location of the drawable
in layout coordinates */
gint x_offset,
diff --git a/gtk/gtktextdisplay.h b/gtk/gtktextdisplay.h
index b93a84c..3b6e96c 100644
--- a/gtk/gtktextdisplay.h
+++ b/gtk/gtktextdisplay.h
@@ -97,7 +97,7 @@ G_BEGIN_DECLS
void gtk_text_layout_draw (GtkTextLayout *layout,
GtkWidget *widget,
GdkDrawable *drawable,
- GdkGC *cursor_gc,
+ gpointer cursor_gc,
gint x_offset,
gint y_offset,
gint x,
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 32898fa..d335120 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -357,7 +357,7 @@ _gtk_text_util_create_rich_drag_icon (GtkWidget *widget,
cairo_paint (cr);
gtk_text_layout_draw (layout, widget, drawable,
- widget->style->text_gc [gtk_widget_get_state (widget)],
+ NULL,
- (1 + DRAG_ICON_LAYOUT_BORDER),
- (1 + DRAG_ICON_LAYOUT_BORDER),
0, 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]