[mutter/wip/cairo: 4/15] theme: Consolidate unused ops
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/cairo: 4/15] theme: Consolidate unused ops
- Date: Mon, 9 Apr 2012 06:41:42 +0000 (UTC)
commit 149720d25d8d02000002c7ccbeead152e3995005
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Oct 28 21:26:23 2011 -0400
theme: Consolidate unused ops
https://bugzilla.gnome.org/show_bug.cgi?id=662962
src/ui/theme.c | 33 ++++++++-------------------------
1 files changed, 8 insertions(+), 25 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 3735c72..64caca8 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -3406,18 +3406,6 @@ draw_op_as_pixbuf (const MetaDrawOp *op,
switch (op->type)
{
- case META_DRAW_LINE:
- break;
-
- case META_DRAW_RECTANGLE:
- break;
-
- case META_DRAW_ARC:
- break;
-
- case META_DRAW_CLIP:
- break;
-
case META_DRAW_TINT:
{
GdkRGBA color;
@@ -3454,9 +3442,6 @@ draw_op_as_pixbuf (const MetaDrawOp *op,
}
break;
- case META_DRAW_GRADIENT:
- break;
-
case META_DRAW_IMAGE:
{
if (op->data.image.colorize_spec)
@@ -3499,12 +3484,6 @@ draw_op_as_pixbuf (const MetaDrawOp *op,
}
break;
}
-
- case META_DRAW_GTK_ARROW:
- case META_DRAW_GTK_BOX:
- case META_DRAW_GTK_VLINE:
- break;
-
case META_DRAW_ICON:
if (info->mini_icon &&
width <= gdk_pixbuf_get_width (info->mini_icon) &&
@@ -3520,12 +3499,16 @@ draw_op_as_pixbuf (const MetaDrawOp *op,
FALSE, FALSE);
break;
+ case META_DRAW_LINE:
+ case META_DRAW_RECTANGLE:
+ case META_DRAW_ARC:
+ case META_DRAW_CLIP:
+ case META_DRAW_GRADIENT:
+ case META_DRAW_GTK_ARROW:
+ case META_DRAW_GTK_BOX:
+ case META_DRAW_GTK_VLINE:
case META_DRAW_TITLE:
- break;
-
case META_DRAW_OP_LIST:
- break;
-
case META_DRAW_TILE:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]