diff --git a/ChangeLog b/ChangeLog index 55b82341f..1332decdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-08-04 Havoc Pennington + + * src/frames.c (meta_frames_paint_to_drawable): init button + states for the button backgrounds + + * src/themes/Atlanta/metacity-theme-1.xml: adapt to work correctly + with button repositioning + 2002-08-04 Havoc Pennington * src/frames.c (meta_frames_button_press_event): raise/focus diff --git a/src/frames.c b/src/frames.c index 18ca60911..f3f43d70d 100644 --- a/src/frames.c +++ b/src/frames.c @@ -1573,6 +1573,20 @@ meta_frames_paint_to_drawable (MetaFrames *frames, break; } } + + /* Map button function states to button position states */ + button_states[META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND] = + button_states[META_BUTTON_TYPE_MENU]; + button_states[META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND] = + META_BUTTON_STATE_NORMAL; + button_states[META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND] = + META_BUTTON_STATE_NORMAL; + button_states[META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND] = + button_states[META_BUTTON_TYPE_MINIMIZE]; + button_states[META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND] = + button_states[META_BUTTON_TYPE_MAXIMIZE]; + button_states[META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND] = + button_states[META_BUTTON_TYPE_CLOSE]; flags = meta_core_get_frame_flags (gdk_display, frame->xwindow); type = meta_core_get_frame_type (gdk_display, frame->xwindow); diff --git a/src/themes/Atlanta/metacity-theme-1.xml b/src/themes/Atlanta/metacity-theme-1.xml index 8d9fa5053..2dc29ae8e 100644 --- a/src/themes/Atlanta/metacity-theme-1.xml +++ b/src/themes/Atlanta/metacity-theme-1.xml @@ -80,7 +80,6 @@ - @@ -94,7 +93,6 @@ - @@ -106,7 +104,6 @@ - @@ -131,7 +128,6 @@ - @@ -145,7 +141,6 @@ - @@ -252,6 +247,13 @@ +