Display retrieved comment only as placeholder
This commit is contained in:
parent
0cae59aeb1
commit
40aba2eb44
@ -179,7 +179,11 @@ static void yacos_cart_item_fetch_meta_cb (SoupSession *session, SoupMessage *ms
|
||||
|
||||
json_reader_read_member (reader, "comment");
|
||||
temp = json_reader_get_string_value (reader);
|
||||
gtk_entry_set_text(GTK_ENTRY(self->priv.entry_comment), temp);
|
||||
if (*temp)
|
||||
gtk_entry_set_placeholder_text(GTK_ENTRY(self->priv.entry_comment), temp);
|
||||
else
|
||||
gtk_entry_set_placeholder_text(GTK_ENTRY(self->priv.entry_comment),
|
||||
"Click here to add a comment.");
|
||||
json_reader_end_member (reader);
|
||||
|
||||
g_object_unref (reader);
|
||||
|
Loading…
Reference in New Issue
Block a user