From d4f916415df1ddf26006bb0567ef3988e7bc1866 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Fri, 17 Aug 2007 15:54:11 +0300 Subject: [PATCH] Removed effectivly unused stuff in gtk-window-decorator --- gtk/window-decorator/gtk-window-decorator.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c index 6c0283e..00ad5b3 100644 --- a/gtk/window-decorator/gtk-window-decorator.c +++ b/gtk/window-decorator/gtk-window-decorator.c @@ -2379,7 +2379,6 @@ draw_switcher_foreground (decor_t *d) { cairo_t *cr; GtkStyle *style; - decor_color_t color; double alpha = SWITCHER_ALPHA / 65535.0; if (!d->pixmap || !d->buffer_pixmap) @@ -2387,10 +2386,6 @@ draw_switcher_foreground (decor_t *d) style = gtk_widget_get_style (style_window); - color.r = style->bg[GTK_STATE_NORMAL].red / 65535.0; - color.g = style->bg[GTK_STATE_NORMAL].green / 65535.0; - color.b = style->bg[GTK_STATE_NORMAL].blue / 65535.0; - cr = gdk_cairo_create (GDK_DRAWABLE (d->buffer_pixmap)); cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); @@ -3166,7 +3161,7 @@ update_window_decoration_name (WnckWindow *win) name = wnck_window_get_name (win); if (name && (name_length = strlen (name))) { - gint w, n_line; + gint w; if (theme_draw_window_decoration != draw_window_decoration) { @@ -3187,8 +3182,6 @@ update_window_decoration_name (WnckWindow *win) pango_layout_set_width (d->layout, w * PANGO_SCALE); pango_layout_set_text (d->layout, name, name_length); - n_line = pango_layout_get_line_count (d->layout); - line = pango_layout_get_line (d->layout, 0); name_length = line->length; @@ -3604,8 +3597,6 @@ update_switcher_window (WnckWindow *win, name = wnck_window_get_name (selected_win); if (name && (name_length = strlen (name))) { - gint n_line; - if (!d->layout) { d->layout = pango_layout_new (pango_context); @@ -3622,8 +3613,6 @@ update_switcher_window (WnckWindow *win, pango_layout_set_width (d->layout, tw * PANGO_SCALE); pango_layout_set_text (d->layout, name, name_length); - n_line = pango_layout_get_line_count (d->layout); - line = pango_layout_get_line (d->layout, 0); name_length = line->length; -- 1.5.2.4