[geany/geany-plugins] 5a80a2: markdown: Fix build with at least GObject 2.24

Colomban Wendling git-noreply at xxxxx
Wed Dec 17 22:48:37 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Wed, 17 Dec 2014 22:48:37 UTC
Commit:      5a80a29b83d816d5d022839cccf85fd4634c426e
             https://github.com/geany/geany-plugins/commit/5a80a29b83d816d5d022839cccf85fd4634c426e

Log Message:
-----------
markdown: Fix build with at least GObject 2.24


Modified Paths:
--------------
    markdown/src/viewer.c

Modified: markdown/src/viewer.c
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -123,6 +123,7 @@ static void
 markdown_viewer_class_init(MarkdownViewerClass *klass)
 {
   GObjectClass *g_object_class;
+  guint i;
 
   g_object_class = G_OBJECT_CLASS(klass);
   g_object_class->set_property = markdown_viewer_set_property;
@@ -138,7 +139,9 @@ markdown_viewer_class_init(MarkdownViewerClass *klass)
   viewer_props[PROP_ENCODING] = g_param_spec_string("encoding", "TextEncoding",
     "The encoding of the Markdown text", "UTF-8", G_PARAM_READWRITE);
 
-  g_object_class_install_properties(g_object_class, N_PROPERTIES, viewer_props);
+  for (i = 1 /* skip PROP_0 */; i < N_PROPERTIES; i++) {
+    g_object_class_install_property(g_object_class, i, viewer_props[i]);
+  }
 }
 
 static void



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list