зеркало из https://github.com/mozilla/gecko-dev.git
Added debug/style/widget render mode to the viewer menu in GTK. This allows
the viewer to set whether native or gfx-rendered widgets should be used.
This commit is contained in:
Родитель
b2b14f1298
Коммит
807e05b0b4
|
@ -111,6 +111,10 @@ GtkItemFactoryEntry menu_items[] =
|
|||
{ "/Debug/Style/_Compatibility Mode", nsnull, nsnull, 0, "<Branch>" },
|
||||
{ "/Debug/Style/Compatibility Mode/Nav Quirks", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_NAV_QUIRKS_MODE, nsnull },
|
||||
{ "/Debug/Style/Compatibility Mode/Standard", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_STANDARD_MODE, nsnull },
|
||||
|
||||
{ "/Debug/Style/_Widget Render Mode", nsnull, nsnull, 0, "<Branch>" },
|
||||
{ "/Debug/Style/Widget Render Mode/Native", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_NATIVE_WIDGET_MODE, nsnull },
|
||||
{ "/Debug/Style/Widget Render Mode/Gfx", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_WIDGET_MODE, nsnull },
|
||||
#endif
|
||||
|
||||
{ "/_Tools", nsnull, nsnull, 0, "<Branch>" },
|
||||
|
|
|
@ -61,6 +61,8 @@
|
|||
#define VIEWER_STANDARD_MODE 40043
|
||||
#define VIEWER_TABLE_INSPECTOR 40044
|
||||
#define VIEWER_IMAGE_INSPECTOR 40045
|
||||
#define VIEWER_NATIVE_WIDGET_MODE 40046
|
||||
#define VIEWER_GFX_WIDGET_MODE 40047
|
||||
|
||||
#define VIEWER_SELECT_STYLE_LIST 40500
|
||||
#define VIEWER_SELECT_STYLE_DEFAULT 40501
|
||||
|
|
Загрузка…
Ссылка в новой задаче