Some compilation fixes.
This commit is contained in:
parent
b5d20864cb
commit
c5fa717c7d
|
@ -63,7 +63,6 @@ static void checkboxSetChecked(uiCheckbox *cc, int checked)
|
|||
uiCheckbox *uiNewCheckbox(const char *text)
|
||||
{
|
||||
struct checkbox *c;
|
||||
WCHAR *wtext;
|
||||
|
||||
c = (struct checkbox *) MAKE_CONTROL_INSTANCE(uiTypeCheckbox());
|
||||
|
||||
|
|
|
@ -2,15 +2,21 @@
|
|||
|
||||
osCFILES = \
|
||||
unix/alloc.c \
|
||||
unix/bin.c \
|
||||
unix/button.c \
|
||||
unix/checkbox.c \
|
||||
unix/container.c \
|
||||
unix/combobox.c \
|
||||
unix/control.c \
|
||||
unix/datetimepicker.c \
|
||||
unix/entry.c \
|
||||
unix/group.c \
|
||||
unix/label.c \
|
||||
unix/main.c \
|
||||
unix/menu.c \
|
||||
unix/newcontrol.c \
|
||||
unix/progressbar.c \
|
||||
unix/radiobuttons.c \
|
||||
unix/separator.c \
|
||||
unix/slider.c \
|
||||
unix/spinbox.c \
|
||||
unix/tab.c \
|
||||
unix/text.c \
|
||||
unix/util.c \
|
||||
|
|
|
@ -63,7 +63,6 @@ static void checkboxSetChecked(uiCheckbox *cc, int checked)
|
|||
uiCheckbox *uiNewCheckbox(const char *text)
|
||||
{
|
||||
struct checkbox *c;
|
||||
WCHAR *wtext;
|
||||
|
||||
c = (struct checkbox *) MAKE_CONTROL_INSTANCE(uiTypeCheckbox());
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ static void comboboxAppend(uiCombobox *cc, const char *text)
|
|||
PUT_CODE_HERE;
|
||||
}
|
||||
|
||||
static uiCombobox *finishNewCombobox(OSTHING OSARG)
|
||||
static uiCombobox *finishNewCombobox(GtkWidget (*newfunc)(void))
|
||||
{
|
||||
struct combobox *c;
|
||||
|
||||
|
@ -39,10 +39,10 @@ static uiCombobox *finishNewCombobox(OSTHING OSARG)
|
|||
|
||||
uiCombobox *uiNewCombobox(void)
|
||||
{
|
||||
return finishNewCombobox(OSARGNONEDITABLE);
|
||||
return finishNewCombobox(gtk_combo_box_text_new);
|
||||
}
|
||||
|
||||
uiCombobox *uiNewEditableCombobox(void)
|
||||
{
|
||||
return finishNewCombobox(OSARGEDITABLE);
|
||||
return finishNewCombobox(gtk_combo_box_text_new_with_entry);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4
|
||||
#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4
|
||||
#include <gtk/gtk.h>
|
||||
#include "../ui.h"
|
||||
#include "../out/ui.h"
|
||||
#include "../ui_unix.h"
|
||||
#include "../uipriv.h"
|
||||
|
||||
|
|
|
@ -49,8 +49,8 @@ static void windowCommitDestroy(uiControl *c)
|
|||
gtk_widget_hide(w->widget);
|
||||
// now destroy the bin
|
||||
// we need to remove the bin from its parent first
|
||||
uiBinRemoveOSParent(w->bin);
|
||||
uiControlDestroy(uiControl(w->bin));
|
||||
//TODO uiBinRemoveOSParent(w->bin);
|
||||
//TODO uiControlDestroy(uiControl(w->bin));
|
||||
// now destroy the menus, if any
|
||||
if (w->menubar != NULL)
|
||||
freeMenubar(w->menubar);
|
||||
|
@ -171,14 +171,14 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)
|
|||
gtk_container_add(w->vboxContainer, w->menubar);
|
||||
}
|
||||
|
||||
w->bin = newBin();
|
||||
/*TODO w->bin = newBin();
|
||||
binWidget = GTK_WIDGET(uiControlHandle(uiControl(w->bin)));
|
||||
gtk_widget_set_hexpand(binWidget, TRUE);
|
||||
gtk_widget_set_halign(binWidget, GTK_ALIGN_FILL);
|
||||
gtk_widget_set_vexpand(binWidget, TRUE);
|
||||
gtk_widget_set_valign(binWidget, GTK_ALIGN_FILL);
|
||||
uiBinSetOSParent(w->bin, (uintptr_t) (w->vboxContainer));
|
||||
|
||||
*/
|
||||
// show everything in the vbox, but not the GtkWindow itself
|
||||
gtk_widget_show_all(w->vboxWidget);
|
||||
|
||||
|
|
Loading…
Reference in New Issue