Go to the source code of this file.
Functions | |
| static gint | expose_handler (GtkTooltips *tooltips) |
| void | meta_fixed_tip_show (Display *xdisplay, int screen_number, int root_x, int root_y, const char *markup_text) |
| Displays a tooltip. | |
| void | meta_fixed_tip_hide (void) |
| Removes the tooltip that was created by meta_fixed_tip_show(). | |
Variables | |
| static GtkWidget * | tip = NULL |
| The floating rectangle. | |
| static GtkWidget * | label = NULL |
| The actual text that gets displayed. | |
| static int | screen_right_edge = 0 |
| static int | screen_bottom_edge = 0 |
| static gint expose_handler | ( | GtkTooltips * | tooltips | ) | [static] |
Definition at line 54 of file fixedtip.c.
References FALSE, NULL, and tip.
Referenced by meta_fixed_tip_show().
| void meta_fixed_tip_hide | ( | void | ) |
Removes the tooltip that was created by meta_fixed_tip_show().
If there is no tooltip currently visible, this is a no-op.
Definition at line 124 of file fixedtip.c.
Referenced by clear_tip().
| void meta_fixed_tip_show | ( | Display * | xdisplay, | |
| int | screen_number, | |||
| int | root_x, | |||
| int | root_y, | |||
| const char * | markup_text | |||
| ) |
Displays a tooltip.
There can be only one across the entire system. This function behaves identically whether or not a tooltip is already displayed, but if it is the window will be reused rather than destroyed and recreated.
| xdisplay | An X display. | |
| screen_number | The number of the screen. | |
| root_x | The X coordinate where the tooltip should appear | |
| root_y | The Y coordinate where the tooltip should appear | |
| markup_text | Text to display in the tooltip; can contain markup |
Definition at line 65 of file fixedtip.c.
References expose_handler(), FALSE, label, META_UI_DIRECTION_RTL, meta_ui_get_direction(), NULL, screen_bottom_edge, screen_right_edge, tip, and TRUE.
Referenced by show_tip_now().
GtkWidget* label = NULL [static] |
The actual text that gets displayed.
Definition at line 37 of file fixedtip.c.
Referenced by benchmark_summary(), border_only_cb(), dialog_contents(), kill_window_question(), menu_cb(), meta_fixed_tip_show(), meta_window_menu_new(), override_redirect_cb(), and toolbar_cb().
int screen_bottom_edge = 0 [static] |
int screen_right_edge = 0 [static] |
GtkWidget* tip = NULL [static] |
The floating rectangle.
This is a GtkWindow, and it contains the "label" widget, below.
Definition at line 32 of file fixedtip.c.
Referenced by expose_handler(), meta_fixed_tip_hide(), and meta_fixed_tip_show().
1.5.5