diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h index 1128d34b1..de993cb6b 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 d240ef7d2..c8b5fc2d1 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -5559,49 +5559,6 @@ meta_theme_draw_frame (MetaTheme *theme, mini_icon, 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) -{ - 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,