Go to the source code of this file.
Defines | |
| #define | DOCK_SIZE 48 |
Enumerations | |
| enum | { DOCK_TOP = 1, DOCK_BOTTOM = 2, DOCK_LEFT = 3, DOCK_RIGHT = 4, DOCK_ALL = 5 } |
Functions | |
| static GtkWidget * | do_appwindow (void) |
| static void | set_gdk_window_struts (GdkWindow *window, int left, int right, int top, int bottom) |
| static void | on_realize_set_struts (GtkWindow *window, gpointer data) |
| static void | set_gtk_window_struts (GtkWidget *window, int left, int right, int top, int bottom) |
| static void | set_gdk_window_type (GdkWindow *window, const char *type) |
| static void | on_realize_set_type (GtkWindow *window, gpointer data) |
| static void | set_gtk_window_type (GtkWindow *window, const char *type) |
| static void | set_gdk_window_border_only (GdkWindow *window) |
| static void | on_realize_set_border_only (GtkWindow *window, gpointer data) |
| static void | set_gtk_window_border_only (GtkWindow *window) |
| int | main (int argc, char **argv) |
| static void | response_cb (GtkDialog *dialog, int response_id, void *data) |
| static void | make_dialog (GtkWidget *parent, int depth) |
| static void | dialog_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | modal_dialog_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | no_parent_dialog_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | utility_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | toolbar_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | menu_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | override_redirect_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | border_only_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static gboolean | focus_in_event_cb (GtkWidget *window, GdkEvent *event, gpointer data) |
| static gboolean | focus_out_event_cb (GtkWidget *window, GdkEvent *event, gpointer data) |
| static GtkWidget * | focus_label (GtkWidget *window) |
| static void | splashscreen_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | make_dock (int type) |
| static void | dock_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | desktop_cb (gpointer callback_data, guint callback_action, GtkWidget *widget) |
| static void | sleep_cb (GtkWidget *button, gpointer data) |
| static void | toggle_aspect_ratio (GtkWidget *button, gpointer data) |
| static void | toggle_decorated_cb (GtkWidget *button, gpointer data) |
| static void | clicked_toolbar_cb (GtkWidget *button, gpointer data) |
| static void | update_statusbar (GtkTextBuffer *buffer, GtkStatusbar *statusbar) |
| static void | mark_set_callback (GtkTextBuffer *buffer, const GtkTextIter *new_location, GtkTextMark *mark, gpointer data) |
| static void | destroy_cb (GtkWidget *w, gpointer data) |
Variables | |
| static gboolean | aspect_on |
| static GtkItemFactoryEntry | menu_items [] |
| static int | window_count = 0 |
| #define DOCK_SIZE 48 |
Referenced by make_dock().
| anonymous enum |
Definition at line 548 of file metacity-window-demo.c.
| static void border_only_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
Definition at line 430 of file metacity-window-demo.c.
References FALSE, label, and set_gtk_window_border_only().
| static void clicked_toolbar_cb | ( | GtkWidget * | button, | |
| gpointer | data | |||
| ) | [static] |
Definition at line 748 of file metacity-window-demo.c.
References NULL.
Referenced by do_appwindow().
| static void desktop_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
Definition at line 651 of file metacity-window-demo.c.
References focus_label(), and set_gtk_window_type().
| static void destroy_cb | ( | GtkWidget * | w, | |
| gpointer | data | |||
| ) | [static] |
| static void dialog_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
| static GtkWidget * do_appwindow | ( | void | ) | [static] |
Definition at line 816 of file metacity-window-demo.c.
References aspect_on, clicked_toolbar_cb(), destroy_cb(), FALSE, mark_set_callback(), NULL, sleep_cb(), toggle_aspect_ratio(), toggle_decorated_cb(), and update_statusbar().
Referenced by main().
| static void dock_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
Definition at line 633 of file metacity-window-demo.c.
References DOCK_ALL, DOCK_BOTTOM, DOCK_LEFT, DOCK_RIGHT, DOCK_TOP, and make_dock().
| static gboolean focus_in_event_cb | ( | GtkWidget * | window, | |
| GdkEvent * | event, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 479 of file metacity-window-demo.c.
References TRUE.
Referenced by focus_label().
| static GtkWidget* focus_label | ( | GtkWidget * | window | ) | [static] |
Definition at line 508 of file metacity-window-demo.c.
References focus_in_event_cb(), and focus_out_event_cb().
Referenced by desktop_cb(), make_dock(), and splashscreen_cb().
| static gboolean focus_out_event_cb | ( | GtkWidget * | window, | |
| GdkEvent * | event, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 494 of file metacity-window-demo.c.
References TRUE.
Referenced by focus_label().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
| static void make_dialog | ( | GtkWidget * | parent, | |
| int | depth | |||
| ) | [static] |
Definition at line 234 of file metacity-window-demo.c.
References NULL, and response_cb().
Referenced by dialog_cb(), no_parent_dialog_cb(), and response_cb().
| static void make_dock | ( | int | type | ) | [static] |
Definition at line 558 of file metacity-window-demo.c.
References DOCK_ALL, DOCK_BOTTOM, DOCK_LEFT, DOCK_RIGHT, DOCK_SIZE, DOCK_TOP, FALSE, focus_label(), NULL, set_gtk_window_struts(), and set_gtk_window_type().
Referenced by dock_cb().
| static void mark_set_callback | ( | GtkTextBuffer * | buffer, | |
| const GtkTextIter * | new_location, | |||
| GtkTextMark * | mark, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 797 of file metacity-window-demo.c.
References update_statusbar().
Referenced by do_appwindow().
| static void menu_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
Definition at line 383 of file metacity-window-demo.c.
References FALSE, label, and set_gtk_window_type().
| static void modal_dialog_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
| static void no_parent_dialog_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
| static void on_realize_set_border_only | ( | GtkWindow * | window, | |
| gpointer | data | |||
| ) | [static] |
Definition at line 171 of file metacity-window-demo.c.
References set_gdk_window_border_only().
Referenced by set_gtk_window_border_only().
| static void on_realize_set_struts | ( | GtkWindow * | window, | |
| gpointer | data | |||
| ) | [static] |
Definition at line 62 of file metacity-window-demo.c.
References set_gdk_window_struts().
Referenced by set_gtk_window_struts().
| static void on_realize_set_type | ( | GtkWindow * | window, | |
| gpointer | data | |||
| ) | [static] |
Definition at line 129 of file metacity-window-demo.c.
References NULL, and set_gdk_window_type().
Referenced by set_gtk_window_type().
| static void override_redirect_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
| static void response_cb | ( | GtkDialog * | dialog, | |
| int | response_id, | |||
| void * | data | |||
| ) | [static] |
Definition at line 269 of file metacity-window-demo.c.
References make_dialog().
Referenced by make_dialog().
| static void set_gdk_window_border_only | ( | GdkWindow * | window | ) | [static] |
Definition at line 165 of file metacity-window-demo.c.
Referenced by on_realize_set_border_only(), and set_gtk_window_border_only().
| static void set_gdk_window_struts | ( | GdkWindow * | window, | |
| int | left, | |||
| int | right, | |||
| int | top, | |||
| int | bottom | |||
| ) | [static] |
Definition at line 32 of file metacity-window-demo.c.
Referenced by on_realize_set_struts(), and set_gtk_window_struts().
| static void set_gdk_window_type | ( | GdkWindow * | window, | |
| const char * | type | |||
| ) | [static] |
Definition at line 112 of file metacity-window-demo.c.
Referenced by on_realize_set_type(), and set_gtk_window_type().
| static void set_gtk_window_border_only | ( | GtkWindow * | window | ) | [static] |
Definition at line 180 of file metacity-window-demo.c.
References NULL, on_realize_set_border_only(), and set_gdk_window_border_only().
Referenced by border_only_cb().
| static void set_gtk_window_struts | ( | GtkWidget * | window, | |
| int | left, | |||
| int | right, | |||
| int | top, | |||
| int | bottom | |||
| ) | [static] |
Definition at line 82 of file metacity-window-demo.c.
References NULL, on_realize_set_struts(), and set_gdk_window_struts().
Referenced by make_dock().
| static void set_gtk_window_type | ( | GtkWindow * | window, | |
| const char * | type | |||
| ) | [static] |
Definition at line 145 of file metacity-window-demo.c.
References NULL, on_realize_set_type(), and set_gdk_window_type().
Referenced by desktop_cb(), make_dock(), menu_cb(), modal_dialog_cb(), splashscreen_cb(), toolbar_cb(), and utility_cb().
| static void sleep_cb | ( | GtkWidget * | button, | |
| gpointer | data | |||
| ) | [static] |
| static void splashscreen_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
Definition at line 524 of file metacity-window-demo.c.
References FALSE, focus_label(), and set_gtk_window_type().
| static void toggle_aspect_ratio | ( | GtkWidget * | button, | |
| gpointer | data | |||
| ) | [static] |
Definition at line 708 of file metacity-window-demo.c.
References aspect_on.
Referenced by do_appwindow().
| static void toggle_decorated_cb | ( | GtkWidget * | button, | |
| gpointer | data | |||
| ) | [static] |
| static void toolbar_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
Definition at line 358 of file metacity-window-demo.c.
References FALSE, label, and set_gtk_window_type().
| static void update_statusbar | ( | GtkTextBuffer * | buffer, | |
| GtkStatusbar * | statusbar | |||
| ) | [static] |
Definition at line 769 of file metacity-window-demo.c.
Referenced by do_appwindow(), and mark_set_callback().
| static void utility_cb | ( | gpointer | callback_data, | |
| guint | callback_action, | |||
| GtkWidget * | widget | |||
| ) | [static] |
gboolean aspect_on [static] |
Definition at line 29 of file metacity-window-demo.c.
Referenced by do_appwindow(), and toggle_aspect_ratio().
GtkItemFactoryEntry menu_items[] [static] |
Initial value:
{
{ "/_Windows", NULL, NULL, 0, "<Branch>" },
{ "/Windows/tearoff", NULL, NULL, 0, "<Tearoff>" },
{ "/Windows/_Dialog", "<control>d", dialog_cb, 0, NULL },
{ "/Windows/_Modal dialog", NULL, modal_dialog_cb, 0, NULL },
{ "/Windows/_Parentless dialog", NULL, no_parent_dialog_cb, 0, NULL },
{ "/Windows/_Utility", "<control>u", utility_cb, 0, NULL },
{ "/Windows/_Splashscreen", "<control>s", splashscreen_cb, 0, NULL },
{ "/Windows/_Top dock", NULL, dock_cb, DOCK_TOP, NULL },
{ "/Windows/_Bottom dock", NULL, dock_cb, DOCK_BOTTOM, NULL },
{ "/Windows/_Left dock", NULL, dock_cb, DOCK_LEFT, NULL },
{ "/Windows/_Right dock", NULL, dock_cb, DOCK_RIGHT, NULL },
{ "/Windows/_All docks", NULL, dock_cb, DOCK_ALL, NULL },
{ "/Windows/Des_ktop", NULL, desktop_cb, 0, NULL },
{ "/Windows/Me_nu", NULL, menu_cb, 0, NULL },
{ "/Windows/Tool_bar", NULL, toolbar_cb, 0, NULL },
{ "/Windows/Override Redirect", NULL, override_redirect_cb, 0, NULL },
{ "/Windows/Border Only", NULL, border_only_cb, 0, NULL }
}
Definition at line 679 of file metacity-window-demo.c.
Referenced by normal_contents().
int window_count = 0 [static] |
Definition at line 805 of file metacity-window-demo.c.
1.5.5