[geany/geany-plugins] a62cfa: markdown: Fix a few trivial warnings in the plugin code

Colomban Wendling git-noreply at xxxxx
Mon Aug 27 14:57:01 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 27 Aug 2012 14:57:01
Commit:      a62cfae4e01071378fb2c858b5200e0ef76d4fb7
             https://github.com/geany/geany-plugins/commit/a62cfae4e01071378fb2c858b5200e0ef76d4fb7

Log Message:
-----------
markdown: Fix a few trivial warnings in the plugin code


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

Modified: markdown/src/conf.c
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -83,7 +83,7 @@ struct _MarkdownConfigPrivate
   gchar filename[PATH_MAX];
   GKeyFile *kf;
   guint handle;
-  guint dlg_handle;
+  gulong dlg_handle;
   gboolean initialized;
   gchar *tmpl_text;
   gsize tmpl_text_len;
@@ -433,7 +433,7 @@ static gboolean on_idle_timeout(MarkdownConfig *conf)
 
   contents = g_key_file_to_data(conf->priv->kf, &len, &error);
 
-  //g_debug("Saving: %s\n%s", conf->priv->filename, contents);
+  /*g_debug("Saving: %s\n%s", conf->priv->filename, contents);*/
 
   if (error) {
     g_warning("Error getting config data as string: %s", error->message);
@@ -452,7 +452,7 @@ static gboolean on_idle_timeout(MarkdownConfig *conf)
   return success;
 }
 
-gchar *
+static gchar *
 color_button_get_color(GtkColorButton *color_button)
 {
   GdkColor color;


Modified: markdown/src/viewer.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -39,9 +39,9 @@ enum
 struct _MarkdownViewerPrivate
 {
   MarkdownConfig *conf;
-  guint load_handle;
+  gulong load_handle;
   guint update_handle;
-  guint prop_handle;
+  gulong prop_handle;
   GString *text;
   gchar enc[MD_ENC_MAX];
   gdouble vscroll_pos;


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list