Remove the hacks for asking the X server for screenshots and use gtk.Widget.get_snapshot() instead.
This commit is contained in:
committed by
Tomeu Vizoso
parent
1fd893f86e
commit
44cabc891b
@@ -29,13 +29,6 @@
|
||||
(gtype-id "SUGAR_TYPE_GRID")
|
||||
)
|
||||
|
||||
(define-object Preview
|
||||
(in-module "Sugar")
|
||||
(parent "GObject")
|
||||
(c-name "SugarPreview")
|
||||
(gtype-id "SUGAR_TYPE_PREVIEW")
|
||||
)
|
||||
|
||||
(define-object IconEntry
|
||||
(in-module "Sexy")
|
||||
(parent "GtkEntry")
|
||||
@@ -248,44 +241,6 @@
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
;; From sugar-preview.h
|
||||
|
||||
(define-function sugar_preview_get_type
|
||||
(c-name "sugar_preview_get_type")
|
||||
(return-type "GType")
|
||||
)
|
||||
|
||||
(define-method take_screenshot
|
||||
(of-object "SugarPreview")
|
||||
(c-name "sugar_preview_take_screenshot")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GtkWidget" "widget")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method set_size
|
||||
(of-object "SugarPreview")
|
||||
(c-name "sugar_preview_set_size")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("int" "width")
|
||||
'("int" "height")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method clear
|
||||
(of-object "SugarPreview")
|
||||
(c-name "sugar_preview_clear")
|
||||
(return-type "none")
|
||||
)
|
||||
|
||||
(define-method get_pixbuf
|
||||
(of-object "SugarPreview")
|
||||
(c-name "sugar_preview_get_pixbuf")
|
||||
(return-type "GdkPixbuf*")
|
||||
)
|
||||
|
||||
;; From eggsmclient.h
|
||||
|
||||
(define-function egg_sm_client_get_type
|
||||
|
||||
Reference in New Issue
Block a user