Fix up highlighting
svn path=/trunk/; revision=20791
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2008-07-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Bug 343663 – source-buffer highlighting highlights "char" in
|
||||||
|
gtk_text_iter_forward_char
|
||||||
|
|
||||||
|
* demos/gtk-demo/*.c: Fix up the handrolled hilighting a bit.
|
||||||
|
|
||||||
2008-07-06 Matthias Clasen <mclasen@redhat.com>
|
2008-07-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 327582 – Incomplete docs for GtkSettings::gtk-icon-sizes
|
Bug 327582 – Incomplete docs for GtkSettings::gtk-icon-sizes
|
||||||
|
@ -195,11 +195,12 @@ static gchar *types[] =
|
|||||||
"const ",
|
"const ",
|
||||||
"void",
|
"void",
|
||||||
"gint",
|
"gint",
|
||||||
"int ",
|
" int ",
|
||||||
"char ",
|
" char ",
|
||||||
"gchar ",
|
"gchar ",
|
||||||
"gfloat",
|
"gfloat",
|
||||||
"float",
|
"float",
|
||||||
|
"double",
|
||||||
"gint8",
|
"gint8",
|
||||||
"gint16",
|
"gint16",
|
||||||
"gint32",
|
"gint32",
|
||||||
@ -234,6 +235,87 @@ static gchar *types[] =
|
|||||||
"GdkPixbuf ",
|
"GdkPixbuf ",
|
||||||
"GError",
|
"GError",
|
||||||
"size_t",
|
"size_t",
|
||||||
|
"GtkAboutDialog ",
|
||||||
|
"GtkAction ",
|
||||||
|
"GtkActionEntry ",
|
||||||
|
"GtkRadioActionEntry ",
|
||||||
|
"GtkIconFactory ",
|
||||||
|
"GtkStockItem ",
|
||||||
|
"GtkIconSet ",
|
||||||
|
"GtkTextBuffer ",
|
||||||
|
"GtkStatusbar ",
|
||||||
|
"GtkTextIter ",
|
||||||
|
"GtkTextMark ",
|
||||||
|
"GdkEventWindowState ",
|
||||||
|
"GtkActionGroup ",
|
||||||
|
"GtkUIManager ",
|
||||||
|
"GtkRadioAction ",
|
||||||
|
"GtkActionClass ",
|
||||||
|
"GtkToggleActionEntry ",
|
||||||
|
"GtkAssistant ",
|
||||||
|
"GtkBuilder ",
|
||||||
|
"GtkSizeGroup ",
|
||||||
|
"GtkTreeModel ",
|
||||||
|
"GtkTreeSelection ",
|
||||||
|
"GdkDisplay ",
|
||||||
|
"GdkScreen ",
|
||||||
|
"GdkWindow ",
|
||||||
|
"GdkEventButton ",
|
||||||
|
"GdkCursor ",
|
||||||
|
"GtkTreeIter ",
|
||||||
|
"GtkTreeViewColumn ",
|
||||||
|
"GdkDisplayManager ",
|
||||||
|
"GtkClipboard ",
|
||||||
|
"GtkIconSize ",
|
||||||
|
"GtkImage ",
|
||||||
|
"GdkDragContext ",
|
||||||
|
"GtkSelectionData ",
|
||||||
|
"GtkDialog ",
|
||||||
|
"GtkMenuItem ",
|
||||||
|
"GtkListStore ",
|
||||||
|
"GtkCellLayout ",
|
||||||
|
"GtkCellRenderer ",
|
||||||
|
"GtkTreePath ",
|
||||||
|
"GtkTreeStore ",
|
||||||
|
"GtkEntry ",
|
||||||
|
"GtkEditable ",
|
||||||
|
"GtkEditableClass ",
|
||||||
|
"GdkPixmap ",
|
||||||
|
"GdkEventConfigure ",
|
||||||
|
"GdkEventMotion ",
|
||||||
|
"GdkModifierType ",
|
||||||
|
"GtkEntryCompletion ",
|
||||||
|
"GtkToolItem ",
|
||||||
|
"GDir ",
|
||||||
|
"GtkIconView ",
|
||||||
|
"GtkCellRendererText ",
|
||||||
|
"GtkContainer ",
|
||||||
|
"GtkAccelGroup ",
|
||||||
|
"GtkPaned ",
|
||||||
|
"GtkPrintOperation ",
|
||||||
|
"GtkPrintContext ",
|
||||||
|
"cairo_t ",
|
||||||
|
"PangoLayout "
|
||||||
|
"PangoFontDescription ",
|
||||||
|
"PangoRenderer ",
|
||||||
|
"PangoMatrix ",
|
||||||
|
"PangoContext ",
|
||||||
|
"PangoLayout ",
|
||||||
|
"GtkTable ",
|
||||||
|
"GtkToggleButton ",
|
||||||
|
"GString ",
|
||||||
|
"GtkIconSize ",
|
||||||
|
"GtkTreeView ",
|
||||||
|
"GtkTextTag ",
|
||||||
|
"GdkEvent ",
|
||||||
|
"GdkEventKey ",
|
||||||
|
"GtkTextView ",
|
||||||
|
"GdkEventVisibility ",
|
||||||
|
"GdkBitmap ",
|
||||||
|
"GtkTextChildAnchor ",
|
||||||
|
"GArray ",
|
||||||
|
"GtkCellEditable ",
|
||||||
|
"GtkCellRendererToggle ",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -308,7 +390,8 @@ parse_chars (gchar *text,
|
|||||||
}
|
}
|
||||||
/* check for types */
|
/* check for types */
|
||||||
for (i = 0; types[i] != NULL; i++)
|
for (i = 0; types[i] != NULL; i++)
|
||||||
if (!strncmp (text, types[i], strlen (types[i])))
|
if (!strncmp (text, types[i], strlen (types[i])) ||
|
||||||
|
(start && types[i][0] == ' ' && !strncmp (text, types[i] + 1, strlen (types[i]) - 1)))
|
||||||
{
|
{
|
||||||
*end_ptr = text + strlen (types[i]);
|
*end_ptr = text + strlen (types[i]);
|
||||||
*tag = "type";
|
*tag = "type";
|
||||||
|
Reference in New Issue
Block a user