all: tilda-window tilda-terminal
tilda-window: tilda-window.o
- $(GCC) $(CFLAGS) $^ -o $@ $(GOBJ_LIBS)
+ $(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS)
tilda-window.o: tilda-window.c tilda-window.h
- $(GCC) $(CFLAGS) -c -o $@ $< $(GOBJ_CFLAGS)
+ $(GCC) $(CFLAGS) -c -o $@ $< $(ALL_CFLAGS)
tilda-terminal: tilda-terminal.o
$(GCC) $(CFLAGS) $^ -o $@ $(ALL_LIBS)
self->dispose_has_run = FALSE;
/* Initialize all properties */
- self->number = 0;
+ self->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ self->terms = g_ptr_array_new ();
+
+ self->number = 0xdeadbeef;
}
static void
/* Initialize the GObject type system */
g_type_init ();
+ gtk_init (&argc, &argv);
tw = g_object_new (TILDA_TYPE_WINDOW, "number", 10, NULL);
g_object_get (G_OBJECT (tw), "number", &test_number, NULL);
}
/* vim: set ts=4 sts=4 sw=4 noet tw=112: */
-
tilda_window_finalize()
*/
-#include <glib-object.h>
+#include <glib.h>
+#include <gtk/gtk.h>
#define TILDA_TYPE_WINDOW (tilda_window_get_type())
#define TILDA_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TILDA_TYPE_WINDOW, TildaWindow))
gboolean dispose_has_run;
/* Instance Members */
+ GtkWidget *window;
+ GPtrArray *terms;
+
gint number;
};