GtkSourceView Gutter Example?



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]