theme-viewer.c File Reference

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 MetaThemeglobal_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 Documentation

#define _ (  )     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

Definition at line 36 of file theme-viewer.c.

#define NO_ERROR   -1

Definition at line 1048 of file theme-viewer.c.

Referenced by run_position_expression_tests().


Enumeration Type Documentation

anonymous enum

Enumerator:
FONT_SIZE_SMALL 
FONT_SIZE_NORMAL 
FONT_SIZE_LARGE 
FONT_SIZE_LAST 

Definition at line 54 of file theme-viewer.c.


Function Documentation

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]

Definition at line 342 of file theme-viewer.c.

References _, and FALSE.

Referenced by get_window_contents().

static PangoLayout* create_title_layout ( GtkWidget *  widget  )  [static]

Definition at line 917 of file theme-viewer.c.

References _.

Referenced by run_theme_benchmark().

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]

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]

static MetaFrameFlags get_window_flags ( MetaFrameType  type  )  [static]

static void init_layouts ( void   )  [static]

int main ( int  argc,
char **  argv 
)

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]

static GtkWidget* previews_of_button_layouts ( void   )  [static]

static void run_position_expression_tests ( void   )  [static]

static void run_theme_benchmark ( void   )  [static]

static void update_spacings ( GtkWidget *  vbox,
GtkWidget *  action_area 
) [static]

Definition at line 207 of file theme-viewer.c.

Referenced by dialog_contents().

static GtkWidget* utility_contents ( void   )  [static]

Definition at line 268 of file theme-viewer.c.

References FALSE.

Referenced by get_window_contents().


Variable Documentation

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().

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().


Generated on Sat Aug 23 22:04:23 2008 for metacity by  doxygen 1.5.5