Kaydet (Commit) d535a783 authored tarafından Caolán McNamara's avatar Caolán McNamara

draw menu bg with gtk theme

Change-Id: Ia525130e8c378b784b7ee8439153daa1f2a43283
üst ca3a68c7
...@@ -835,7 +835,6 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -835,7 +835,6 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
} }
break; break;
case CTRL_MENU_POPUP: case CTRL_MENU_POPUP:
/* FIXME: missing ENTIRE_CONTROL, as it doesn't seem to work */
switch(nPart) switch(nPart)
{ {
case PART_MENU_ITEM_CHECK_MARK: case PART_MENU_ITEM_CHECK_MARK:
...@@ -857,6 +856,10 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -857,6 +856,10 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
context = mpMenuStyle; context = mpMenuStyle;
renderType = RENDER_ARROW; renderType = RENDER_ARROW;
break; break;
case PART_ENTIRE_CONTROL:
context = mpMenuStyle;
renderType = RENDER_BACKGROUND;
break;
} }
break; break;
case CTRL_TOOLBAR: case CTRL_TOOLBAR:
...@@ -1419,9 +1422,13 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP ...@@ -1419,9 +1422,13 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
( (nPart == PART_DRAW_BACKGROUND_HORZ) || (nPart == PART_DRAW_BACKGROUND_VERT) || ( (nPart == PART_DRAW_BACKGROUND_HORZ) || (nPart == PART_DRAW_BACKGROUND_VERT) ||
(nPart == PART_ENTIRE_CONTROL) || (nPart == HAS_THREE_BUTTONS))) || (nPart == PART_ENTIRE_CONTROL) || (nPart == HAS_THREE_BUTTONS))) ||
(nType == CTRL_MENU_POPUP && (nType == CTRL_MENU_POPUP &&
((nPart == PART_MENU_ITEM_CHECK_MARK) || (nPart == PART_MENU_ITEM_RADIO_MARK) || ( (nPart==PART_ENTIRE_CONTROL) ||
(nPart == PART_MENU_SEPARATOR) || (nPart == PART_MENU_SUBMENU_ARROW)))) (nPart == PART_MENU_ITEM_CHECK_MARK) || (nPart == PART_MENU_ITEM_RADIO_MARK) ||
return true; (nPart == PART_MENU_SEPARATOR) || (nPart == PART_MENU_SUBMENU_ARROW) ))
)
{
return true;
}
printf( "Unhandled is native supported for Type: %d, Part %d\n", printf( "Unhandled is native supported for Type: %d, Part %d\n",
(int)nType, (int)nPart ); (int)nType, (int)nPart );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment