[metacity] libmetacity: move scale_border function



commit 643ce3e12598e7347f23bd9116b82d6609249b95
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Mar 23 20:39:16 2016 +0200

    libmetacity: move scale_border function

 libmetacity/meta-theme-gtk.c          |   10 ----------
 libmetacity/meta-theme-impl-private.h |    4 ++++
 libmetacity/meta-theme-impl.c         |   10 ++++++++++
 3 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/libmetacity/meta-theme-gtk.c b/libmetacity/meta-theme-gtk.c
index ac4373e..11e5664 100644
--- a/libmetacity/meta-theme-gtk.c
+++ b/libmetacity/meta-theme-gtk.c
@@ -152,16 +152,6 @@ get_min_size (GtkStyleContext *style,
 }
 
 static void
-scale_border (GtkBorder *border,
-              double     factor)
-{
-  border->left *= factor;
-  border->right *= factor;
-  border->top *= factor;
-  border->bottom *= factor;
-}
-
-static void
 get_shadow_extents (GtkStyleContext *style,
                     GtkBorder       *border)
 {
diff --git a/libmetacity/meta-theme-impl-private.h b/libmetacity/meta-theme-impl-private.h
index 50bced5..e31a948 100644
--- a/libmetacity/meta-theme-impl-private.h
+++ b/libmetacity/meta-theme-impl-private.h
@@ -94,6 +94,10 @@ MetaButtonState    map_button_state              (MetaButtonType           butto
                                                   gint                     middle_bg_offset,
                                                   MetaButtonState          
button_states[META_BUTTON_TYPE_LAST]);
 
+G_GNUC_INTERNAL
+void               scale_border                  (GtkBorder               *border,
+                                                  double                   factor);
+
 G_END_DECLS
 
 #endif
diff --git a/libmetacity/meta-theme-impl.c b/libmetacity/meta-theme-impl.c
index f9f7075..b16d5ea 100644
--- a/libmetacity/meta-theme-impl.c
+++ b/libmetacity/meta-theme-impl.c
@@ -298,3 +298,13 @@ map_button_state (MetaButtonType           button_type,
 
   return META_BUTTON_STATE_LAST;
 }
+
+void
+scale_border (GtkBorder *border,
+              double     factor)
+{
+  border->left *= factor;
+  border->right *= factor;
+  border->top *= factor;
+  border->bottom *= factor;
+}


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