How do you set an enum property on a GLib object?

后端 未结 2 500
不思量自难忘°
不思量自难忘° 2021-01-24 02:24

I am trying to set the \"ellipsize\" enum property on a GtkCellRendererText object.

I am trying to use g_object_set_property as follows:

Gtk         


        
2条回答
  •  既然无缘
    2021-01-24 02:44

    Using g_object_set instead works:

    g_object_set (G_OBJECT(renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
    

提交回复
热议问题