Re: GtkSourceView Gutter Example?
- From: Jeff Johnston <jeff johnston mn gmail com>
- To: gnome-devtools gnome org
- Subject: Re: GtkSourceView Gutter Example?
- Date: Sun, 30 Oct 2011 20:33:32 -0500
OK, I think I have it figured out. I thought I had to get ahold of the gutter and then place things inside of it. But, as the test-widget.c shows you just work with source marks. My mind was obviously on a completely different track :).
-Jeff
On Sun, Oct 30, 2011 at 7:10 PM, Jeff Johnston
<jeff johnston mn gmail com> wrote:
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
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]