From f3bb16f3018f8fd90b60e305740a1b62d5164e44 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 14 Sep 2011 19:04:04 -0400 Subject: [PATCH] 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, 57 deletions(-) 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,