diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2010-07-11 11:55:44 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2010-07-12 21:12:46 +0200 |
commit | d219adfa5a4b13fa48cd173c0f47cce76f3cc247 (patch) | |
tree | 14f12e5407fe34734cfa94ba15b95687fd9e0638 /tests/testtooltips.c | |
parent | 75e75cd3050fd974e097ab4b7a801e59823fad85 (diff) | |
download | gtk+-d219adfa5a4b13fa48cd173c0f47cce76f3cc247.tar.gz |
Move sealed attributes to private struct.
Diffstat (limited to 'tests/testtooltips.c')
-rw-r--r-- | tests/testtooltips.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 586d2ff4df..8aee9583e6 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -65,13 +65,14 @@ query_tooltip_text_view_cb (GtkWidget *widget, GtkTextTag *tag = data; GtkTextIter iter; GtkTextView *text_view = GTK_TEXT_VIEW (widget); + GtkTextBuffer *buffer = gtk_text_view_get_buffer (text_view); if (keyboard_tip) { gint offset; - g_object_get (text_view->buffer, "cursor-position", &offset, NULL); - gtk_text_buffer_get_iter_at_offset (text_view->buffer, &iter, offset); + g_object_get (buffer, "cursor-position", &offset, NULL); + gtk_text_buffer_get_iter_at_offset (buffer, &iter, offset); } else { |