Fri, 02 Mar 2007 01:48:11 +0000
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 *);