File: gtk_since_3_16_deprecated_since_3_20.go

package info (click to toggle)
golang-github-gotk3-gotk3 0.6.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,392 kB
  • sloc: ansic: 914; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Same copyright and license as the rest of the files in this project.
// This file is normally only compiled for GTK 3.16 and 3.18.
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12,!gtk_3_14,gtk_deprecated gtk_3_16 gtk_3_18

package gtk

// #include <gtk/gtk.h>
import "C"

/*
 * GtkPopover
 */

// SetTransitionsEnabled is a wrapper gtk_popover_set_transitions_enabled().
func (v *Popover) SetTransitionsEnabled(transitionsEnabled bool) {
	C.gtk_popover_set_transitions_enabled(v.native(), gbool(transitionsEnabled))
}

// GetTransitionsEnabled is a wrapper gtk_popover_get_transitions_enabled().
func (v *Popover) GetTransitionsEnabled() bool {
	return gobool(C.gtk_popover_get_transitions_enabled(v.native()))
}