Go to the source code of this file.
Data Structures | |
| struct | PositionExpressionTest |
Defines | |
| #define | _(x) dgettext (GETTEXT_PACKAGE, x) |
| #define | N_(x) x |
| #define | BUTTON_LAYOUT_COMBINATIONS (MAX_BUTTONS_PER_CORNER + 1 + 1) |
| #define | ITERATIONS 100 |
| #define | NO_ERROR -1 |
Enumerations | |
| enum | { FONT_SIZE_SMALL, FONT_SIZE_NORMAL, FONT_SIZE_LARGE, FONT_SIZE_LAST } |
Functions | |
| static void | run_position_expression_tests (void) |
| static void | run_theme_benchmark (void) |
| static GtkWidget * | normal_contents (void) |
| static void | update_spacings (GtkWidget *vbox, GtkWidget *action_area) |
| static GtkWidget * | dialog_contents (void) |
| static GtkWidget * | utility_contents (void) |
| static GtkWidget * | menu_contents (void) |
| static GtkWidget * | border_only_contents (void) |
| static GtkWidget * | get_window_contents (MetaFrameType type, const char **title) |
| static MetaFrameFlags | get_window_flags (MetaFrameType type) |
| static GtkWidget * | preview_collection (int font_size, PangoFontDescription *base_desc) |
| static void | init_layouts (void) |
| static GtkWidget * | previews_of_button_layouts (void) |
| static GtkWidget * | benchmark_summary (void) |
| int | main (int argc, char **argv) |
| static MetaFrameFlags | get_flags (GtkWidget *widget) |
| static int | get_text_height (GtkWidget *widget) |
| static PangoLayout * | create_title_layout (GtkWidget *widget) |
Variables | |
| static MetaTheme * | global_theme = NULL |
| static GtkWidget * | previews [META_FRAME_TYPE_LAST *FONT_SIZE_LAST+BUTTON_LAYOUT_COMBINATIONS] = { NULL, } |
| static double | milliseconds_to_draw_frame = 0.0 |
| static GtkItemFactoryEntry | menu_items [] |
| static MetaButtonLayout | different_layouts [BUTTON_LAYOUT_COMBINATIONS] |
| static const PositionExpressionTest | position_expression_tests [] |
| #define _ | ( | x | ) | dgettext (GETTEXT_PACKAGE, x) |
Definition at line 35 of file theme-viewer.c.
| #define BUTTON_LAYOUT_COMBINATIONS (MAX_BUTTONS_PER_CORNER + 1 + 1) |
Definition at line 49 of file theme-viewer.c.
Referenced by init_layouts(), and previews_of_button_layouts().
| #define ITERATIONS 100 |
Referenced by run_theme_benchmark().
| #define N_ | ( | x | ) | x |
Definition at line 36 of file theme-viewer.c.
| #define NO_ERROR -1 |
| anonymous enum |
Definition at line 54 of file theme-viewer.c.
| static GtkWidget* benchmark_summary | ( | void | ) | [static] |
Definition at line 750 of file theme-viewer.c.
References _, label, and milliseconds_to_draw_frame.
Referenced by main().
| static GtkWidget* border_only_contents | ( | void | ) | [static] |
| static PangoLayout* create_title_layout | ( | GtkWidget * | widget | ) | [static] |
| static GtkWidget* dialog_contents | ( | void | ) | [static] |
Definition at line 216 of file theme-viewer.c.
References _, FALSE, label, TRUE, and update_spacings().
Referenced by get_window_contents().
| static MetaFrameFlags get_flags | ( | GtkWidget * | widget | ) | [static] |
Definition at line 896 of file theme-viewer.c.
References META_FRAME_ALLOWS_DELETE, META_FRAME_ALLOWS_HORIZONTAL_RESIZE, META_FRAME_ALLOWS_MAXIMIZE, META_FRAME_ALLOWS_MENU, META_FRAME_ALLOWS_MINIMIZE, META_FRAME_ALLOWS_MOVE, META_FRAME_ALLOWS_SHADE, META_FRAME_ALLOWS_VERTICAL_RESIZE, and META_FRAME_HAS_FOCUS.
Referenced by run_theme_benchmark().
| static int get_text_height | ( | GtkWidget * | widget | ) | [static] |
Definition at line 910 of file theme-viewer.c.
References meta_pango_font_desc_get_text_height().
Referenced by run_theme_benchmark().
| static GtkWidget* get_window_contents | ( | MetaFrameType | type, | |
| const char ** | title | |||
| ) | [static] |
Definition at line 372 of file theme-viewer.c.
References _, border_only_contents(), dialog_contents(), menu_contents(), META_FRAME_TYPE_BORDER, META_FRAME_TYPE_DIALOG, META_FRAME_TYPE_LAST, META_FRAME_TYPE_MENU, META_FRAME_TYPE_MODAL_DIALOG, META_FRAME_TYPE_NORMAL, META_FRAME_TYPE_UTILITY, normal_contents(), NULL, and utility_contents().
Referenced by preview_collection().
| static MetaFrameFlags get_window_flags | ( | MetaFrameType | type | ) | [static] |
Definition at line 410 of file theme-viewer.c.
References META_FRAME_ALLOWS_DELETE, META_FRAME_ALLOWS_HORIZONTAL_RESIZE, META_FRAME_ALLOWS_MAXIMIZE, META_FRAME_ALLOWS_MENU, META_FRAME_ALLOWS_MINIMIZE, META_FRAME_ALLOWS_MOVE, META_FRAME_ALLOWS_SHADE, META_FRAME_ALLOWS_VERTICAL_RESIZE, META_FRAME_HAS_FOCUS, META_FRAME_TYPE_BORDER, META_FRAME_TYPE_DIALOG, META_FRAME_TYPE_LAST, META_FRAME_TYPE_MENU, META_FRAME_TYPE_MODAL_DIALOG, META_FRAME_TYPE_NORMAL, and META_FRAME_TYPE_UTILITY.
Referenced by preview_collection().
| static void init_layouts | ( | void | ) | [static] |
Definition at line 568 of file theme-viewer.c.
References BUTTON_LAYOUT_COMBINATIONS, _MetaButtonLayout::left_buttons, MAX_BUTTONS_PER_CORNER, META_BUTTON_FUNCTION_CLOSE, META_BUTTON_FUNCTION_LAST, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_MENU, META_BUTTON_FUNCTION_MINIMIZE, and _MetaButtonLayout::right_buttons.
Referenced by previews_of_button_layouts().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 764 of file theme-viewer.c.
References _, benchmark_summary(), FONT_SIZE_LARGE, FONT_SIZE_NORMAL, FONT_SIZE_SMALL, meta_set_debugging(), meta_set_verbose(), meta_theme_load(), _MetaTheme::name, NULL, preview_collection(), previews, previews_of_button_layouts(), _MetaTheme::readable_name, run_position_expression_tests(), run_theme_benchmark(), and TRUE.
| static GtkWidget* menu_contents | ( | void | ) | [static] |
Definition at line 309 of file theme-viewer.c.
References _, FALSE, and NULL.
Referenced by get_window_contents().
| static GtkWidget* normal_contents | ( | void | ) | [static] |
Definition at line 90 of file theme-viewer.c.
References _, FALSE, menu_items, and NULL.
Referenced by get_window_contents().
| static GtkWidget* preview_collection | ( | int | font_size, | |
| PangoFontDescription * | base_desc | |||
| ) | [static] |
Definition at line 457 of file theme-viewer.c.
References FALSE, FONT_SIZE_LARGE, FONT_SIZE_SMALL, get_window_contents(), get_window_flags(), META_FRAME_TYPE_LAST, META_FRAME_TYPE_MENU, META_PREVIEW, meta_preview_new(), meta_preview_set_frame_flags(), meta_preview_set_frame_type(), meta_preview_set_theme(), meta_preview_set_title(), NULL, previews, and TRUE.
Referenced by main().
| static GtkWidget* previews_of_button_layouts | ( | void | ) | [static] |
Definition at line 674 of file theme-viewer.c.
References _, BUTTON_LAYOUT_COMBINATIONS, FALSE, FONT_SIZE_LAST, init_layouts(), META_FRAME_TYPE_LAST, META_PREVIEW, meta_preview_new(), meta_preview_set_button_layout(), meta_preview_set_theme(), meta_preview_set_title(), NULL, previews, and TRUE.
Referenced by main().
| static void run_position_expression_tests | ( | void | ) | [static] |
Definition at line 1195 of file theme-viewer.c.
References _, _MetaPositionExprEnv::bottom_height, PositionExpressionTest::expected_error, PositionExpressionTest::expected_x, PositionExpressionTest::expected_y, PositionExpressionTest::expr, _MetaPositionExprEnv::icon_height, _MetaPositionExprEnv::icon_width, _MetaPositionExprEnv::left_width, meta_parse_position_expression(), meta_rect(), _MetaPositionExprEnv::mini_icon_height, _MetaPositionExprEnv::mini_icon_width, NO_ERROR, NULL, _MetaPositionExprEnv::object_height, _MetaPositionExprEnv::object_width, PositionExpressionTest::rect, _MetaPositionExprEnv::rect, _MetaPositionExprEnv::right_width, _MetaPositionExprEnv::theme, _MetaPositionExprEnv::title_height, _MetaPositionExprEnv::title_width, and _MetaPositionExprEnv::top_height.
Referenced by main().
| static void run_theme_benchmark | ( | void | ) | [static] |
Definition at line 927 of file theme-viewer.c.
References _, button_layout, create_title_layout(), get_flags(), get_text_height(), ITERATIONS, _MetaButtonLayout::left_buttons, MAX_BUTTONS_PER_CORNER, META_BUTTON_FUNCTION_CLOSE, META_BUTTON_FUNCTION_LAST, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_MENU, META_BUTTON_FUNCTION_MINIMIZE, META_BUTTON_STATE_NORMAL, META_BUTTON_TYPE_LAST, META_FRAME_TYPE_NORMAL, meta_preview_get_icon(), meta_preview_get_mini_icon(), meta_theme_draw_frame(), meta_theme_get_frame_borders(), milliseconds_to_draw_frame, NULL, and _MetaButtonLayout::right_buttons.
Referenced by main().
| static void update_spacings | ( | GtkWidget * | vbox, | |
| GtkWidget * | action_area | |||
| ) | [static] |
| static GtkWidget* utility_contents | ( | void | ) | [static] |
Definition at line 268 of file theme-viewer.c.
References FALSE.
Referenced by get_window_contents().
MetaButtonLayout different_layouts[BUTTON_LAYOUT_COMBINATIONS] [static] |
Definition at line 565 of file theme-viewer.c.
MetaTheme* global_theme = NULL [static] |
Definition at line 62 of file theme-viewer.c.
GtkItemFactoryEntry menu_items[] [static] |
Initial value:
{
{ N_("/_Windows"), NULL, NULL, 0, "<Branch>" },
{ N_("/Windows/tearoff"), NULL, NULL, 0, "<Tearoff>" },
{ N_("/Windows/_Dialog"), "<control>d", NULL, 0, NULL },
{ N_("/Windows/_Modal dialog"), NULL, NULL, 0, NULL },
{ N_("/Windows/_Utility"), "<control>u", NULL, 0, NULL },
{ N_("/Windows/_Splashscreen"), "<control>s", NULL, 0, NULL },
{ N_("/Windows/_Top dock"), NULL, NULL, 0, NULL },
{ N_("/Windows/_Bottom dock"), NULL, NULL, 0, NULL },
{ N_("/Windows/_Left dock"), NULL, NULL, 0, NULL },
{ N_("/Windows/_Right dock"), NULL, NULL, 0, NULL },
{ N_("/Windows/_All docks"), NULL, NULL, 0, NULL },
{ N_("/Windows/Des_ktop"), NULL, NULL, 0, NULL }
}
Definition at line 73 of file theme-viewer.c.
double milliseconds_to_draw_frame = 0.0 [static] |
Definition at line 64 of file theme-viewer.c.
Referenced by benchmark_summary(), and run_theme_benchmark().
const PositionExpressionTest position_expression_tests[] [static] |
Definition at line 1050 of file theme-viewer.c.
GtkWidget* previews[META_FRAME_TYPE_LAST *FONT_SIZE_LAST+BUTTON_LAYOUT_COMBINATIONS] = { NULL, } [static] |
Definition at line 63 of file theme-viewer.c.
Referenced by main(), preview_collection(), and previews_of_button_layouts().
1.5.5