of it working however if you
use glades custom widget creation callback and call
gtk_widget_set_name before you return your widget.
Stephen.
--
Stephen Kennedy <[EMAIL PROTECTED]>
http://meld.sf.net visual diff and merge
___
gtk-app-devel-list m
value
Here's an outline. It's pygtk, but I'm sure you can figure it out.
rect = textview.get_visible_rect()
low_iter = textview.get_line_at_y(rect.y)[0]
high_iter = textview.get_line_at_y(rect.y + rect.height)[0]
lines_visible = high_iter.get_line() - low_iter.get_line()
Stephen.
the view
> > > > through the expose-event using drawable.draw_line etc.
The attachment didn't make it to the list so here it is quoted:
def on_textview__expose_event(textview, event):
window = textview.get_window(gtk.TEXT_WINDOW_TEXT)
if event.window != window:
r
at would be quite handy...
Here's the code. I use python (gui coding in C makes me itch), but the C
analog should be obvious.
Stephen.
Stephen Kennedy <[EMAIL PROTECTED]>
http://meld.sf.net visual diff and merge
___
gtk-app-devel-list mai
d was to just draw directly onto the view
through the expose-event using drawable.draw_line etc.
One gotcha: make sure the exposed window is the text window. i.e. that
it equals textview.get_window(gtk.TEXT_WINDOW_TEXT)
Stephen.
--
Stephen Kennedy <[EMAIL PROTECTED]>
http://meld.sf.n
> > how can i highlight the whole line in GtkTextView/Buffer/Tag?
http://bugzilla.gnome.org/show_bug.cgi?id=81045
Apparently this is quite easy to fix, though there has been no action on
it. Which I think is a pity given how good the textview is in general.
Stephen.
__