#include "macros.h"
#include "types.h"
#include <gtk/gtk.h>
Go to the source code of this file.
◆ girara_statusbar_event_t
| typedef bool(* girara_statusbar_event_t) (GtkWidget *widget, GdkEvent *event, girara_session_t *session) |
Function declaration for a statusbar event callback
- Parameters
-
| widget | The statusbar item |
| event | The occurred event |
| session | The current girara session |
- Returns
- TRUE No error occurred
-
FALSE Error occurred (and forward event)
Definition at line 19 of file statusbar.h.
◆ girara_statusbar_item_add()
| girara_statusbar_item_t * girara_statusbar_item_add |
( |
girara_session_t * | session, |
|
|
bool | expand, |
|
|
bool | fill, |
|
|
bool | left, |
|
|
girara_statusbar_event_t | callback ) |
Creates an statusbar item
- Parameters
-
| session | The used girara session |
| expand | Expand attribute |
| fill | Fill attribute |
| left | True if it should be aligned to the left |
| callback | Function that gets executed when an event occurs |
- Returns
- The created statusbar item
-
NULL An error occurred
◆ girara_statusbar_item_set_text()
| bool girara_statusbar_item_set_text |
( |
girara_session_t * | session, |
|
|
girara_statusbar_item_t * | item, |
|
|
const char * | text ) |
Sets the shown text of an statusbar item
- Parameters
-
| session | The used girara session |
| item | The statusbar item |
| text | Text that should be displayed |
- Returns
- TRUE No error occurred
-
FALSE An error occurred