/[xlog]/xlog/src/gui_helpdialog.c
ViewVC logotype

Diff of /xlog/src/gui_helpdialog.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pa4tu, Wed Sep 29 12:06:36 2004 UTC revision 1.4 by pa4tu, Wed Sep 29 12:15:40 2004 UTC
# Line 74  static void open_help (gchar *filename) Line 74  static void open_help (gchar *filename)
74                  filename);                  filename);
75          gtk_text_buffer_create_tag (buffer, "bold", "weight", PANGO_WEIGHT_BOLD,          gtk_text_buffer_create_tag (buffer, "bold", "weight", PANGO_WEIGHT_BOLD,
76                  "size", 10 * PANGO_SCALE, NULL);                  "size", 10 * PANGO_SCALE, NULL);
77            gtk_text_buffer_create_tag (buffer, "blue", "foreground", "blue", NULL);
78    
79          in = fopen (helpfile, "r");          in = fopen (helpfile, "r");
80          if (in)          if (in)
# Line 87  static void open_help (gchar *filename) Line 88  static void open_help (gchar *filename)
88                                  if (buf[0] == '-')                                  if (buf[0] == '-')
89                                          gtk_text_buffer_insert_with_tags_by_name                                          gtk_text_buffer_insert_with_tags_by_name
90                                                  (buffer, &iter, buf, -1, "bold", NULL);                                                  (buffer, &iter, buf, -1, "bold", NULL);
91                                    else if (buf[0] == '!')
92                                    {
93                                            buf[0] = ' ';
94                                            gtk_text_buffer_insert_with_tags_by_name
95                                                    (buffer, &iter, buf, -1, "blue", NULL);
96                                    }
97                                  else                                  else
98                                          gtk_text_buffer_insert (buffer, &iter, buf, -1);                                          gtk_text_buffer_insert (buffer, &iter, buf, -1);
99                          }                          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26