45 #if !GLIB_CHECK_VERSION(2,8,0) 46 #define G_PARAM_STATIC_NAME G_PARAM_PRIVATE 47 #define G_PARAM_STATIC_NICK G_PARAM_PRIVATE 48 #define G_PARAM_STATIC_BLURB G_PARAM_PRIVATE 51 #if !GLIB_CHECK_VERSION(2,14,0) 52 #define g_timeout_add_seconds(time, callback, data) g_timeout_add(time * 1000, callback, data) 86 void gnt_screen_occupy(
GntWidget *widget);
92 void gnt_screen_release(
GntWidget *widget);
98 void gnt_screen_update(
GntWidget *widget);
200 gint *stin, gint *stout, gint *sterr,
201 void (*callback)(
int status, gpointer data), gpointer data);
void gnt_main(void)
Start running the mainloop for gnt.
gboolean gnt_is_refugee(void)
Check whether a child process is in control of the current terminal.
void gnt_set_clipboard_string(const gchar *string)
Set the contents of the global clipboard.
GntClipboard * gnt_get_clipboard(void)
Get the global clipboard.
gchar * gnt_get_clipboard_string(void)
Get the string in the clipboard.
void gnt_widget_set_urgent(GntWidget *widget)
Set the URGENT hint for a widget.
void gnt_screen_rename_widget(GntWidget *widget, const char *text)
Rename a widget.
gboolean gnt_ascii_only(void)
Check whether the terminal is capable of UTF8 display.
gboolean gnt_screen_menu_show(gpointer menu)
Show a menu.
void gnt_window_present(GntWidget *window)
Present a window.
void gnt_screen_resize_widget(GntWidget *widget, int width, int height)
Resize a widget.
gboolean gnt_widget_has_focus(GntWidget *widget)
Check whether a widget has focus.
void gnt_screen_move_widget(GntWidget *widget, int x, int y)
Move a widget.
void gnt_quit(void)
Terminate the mainloop of gnt.
gboolean gnt_giveup_console(const char *wd, char **argv, char **envp, gint *stin, gint *stout, gint *sterr, void(*callback)(int status, gpointer data), gpointer data)
Spawn a different application that will consume the console.
void gnt_init(void)
Initialize GNT.
void gnt_register_action(const char *label, void(*callback)(void))
Register a global action.