console/libgnt/gnt.h

Fri, 02 Mar 2007 01:48:11 +0000

author
Richard Nelson <wabz@pidgin.im>
date
Fri, 02 Mar 2007 01:48:11 +0000
changeset 15814
2db42c6a13fa
parent 14675
be8af28d1980
child 15874
46df7421a1b5
permissions
-rw-r--r--

Add a gntclipboard. You can select text in a textview with the mouse, and paste it in an entry with ctrl-v (or rebind GntEntry's clipboard-paste).
If you use the s.so WM, pressing alt-shift-c ("toggle-clipboard") will toggle display of the clipboard contents in a possibly easy-to-copy-with-the-x-mouse window.
This includes a plugin which interacts with the X selection, which is not built by default.

#include <glib.h>
#include "gntwidget.h"
#include "gntclipboard.h"
#include "gntcolors.h"
#include "gntkeys.h"

void gnt_init();

void gnt_main();

gboolean gnt_ascii_only();

void gnt_screen_occupy(GntWidget *widget);

void gnt_screen_release(GntWidget *widget);

void gnt_screen_update(GntWidget *widget);

void gnt_screen_take_focus(GntWidget *widget);

void gnt_screen_resize_widget(GntWidget *widget, int width, int height);

void gnt_screen_move_widget(GntWidget *widget, int x, int y);

void gnt_screen_rename_widget(GntWidget *widget, const char *text);

gboolean gnt_widget_has_focus(GntWidget *widget);

void gnt_widget_set_urgent(GntWidget *widget);

void gnt_register_action(const char *label, void (*callback)());

gboolean gnt_screen_menu_show(gpointer menu);

void gnt_quit();

GntClipboard *gnt_get_clipboard();

gchar *gnt_get_clipboard_string();

void gnt_set_clipboard_string(gchar *);

mercurial