Skip to content

Commit

Permalink
Sui(fix): use object param spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Dec 5, 2019
1 parent b0eb23e commit 675649d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sui/sui_chat_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void sui_chat_buffer_set_property(GObject *object, guint property_id,

switch (property_id){
case PROP_SERVER_BUFFER:
self->server_buffer = SUI_SERVER_BUFFER(g_value_get_pointer(value));
self->server_buffer = SUI_SERVER_BUFFER(g_value_get_object(value));
break;
default:
/* We don't have any other property... */
Expand All @@ -70,7 +70,7 @@ static void sui_chat_buffer_get_property(GObject *object, guint property_id,

switch (property_id){
case PROP_SERVER_BUFFER:
g_value_set_pointer(value,
g_value_set_object(value,
sui_chat_buffer_get_server_buffer(self));
break;
default:
Expand Down Expand Up @@ -203,9 +203,10 @@ static void sui_chat_buffer_class_init(SuiChatBufferClass *class){

/* Install properties */
obj_properties[PROP_SERVER_BUFFER] =
g_param_spec_pointer("server-buffer", // TODO: use spec gobject
g_param_spec_object("server-buffer",
"Server Buffer",
"Server buffer of buffer",
SUI_TYPE_SERVER_BUFFER,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);

g_object_class_install_properties(object_class,
Expand Down

0 comments on commit 675649d

Please sign in to comment.