patch from Bruno Boaventura de Oliveira to fix a compiler warning about

2006-09-12  Elijah Newren  <newren gmail com>

	* src/theme.c (meta_gtk_arrow_from_string,
	meta_gtk_arrow_to_string): patch from Bruno Boaventura de Oliveira
	to fix a compiler warning about not handling GTK_ARRROW_NONE.
	#355490.
This commit is contained in:
Elijah Newren 2006-09-13 03:14:16 +00:00 committed by Elijah Newren
parent dc5dff7e9a
commit 3fac671fc8
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,11 @@
2006-09-11 Elijah Newren <newren gmail com> 2006-09-12 Elijah Newren <newren gmail com>
* src/theme.c (meta_gtk_arrow_from_string,
meta_gtk_arrow_to_string): patch from Bruno Boaventura de Oliveira
to fix a compiler warning about not handling GTK_ARRROW_NONE.
#355490.
2006-09-12 Elijah Newren <newren gmail com>
* src/compositor.c: Patch from Bruno Boaventura de Oliveira * src/compositor.c: Patch from Bruno Boaventura de Oliveira
Lacerda to fix warnings about unused function and global var. Lacerda to fix warnings about unused function and global var.

View File

@ -5598,6 +5598,8 @@ meta_gtk_arrow_from_string (const char *str)
return GTK_ARROW_LEFT; return GTK_ARROW_LEFT;
else if (strcmp ("right", str) == 0) else if (strcmp ("right", str) == 0)
return GTK_ARROW_RIGHT; return GTK_ARROW_RIGHT;
else if (strcmp ("none", str) == 0)
return GTK_ARROW_NONE;
else else
return -1; return -1;
} }
@ -5615,6 +5617,8 @@ meta_gtk_arrow_to_string (GtkArrowType arrow)
return "left"; return "left";
case GTK_ARROW_RIGHT: case GTK_ARROW_RIGHT:
return "right"; return "right";
case GTK_ARROW_NONE:
return "none";
} }
return "<unknown>"; return "<unknown>";