[Github-comments] [geany/geany] Use GResource to load GtkBuilder XML UI file (#1703)

Matthew Brush notifications at xxxxx
Wed Jan 24 00:41:05 UTC 2018


codebrainz commented on this pull request.



> @@ -98,6 +98,26 @@ G_BEGIN_DECLS
 #endif
 
 
+#if !GTK_CHECK_VERSION(3, 4, 0)
+static inline guint gtkcompat_builder_add_from_resource(GtkBuilder *builder,
+	const gchar *resource_path, GError **error)
+{
+	GBytes *bytes = g_resources_lookup_data(resource_path,
+		G_RESOURCE_LOOKUP_FLAGS_NONE, error);
+	if (bytes == NULL)

That should be done [in the calling code](https://github.com/geany/geany/pull/1703/files#diff-4bbd8d1b91370dfb89a7e350b9828785R2449); this function is just a compat wrapper around `gtk_builder_add_from_resource` and so is meant to match its semantics.

-- 
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/pull/1703#discussion_r163425176
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180124/b1ab9e6c/attachment-0001.html>


More information about the Github-comments mailing list