gtk.cfg: Add some GTK_*() instance cast macros
SOME GTK_*() macros most often reported as missing by daca@home are added.
This commit is contained in:
parent
6b1e324df0
commit
6f57b9abfa
10
cfg/gtk.cfg
10
cfg/gtk.cfg
|
@ -10,9 +10,17 @@
|
||||||
<define name="G_LIKELY(expr)" value="(expr)"/>
|
<define name="G_LIKELY(expr)" value="(expr)"/>
|
||||||
<define name="G_UNLIKELY(expr)" value="(expr)"/>
|
<define name="G_UNLIKELY(expr)" value="(expr)"/>
|
||||||
<define name="G_OBJECT(obj)" value="(GObject*)(obj)"/>
|
<define name="G_OBJECT(obj)" value="(GObject*)(obj)"/>
|
||||||
|
<define name="GTK_BOX(obj)" value="((GtkBox*)(obj))"/>
|
||||||
|
<define name="GTK_CONTAINER(obj)" value="((GtkContainer*)(obj))"/>
|
||||||
|
<define name="GTK_ENTRY(obj)" value="((GtkEntry*)(obj))"/>
|
||||||
|
<define name="GTK_OBJECT(obj)" value="((GtkObject*)(obj))"/>
|
||||||
|
<define name="GTK_TABLE(obj)" value="((GtkTable*)(obj))"/>
|
||||||
|
<define name="GTK_TOGGLE_BUTTON(obj)" value="((GtkToggleButton*)(obj))"/>
|
||||||
|
<define name="GTK_WIDGET(widget)" value="((GtkWidget*)(widget))"/>
|
||||||
|
<define name="GTK_WINDOW(obj)" value="((GtkWindow*)(obj))"/>
|
||||||
<!-- https://developer.gnome.org/glib/stable/glib-Type-Conversion-Macros.html -->
|
<!-- https://developer.gnome.org/glib/stable/glib-Type-Conversion-Macros.html -->
|
||||||
<define name="GINT_TO_POINTER(i)" value="((gpointer) (glong) (i))"/>
|
<define name="GINT_TO_POINTER(i)" value="((gpointer) (glong) (i))"/>
|
||||||
<define name="GPOINTER_TO_INT(p)" value="((gint) (glong) (p))"/>
|
<define name="GPOINTER_TO_INT(p)" value="((gint) (glong) (p))"/>
|
||||||
<define name="GUINT_TO_POINTER(u)" value="((gpointer) (gulong) (u))"/>
|
<define name="GUINT_TO_POINTER(u)" value="((gpointer) (gulong) (u))"/>
|
||||||
<define name="GPOINTER_TO_UINT(p)" value="((guint) (gulong) (p))"/>
|
<define name="GPOINTER_TO_UINT(p)" value="((guint) (gulong) (p))"/>
|
||||||
<define name="GSIZE_TO_POINTER(s)" value="((gpointer) (gsize) (s))"/>
|
<define name="GSIZE_TO_POINTER(s)" value="((gpointer) (gsize) (s))"/>
|
||||||
|
|
Loading…
Reference in New Issue