[mutter] theme: Remove meta_theme_draw_frame_by_name



commit f3bb16f3018f8fd90b60e305740a1b62d5164e44
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Sep 14 19:04:04 2011 -0400

    theme: Remove meta_theme_draw_frame_by_name
    
    It was unused, and isn't really useful.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657795

 src/ui/theme-private.h |   14 --------------
 src/ui/theme.c         |   43 -------------------------------------------
 2 files changed, 0 insertions(+), 57 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index 1128d34..de993cb 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -1085,20 +1085,6 @@ void meta_theme_draw_frame (MetaTheme              *theme,
                             GdkPixbuf              *mini_icon,
                             GdkPixbuf              *icon);
 
-void meta_theme_draw_frame_by_name (MetaTheme              *theme,
-                                    GtkWidget              *widget,
-                                    cairo_t                *cr,
-                                    const gchar             *style_name,
-                                    MetaFrameFlags          flags,
-                                    int                     client_width,
-                                    int                     client_height,
-                                    PangoLayout            *title_layout,
-                                    int                     text_height,
-                                    const MetaButtonLayout *button_layout,
-                                    MetaButtonState         button_states[META_BUTTON_TYPE_LAST],
-                                    GdkPixbuf              *mini_icon,
-                                    GdkPixbuf              *icon);
-
 void meta_theme_draw_frame_with_style (MetaTheme              *theme,
                                        GtkStyleContext        *style_gtk,
                                        GtkWidget              *widget,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index d240ef7..c8b5fc2 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5560,49 +5560,6 @@ meta_theme_draw_frame (MetaTheme              *theme,
 }
 
 void
-meta_theme_draw_frame_by_name (MetaTheme              *theme,
-                               GtkWidget              *widget,
-                               cairo_t                *cr,
-                               const gchar             *style_name,
-                               MetaFrameFlags          flags,
-                               int                     client_width,
-                               int                     client_height,
-                               PangoLayout            *title_layout,
-                               int                     text_height,
-                               const MetaButtonLayout *button_layout,
-                               MetaButtonState         button_states[META_BUTTON_TYPE_LAST],
-                               GdkPixbuf              *mini_icon,
-                               GdkPixbuf              *icon)
-{
-  MetaFrameGeometry fgeom;
-  MetaFrameStyle *style;
-
-  style = meta_theme_lookup_style (theme, style_name);
-  
-  /* Parser is not supposed to allow this currently */
-  if (style == NULL)
-    return;
-  
-  meta_frame_layout_calc_geometry (style->layout,
-                                   text_height,
-                                   flags,
-                                   client_width, client_height,
-                                   button_layout,
-                                   &fgeom,
-                                   theme);  
-
-  meta_frame_style_draw (style,
-                         widget,
-                         cr,
-                         &fgeom,
-                         client_width, client_height,
-                         title_layout,
-                         text_height,
-                         button_states,
-                         mini_icon, icon);
-}
-
-void
 meta_theme_get_frame_borders (MetaTheme        *theme,
                               MetaFrameType     type,
                               int               text_height,



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