Merge lp:~xapantu/autopilot-gtk/gtk_text_view_full_text into lp:autopilot-gtk

Proposed by xapantu
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~xapantu/autopilot-gtk/gtk_text_view_full_text
Merge into: lp:autopilot-gtk
Diff against target: 19 lines (+9/-0)
1 file modified
lib/GtkNode.cpp (+9/-0)
To merge this branch: bzr merge lp:~xapantu/autopilot-gtk/gtk_text_view_full_text
Reviewer Review Type Date Requested Status
Autopilot Hackers Pending
Review via email: mp+169692@code.launchpad.net

Description of the change

This branch adds a full_text property to every gtktextview, which is useful to test any editor application.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

With current autopilot-gtk this should happen a little differently. I reported that in bug 1194371 and proposed a fix in https://code.launchpad.net/~pitti/autopilot-gtk/gtktextbuffer/+merge/171752 .

So this proposal is superseded. Thank you anyway, and sorry for the duplicate work! (I just noticed that now, I'm reviewing older merge proposals; I just started maintaining ap-gtk this week.)

Unmerged revisions

44. By xapantu

Add full_text for GtkTextView

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/GtkNode.cpp'
2--- lib/GtkNode.cpp 2013-05-22 23:29:06 +0000
3+++ lib/GtkNode.cpp 2013-06-16 16:20:32 +0000
4@@ -66,6 +66,15 @@
5 //g_debug("skipped %s of type GtkTreePath", g_param_spec_get_name(param_spec));
6 }
7 }
8+ if(GTK_IS_TEXT_VIEW(object_)) {
9+ GtkTextBuffer* buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(object_));
10+ GtkTextIter start, end;
11+ gtk_text_buffer_get_start_iter(buffer, &start);
12+ gtk_text_buffer_get_end_iter(buffer, &end);
13+ gchar* text = gtk_text_buffer_get_text(buffer, &start, &end, TRUE);
14+ builder_wrapper.add("full-text", text);
15+ g_free(text);
16+ }
17 g_free(properties);
18
19 // add our unique autopilot-id

Subscribers

People subscribed via source and target branches

to all changes: