Fixed compilation issues. Now to implement uiButton on GTK+.
This commit is contained in:
parent
ce232fdc7e
commit
880f052282
|
@ -39,7 +39,7 @@ static void uiContainer_size_allocate(GtkWidget *widget, GtkAllocation *allocati
|
|||
|
||||
gtk_widget_set_allocation(widget, allocation);
|
||||
c = uiContainer(widget)->child;
|
||||
(*(c->resize))(widget, allocation.x, allocation.y, allocation.width, allocation.height, &d);
|
||||
(*(c->resize))(c, allocation->x, allocation->y, allocation->width, allocation->height, &d);
|
||||
}
|
||||
|
||||
struct forall {
|
||||
|
@ -51,7 +51,7 @@ static void doforall(gpointer obj, gpointer data)
|
|||
{
|
||||
struct forall *s = (struct forall *) data;
|
||||
|
||||
(*(s->callback))(uiContainer(obj), s->data);
|
||||
(*(s->callback))(GTK_WIDGET(obj), s->data);
|
||||
}
|
||||
|
||||
static void uiContainer_forall(GtkContainer *container, gboolean includeInternals, GtkCallback callback, gpointer data)
|
||||
|
|
|
@ -62,9 +62,9 @@ static void singleContainerHide(uiControl *c)
|
|||
|
||||
uiControl *uiUnixNewControl(GType type, guint nConstructParams, GParameter *constructParams, gboolean inScrolledWindow, gboolean needsViewport, gboolean scrolledWindowHasBorder, void *data)
|
||||
{
|
||||
uiSingleHWNDControl *c;
|
||||
uiSingleWidgetControl *c;
|
||||
|
||||
c = g_new0(uiSingleHWNDControl, 1);
|
||||
c = g_new0(uiSingleWidgetControl, 1);
|
||||
c->widget = GTK_WIDGET(g_object_newv(type, nConstructParams, constructParams));
|
||||
c->immediate = c->widget;
|
||||
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#include "uipriv.h"
|
||||
#include "ui_unix.h"
|
||||
|
||||
// TODO move this to the right place
|
||||
struct uiSizing {
|
||||
};
|
||||
|
||||
// container_unix.c
|
||||
#define uiContainerType (uiContainer_get_type())
|
||||
#define uiContainer(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), uiContainerType, uiContainer))
|
||||
|
|
Loading…
Reference in New Issue