~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/hooks.c

  • Committer: mvo
  • Date: 2005-07-05 15:52:10 UTC
  • Revision ID: gustavo@niemeyer.net-20050705155210-26f672e722f88326
* debian/changelog,configure.in:
  - new versin 0.40
* src/hooks.c:
  - make the name of the hook better visible
* ui/hooks-dialog.glade:
  - make the dialog resizable

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
   char *s = g_strdup_printf("%s\n\n%s\n",name, description);
225
225
   gtk_text_buffer_set_text(buf, s, -1);
226
226
 
 
227
   // set the name to bold
 
228
   GtkTextIter start, end;
 
229
   gtk_text_buffer_get_iter_at_offset(buf, &start, 0);
 
230
   gtk_text_buffer_get_iter_at_offset(buf, &end, g_utf8_strlen(name,-1));
 
231
   gtk_text_buffer_apply_tag_by_name(buf, "bold_tag", &start, &end);
 
232
 
 
233
   // clean up
227
234
   fclose(f);
228
235
   g_free(s);
229
236
   g_free(filename);
480
487
                     G_CALLBACK (button_release_cb),
481
488
                     ta);
482
489
 
 
490
   // create a bold tag
 
491
   GtkWidget *text = glade_xml_get_widget(xml, "textview_hook");
 
492
   GtkTextBuffer *buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
 
493
   gtk_text_buffer_create_tag (buf, "bold_tag",
 
494
                               "scale", PANGO_SCALE_LARGE, 
 
495
                               "weight", PANGO_WEIGHT_BOLD,
 
496
                               NULL);  
 
497
 
 
498
 
483
499
   /* read already seen hooks */
484
500
   init_already_seen_hooks(ta);
485
501