From 31679b4fa80a53141314672ee1b6453891826419 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Sat, 2 Aug 2008 16:37:57 +0100 Subject: Add more uitest stuff. Signed-off-by: Bradley Smith --- ui/ui-cmdwin.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 ui/ui-cmdwin.c (limited to 'ui/ui-cmdwin.c') diff --git a/ui/ui-cmdwin.c b/ui/ui-cmdwin.c new file mode 100644 index 0000000..b743687 --- /dev/null +++ b/ui/ui-cmdwin.c @@ -0,0 +1,45 @@ +/* Copyright (C) 2008 Bradley Smith + * + * GNU Robots, ui-cmdwin.c + * + * GNU Robots is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * GNU Robots is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Robots. If not, see . + */ + +#include "ui-cmdwin.h" + +struct _UICmdWinPrivate +{ + int dummy; +}; + +#define UI_CMDWIN_GET_PRIVATE(obj) \ + G_TYPE_INSTANCE_GET_PRIVATE(obj, UI_TYPE_CMDWIN, UICmdWinPrivate) + +G_DEFINE_TYPE(UICmdWin, ui_cmdwin, GTK_TYPE_VBOX) + +GtkWidget *ui_cmdwin_new(void) +{ + return GTK_WIDGET(g_object_new(UI_TYPE_CMDWIN, NULL)); +} + +static void ui_cmdwin_init(UICmdWin *cmdwin) +{ + gtk_widget_set_size_request(GTK_WIDGET(cmdwin), 40*16,200); +} + +static void ui_cmdwin_class_init(UICmdWinClass *klass) +{ + g_type_class_add_private(G_OBJECT_CLASS(klass), + sizeof(UICmdWinPrivate)); +} -- cgit v1.1