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,6 +10,14 @@
|
||||||
<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))"/>
|
||||||
|
|
Loading…
Reference in New Issue