File: gtk_deprecated_since_3_14.go.h

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 (28 lines) | stat: -rw-r--r-- 990 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
23
24
25
26
27
28

/*
 * deprecated since version 3.14
 */

// Wrapper for gtk_menu_popup to allow calling gtk_status_icon_position_menu as
// callback from go code Used in func (v *Menu) PopupAtStatusIcon
static void gotk_menu_popup_at_status_icon(GtkMenu *menu,
                                           GtkStatusIcon *status_icon,
                                           guint button,
                                           guint32 activate_time) {
  gtk_menu_popup(menu, NULL, NULL, gtk_status_icon_position_menu, status_icon,
                 button, activate_time);
}

static GtkAlignment *toGtkAlignment(void *p) { return (GTK_ALIGNMENT(p)); }

static GtkArrow *toGtkArrow(void *p) { return (GTK_ARROW(p)); }

static GtkMisc *toGtkMisc(void *p) { return (GTK_MISC(p)); }

static GtkStatusIcon *toGtkStatusIcon(void *p) { return (GTK_STATUS_ICON(p)); }

static GdkPixbuf *toGdkPixbuf(void *p) { return (GDK_PIXBUF(p)); }

/*
 * End deprecated since version 3.14
 */