GtkSourceView Gutter Example?
Jeff Johnston <[email protected]> Sun, 30 Oct 2011 19:10:15 -0500
| Newsgroups | gmane.comp.gnome.devtools |
|---|---|
| Message-ID | <CABBVk+oDkv0ZMOdfK6X7kNEGvtUYzcX_GWUCsuUAedNu2xcYAQ@mail.gmail.com> |
Is there an example of using the GtkSourceGutter? It seems that it should
be so easy but I cannot seem to get anything to render. Here is something
simple I am trying...
GtkSourceGutter *gutter;
GtkSourceGutterRenderer *renderer;
gutter = gtk_source_view_get_gutter (view, GTK_TEXT_WINDOW_LEFT);
renderer = gtk_source_gutter_renderer_text_new ();
gtk_source_gutter_renderer_text_set_text (GTK_SOURCE_GUTTER_RENDERER_TEXT
(renderer),
"OK", -1);
gtk_source_gutter_insert (gutter, renderer, 20);
Even pointing me to a project that has it working would be helpful. I think
that Anjuta is doing something custom...that would be the obvious place to
look.
-Jeff
_______________________________________________
gnome-devtools mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-devtools