[gnome-packagekit/gnome-3-14] Don't use the gtk namespace for local functions



commit 6712470342cbc8bda9994271d502d7c9158e7920
Author: Richard Hughes <richard hughsie com>
Date:   Thu Dec 18 15:37:41 2014 +0000

    Don't use the gtk namespace for local functions
    
    In my defence, I gave up a long time ago that this would be added to GTK+...

 src/gpk-common.c        |    4 ++--
 src/gpk-common.h        |    2 +-
 src/gpk-update-viewer.c |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gpk-common.c b/src/gpk-common.c
index 2783c61..ec65cae 100644
--- a/src/gpk-common.c
+++ b/src/gpk-common.c
@@ -90,12 +90,12 @@ pk_strv_to_ptr_array (gchar **array)
 }
 
 /**
- * gtk_text_buffer_insert_markup:
+ * _gtk_text_buffer_insert_markup:
  * @buffer: a #GtkTextBuffer
  * @markup: nul-terminated UTF-8 text with pango markup to insert
  **/
 void
-gtk_text_buffer_insert_markup (GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *markup)
+_gtk_text_buffer_insert_markup (GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *markup)
 {
        PangoAttrIterator *paiter;
        PangoAttrList *attrlist;
diff --git a/src/gpk-common.h b/src/gpk-common.h
index 0f57386..ebde511 100644
--- a/src/gpk-common.h
+++ b/src/gpk-common.h
@@ -61,7 +61,7 @@ G_BEGIN_DECLS
 /* any status that is slower than this will not be shown in the UI */
 #define GPK_UI_STATUS_SHOW_DELAY               750 /* ms */
 
-void            gtk_text_buffer_insert_markup          (GtkTextBuffer  *buffer,
+void            _gtk_text_buffer_insert_markup         (GtkTextBuffer  *buffer,
                                                         GtkTextIter    *iter,
                                                         const gchar    *markup);
 gchar          *gpk_package_id_format_twoline          (GtkStyleContext *style,
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index aec60cb..536087a 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -2012,7 +2012,7 @@ gpk_update_viewer_populate_details (PkUpdateDetail *item)
                /* convert the bullets */
                line = egg_markdown_parse (markdown, update_text);
                if (!egg_strzero (line)) {
-                       gtk_text_buffer_insert_markup (text_buffer, &iter, line);
+                       _gtk_text_buffer_insert_markup (text_buffer, &iter, line);
                        gtk_text_buffer_insert (text_buffer, &iter, "\n\n", -1);
                        has_update_text = TRUE;
                }
@@ -2097,7 +2097,7 @@ gpk_update_viewer_populate_details (PkUpdateDetail *item)
                if (!egg_strzero (line)) {
                        /* TRANSLATORS: this is a ChangeLog */
                        line2 = g_strdup_printf ("%s\n%s\n", _("The developer logs will be shown as no 
description is available for this update:"), line);
-                       gtk_text_buffer_insert_markup (text_buffer, &iter, line2);
+                       _gtk_text_buffer_insert_markup (text_buffer, &iter, line2);
                        g_free (line2);
                }
                g_free (line);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]