--- a/gntwm.c Wed Apr 03 20:44:30 2019 -0400
+++ b/gntwm.c Wed Apr 03 20:58:39 2019 -0400
@@ -104,6 +104,8 @@
static gboolean started_python = FALSE;
+G_DEFINE_TYPE(GntWM, gnt_wm, GNT_TYPE_BINDABLE) g_list_bring_to_front(GList *list, gpointer data)
@@ -380,9 +382,8 @@
-gnt_wm_init(GTypeInstance *instance, gpointer class)
- GntWM *wm = GNT_WM(instance);
wm->name_places = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
wm->title_places = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
@@ -1584,33 +1585,6 @@
/******************************************************************************
*****************************************************************************/
- static const GTypeInfo info = {
- NULL, /* base_finalize */
- (GClassInitFunc)gnt_wm_class_init,
- gnt_wm_init, /* instance_init */
- type = g_type_register_static(GNT_TYPE_BINDABLE,
gnt_wm_add_workspace(GntWM *wm, GntWS *ws)
--- a/gntws.c Wed Apr 03 20:44:30 2019 -0400
+++ b/gntws.c Wed Apr 03 20:58:39 2019 -0400
@@ -29,6 +29,11 @@
+G_DEFINE_TYPE(GntWS, gnt_ws, GNT_TYPE_BINDABLE) +/****************************************************************************** + *****************************************************************************/ widget_hide(gpointer data, gpointer nodes)
@@ -51,6 +56,25 @@
+/****************************************************************************** + * GObject Implementation + *****************************************************************************/ +gnt_ws_class_init(G_GNUC_UNUSED GntWSClass *klass) +/****************************************************************************** + * GObject Implementation + *****************************************************************************/ gnt_ws_draw_taskbar(GntWS *ws, gboolean reposition)
@@ -105,15 +129,6 @@
-gnt_ws_init(GTypeInstance *instance, gpointer class)
- GntWS *ws = GNT_WS(instance);
void gnt_ws_add_widget(GntWS *ws, GntWidget* wid)
@@ -161,34 +176,6 @@
widget_show(l->data, nodes);
- static const GTypeInfo info = {
- NULL, /* base_finalize */
- /*(GClassInitFunc)gnt_ws_class_init,*/
- gnt_ws_init, /* instance_init */
- type = g_type_register_static(GNT_TYPE_BINDABLE,
GntWS *gnt_ws_new(const char *name)
GntWS *ws = GNT_WS(g_object_new(GNT_TYPE_WS, NULL));