[mutter/wip/cairo: 14/15] theme: Make certain implementation functions internal to theme.c



commit 29638e567811992e2c2f6ac599cfefb1e124e314
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Mar 11 17:49:08 2012 -0400

    theme: Make certain implementation functions internal to theme.c
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662962

 src/ui/theme-private.h |   19 -------------------
 src/ui/theme.c         |   10 ++++++++--
 2 files changed, 8 insertions(+), 21 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index f5b95ce..50f150a 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -972,12 +972,6 @@ void           meta_draw_op_free (MetaDrawOp          *op);
 MetaDrawOpList* meta_draw_op_list_new   (int                   n_preallocs);
 void            meta_draw_op_list_ref   (MetaDrawOpList       *op_list);
 void            meta_draw_op_list_unref (MetaDrawOpList       *op_list);
-void            meta_draw_op_list_draw_with_style  (const MetaDrawOpList *op_list,
-                                                    GtkStyleContext      *style_gtk,
-                                                    GtkWidget            *widget,
-                                                    cairo_t              *cr,
-                                                    const MetaDrawInfo   *info,
-                                                    MetaRectangle         rect);
 void           meta_draw_op_list_append (MetaDrawOpList       *op_list,
                                          MetaDrawOp           *op);
 gboolean       meta_draw_op_list_validate (MetaDrawOpList    *op_list,
@@ -1007,19 +1001,6 @@ MetaFrameStyle* meta_frame_style_new   (MetaFrameStyle *parent);
 void            meta_frame_style_ref   (MetaFrameStyle *style);
 void            meta_frame_style_unref (MetaFrameStyle *style);
 
-void meta_frame_style_draw_with_style (MetaFrameStyle          *style,
-                                       GtkStyleContext         *style_gtk,
-                                       GtkWidget               *widget,
-                                       cairo_t                 *cr,
-                                       const MetaFrameGeometry *fgeom,
-                                       int                      client_width,
-                                       int                      client_height,
-                                       PangoLayout             *title_layout,
-                                       int                      text_height,
-                                       MetaButtonState          button_states[META_BUTTON_TYPE_LAST],
-                                       GdkPixbuf               *mini_icon,
-                                       GdkPixbuf               *icon);
-
 
 gboolean       meta_frame_style_validate (MetaFrameStyle    *style,
                                           guint              current_theme_version,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index b7b5c42..e8dcde1 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3154,6 +3154,12 @@ fill_env (MetaPositionExprEnv *env,
   env->theme = meta_current_theme;
 }
 
+static void
+meta_draw_op_list_draw_with_style  (const MetaDrawOpList *op_list,
+                                    GtkStyleContext      *style_gtk,
+                                    cairo_t              *cr,
+                                    const MetaDrawInfo   *info,
+                                    MetaRectangle         rect);
 
 /* This code was originally rendering anti-aliased using X primitives, and
  * now has been switched to draw anti-aliased using cairo. In general, the
@@ -3656,7 +3662,7 @@ meta_draw_op_list_unref (MetaDrawOpList *op_list)
     }
 }
 
-void
+static void
 meta_draw_op_list_draw_with_style  (const MetaDrawOpList *op_list,
                                     GtkStyleContext      *style_gtk,
                                     GtkWidget            *widget,
@@ -4082,7 +4088,7 @@ button_rect (MetaButtonType           type,
     }
 }
 
-void
+static void
 meta_frame_style_draw_with_style (MetaFrameStyle          *style,
                                   GtkStyleContext         *style_gtk,
                                   GtkWidget               *widget,



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