mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
More code formatting
This commit is contained in:
parent
bce3094486
commit
0727b51dc2
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user