summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-22 21:54:03 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-22 21:54:03 (EDT)
commit71ab7cb63c3af57dd710307deeece92efa870107 (patch)
treebb4fe016273de73d3240de4be30ce9bcd0e04c3b /src
parent04632e23d5e8543170945e293e3e19aec7f02c92 (diff)
downloadmarquee-71ab7cb63c3af57dd710307deeece92efa870107.zip
marquee-71ab7cb63c3af57dd710307deeece92efa870107.tar.gz
marquee-71ab7cb63c3af57dd710307deeece92efa870107.tar.bz2
MqTabPage: Change window property type to object
Diffstat (limited to 'src')
-rw-r--r--src/tab-page.c7
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(