[Github-comments] [geany/geany-plugins] Ported 'Debugger' plugin to GTK+3. (#645)

Colomban Wendling notifications at xxxxx
Wed Feb 14 20:51:31 UTC 2018


b4n commented on this pull request.



>  	
 	cell->enabled = TRUE;
 	cell->condition = NULL;
 	cell->hitscount = 0;
-	
-	cell_renderer->mode = GTK_CELL_RENDERER_MODE_ACTIVATABLE;
+
+	g_value_init(&mode, G_TYPE_ENUM);
+	g_value_set_enum(&mode, GTK_CELL_RENDERER_MODE_ACTIVATABLE);
+	g_object_set_property(G_OBJECT(cell_renderer), "mode", &mode);
+	g_value_unset(&mode);

what about `g_object_set(cell_renderer, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);`? simpler and virtually identical.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/645#pullrequestreview-96652280
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180214/49e3c073/attachment-0001.html>


More information about the Github-comments mailing list