-
Notifications
You must be signed in to change notification settings - Fork 80
add basic GtkClipboard support #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,21 @@ baremodule GdkKeySyms | |
const Hyper_R = 0xffee | ||
end | ||
|
||
baremodule GdkAtoms | ||
const NONE = 0x0000 | ||
const SELECTION_PRIMARY = 0x0001 | ||
const SELECTION_SECONDARY = 0x0002 | ||
const SELECTION_TYPE_ATOM = 0x0004 | ||
const SELECTION_TYPE_BITMAP = 0x0005 | ||
const SELECTION_TYPE_COLORMAP = 0x0007 | ||
const SELECTION_TYPE_DRAWABLE = 0x0011 | ||
const SELECTION_TYPE_INTEGER = 0x0013 | ||
const SELECTION_TYPE_PIXMAP = 0x0014 | ||
const SELECTION_TYPE_STRING = 0x001f | ||
const SELECTION_TYPE_WINDOW = 0x0021 | ||
const SELECTION_CLIPBOARD = 0x0045 | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The type |
||
|
||
abstract GdkEvent <: GBoxed | ||
make_gvalue(GdkEvent, Ptr{GdkEvent}, :boxed, (:gdk_event,:libgdk)) | ||
function convert(::Type{GdkEvent}, evt::Ptr{GdkEvent}) | ||
|
@@ -178,4 +193,3 @@ end | |
|
||
keyval(name::String) = | ||
ccall((:gdk_keyval_from_name,libgdk),Cuint,(Ptr{Uint8},),bytestring(name)) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ export | |
@GtkTextMark, | ||
@GtkTextTag, | ||
@GtkTextView, | ||
@GtkClipboard, | ||
@GtkToolButton, | ||
@GtkToolItem, | ||
@GtkToolbar, | ||
|
@@ -134,6 +135,7 @@ export | |
GtkTextMarkLeaf, | ||
GtkTextTagLeaf, | ||
GtkTextViewLeaf, | ||
GtkClipboardLeaf, | ||
GtkToolButtonLeaf, | ||
GtkToolItemLeaf, | ||
GtkToolbarLeaf, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please make the corresponding updates to |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where are you getting all these from? Gtk itself appears to only defines "GDK_NONE"
PyGTK defines a few extras (https://developer.gnome.org/pygtk/stable/class-gdkatom.html), but only because it has computed the value at runtime (https://developer.gnome.org/gdk3/stable/gdk3-Properties-and-Atoms.html#gdk-atom-intern)