[gtk+] headerbar: Remove unused private API



commit 37baeed66e3493767f43100c6c14924aa6f82ff6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Dec 11 01:28:28 2013 -0500

    headerbar: Remove unused private API
    
    Don't remove gtkheaderbarprivate.h, even though it's empty,
    since we'll add more to it soon.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720233

 gtk/gtkheaderbar.c        |   18 +++++++++---------
 gtk/gtkheaderbarprivate.h |    5 -----
 2 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 3fba3c2..9cf7297 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -152,11 +152,11 @@ init_sizing_box (GtkHeaderBar *bar)
   priv->subtitle_sizing_label = w;
 }
 
-GtkWidget *
-_gtk_header_bar_create_title_box (const char *title,
-                                  const char *subtitle,
-                                  GtkWidget **ret_title_label,
-                                  GtkWidget **ret_subtitle_label)
+static GtkWidget *
+create_title_box (const char *title,
+                  const char *subtitle,
+                  GtkWidget **ret_title_label,
+                  GtkWidget **ret_subtitle_label)
 {
   GtkWidget *label_box;
   GtkWidget *title_label;
@@ -372,10 +372,10 @@ construct_label_box (GtkHeaderBar *bar)
 
   g_assert (priv->label_box == NULL);
 
-  priv->label_box = _gtk_header_bar_create_title_box (priv->title,
-                                                      priv->subtitle,
-                                                      &priv->title_label,
-                                                      &priv->subtitle_label);
+  priv->label_box = create_title_box (priv->title,
+                                      priv->subtitle,
+                                      &priv->title_label,
+                                      &priv->subtitle_label);
   gtk_widget_set_parent (priv->label_box, GTK_WIDGET (bar));
 }
 
diff --git a/gtk/gtkheaderbarprivate.h b/gtk/gtkheaderbarprivate.h
index bd75166..a895db9 100644
--- a/gtk/gtkheaderbarprivate.h
+++ b/gtk/gtkheaderbarprivate.h
@@ -20,9 +20,4 @@
 #ifndef __GTK_HEADER_BAR_PRIVATE_H__
 #define __GTK_HEADER_BAR_PRIVATE_H__
 
-GtkWidget * _gtk_header_bar_create_title_box (const char *title,
-                                              const char *subtitle,
-                                              GtkWidget **ret_title_label,
-                                              GtkWidget **ret_subtitle_label);
-
 #endif /* __GTK_HEADER_BAR_PRIVATE_H__ */


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