diff options
-rw-r--r-- | src/tab-page.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index 75f5283..0413122 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -246,7 +246,7 @@ get_property(GObject *object, guint property_id, GValue *value, g_value_set_uint(value, tab_page->create_type); break; case PROP_WINDOW: - g_value_set_pointer(value, tab_page->window); + g_value_set_object(value, tab_page->window); break; case PROP_URI: g_value_set_string(value, tab_page->uri); @@ -274,7 +274,7 @@ set_property(GObject *object, guint property_id, const GValue *value, tab_page->create_type = g_value_get_uint(value); break; case PROP_WINDOW: - tab_page->window = g_value_get_pointer(value); + tab_page->window = g_value_get_object(value); break; case PROP_URI: g_free(tab_page->uri); @@ -307,10 +307,11 @@ mq_tab_page_class_init(MqTabPageClass *klass) CREATE_NONE, N_CREATE_TYPES, CREATE_NONE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); - obj_properties[PROP_WINDOW] = g_param_spec_pointer( + obj_properties[PROP_WINDOW] = g_param_spec_object( "window", "MqWindow", "The parent MqWindow instance", + MQ_TYPE_WINDOW, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); obj_properties[PROP_URI] = g_param_spec_string( |