Re: libglade. Adding newly create widgets to GladeXML object

2005-06-16 Thread Stephen Kennedy
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

Re: Determining the number of visible lines in a GtkTextView

2005-06-14 Thread Stephen Kennedy
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.

Re: GtkTextView horizontal seperators...

2005-05-11 Thread Stephen Kennedy
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

Re: GtkTextView horizontal seperators...

2005-05-11 Thread Stephen Kennedy
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

Re: GtkTextView horizontal seperators...

2005-05-10 Thread Stephen Kennedy
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

Re: highlighting whole line - gtktextview/buffer/tag

2005-02-09 Thread Stephen Kennedy
> > 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. __