More code formatting

This commit is contained in:
Raymond Penners 2003-10-22 18:41:02 +00:00
parent bce3094486
commit 0727b51dc2
3 changed files with 9 additions and 9 deletions

View File

@ -1192,7 +1192,7 @@ draw_box (GtkStyle *style,
}
else if (detail && strcmp (detail, "menuitem") == 0) {
shadow_type = GTK_SHADOW_NONE;
if (xp_theme_draw (window, XP_THEME_ELEMENT_MENUITEM, style, x, y, width, height, state_type, area))
if (xp_theme_draw (window, XP_THEME_ELEMENT_MENU_ITEM, style, x, y, width, height, state_type, area))
{
return;
}
@ -1562,7 +1562,7 @@ draw_handle (GtkStyle *style,
gint height,
GtkOrientation orientation)
{
if (!GTK_IS_HANDLE_BOX (widget))
if (! GTK_IS_HANDLE_BOX (widget))
{
XpThemeElement hndl;

View File

@ -235,10 +235,10 @@ xp_theme_get_handle_by_element (XpThemeElement element)
klazz = XP_THEME_CLASS_REBAR;
break;
case XP_THEME_ELEMENT_STATUS_GRIPPER:
case XP_THEME_ELEMENT_STATUS_PANE:
klazz = XP_THEME_CLASS_STATUS;
break;
case XP_THEME_ELEMENT_STATUS_GRIPPER:
case XP_THEME_ELEMENT_STATUS_PANE:
klazz = XP_THEME_CLASS_STATUS;
break;
case XP_THEME_ELEMENT_TOOLBAR:
klazz = XP_THEME_CLASS_TOOLBAR;
@ -249,7 +249,7 @@ xp_theme_get_handle_by_element (XpThemeElement element)
klazz = XP_THEME_CLASS_GLOBALS;
break;
case XP_THEME_ELEMENT_MENUITEM:
case XP_THEME_ELEMENT_MENU_ITEM:
case XP_THEME_ELEMENT_MENU_SEPARATOR:
klazz = XP_THEME_CLASS_MENU;
break;
@ -621,7 +621,7 @@ xp_theme_map_gtk_state (XpThemeElement element, GtkStateType state)
#endif
case XP_THEME_ELEMENT_MENUITEM:
case XP_THEME_ELEMENT_MENU_ITEM:
case XP_THEME_ELEMENT_MENU_SEPARATOR:
switch(state) {
case GTK_STATE_SELECTED:

View File

@ -84,7 +84,7 @@ typedef enum
XP_THEME_ELEMENT_REBAR_GRIPPER_V,
XP_THEME_ELEMENT_REBAR_CHEVRON,
XP_THEME_ELEMENT_TOOLBAR,
XP_THEME_ELEMENT_MENUITEM,
XP_THEME_ELEMENT_MENU_ITEM,
XP_THEME_ELEMENT_MENU_SEPARATOR,
XP_THEME_ELEMENT_STATUS_GRIPPER,
XP_THEME_ELEMENT_STATUS_PANE,