type
stringclasses
5 values
content
stringlengths
9
163k
functions
value ml_z_gcdext_intern(value arg1, value arg2) { /* XXX TODO: fast path */ CAMLparam2(arg1, arg2); CAMLlocal5(r, res_arg1, res_arg2, s, p); Z_DECL(arg1); Z_DECL(arg2); mp_size_t sz, sn; Z_MARK_OP; Z_MARK_SLOW; Z_CHECK(arg1); Z_CHECK(arg2); Z_ARG(arg1); Z_ARG(arg2); if (!size_arg1 || !size_arg2...
functions
value ml_z_logand(value arg1, value arg2) { Z_MARK_OP; Z_CHECK(arg1); Z_CHECK(arg2); #if Z_FAST_PATH && !defined(Z_ASM_logand) if (Is_long(arg1) && Is_long(arg2)) { /* fast path */ return arg1 & arg2; }
functions
else if (sign_arg1 && sign_arg2) { /* arg1 < 0, arg2 < 0 => r < 0 */ r = ml_z_alloc(size_arg1 + 1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg1, size_arg1, 1); c = 1; /* carry when decrementing arg2 */ for (i = 0; i < size_arg2; i++) { mp_limb_t v = ...
functions
else if (sign_arg1) { /* arg1 < 0, arg2 > 0 => r >= 0 */ r = ml_z_alloc(size_arg2); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg1, size_arg2, 1); for (i = 0; i < size_arg2; i++) Z_LIMB(r)[i] = (~Z_LIMB(r)[i]) & ptr_arg2[i]; r = ml_z_reduce(r, size_arg...
functions
else if (sign_arg2) { /* arg1 > 0, arg2 < 0 => r >= 0 */ r = ml_z_alloc(size_arg1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg2, size_arg2, 1); for (i = 0; i < size_arg2; i++) Z_LIMB(r)[i] = ptr_arg1[i] & (~Z_LIMB(r)[i]); for (; i < size_arg1; i++) ...
functions
value ml_z_logor(value arg1, value arg2) { Z_MARK_OP; Z_CHECK(arg1); Z_CHECK(arg2); #if Z_FAST_PATH && !defined(Z_ASM_logor) if (Is_long(arg1) && Is_long(arg2)) { /* fast path */ return arg1 | arg2; }
functions
else if (sign_arg1 && sign_arg2) { /* arg1 < 0, arg2 < 0 => r < 0 */ r = ml_z_alloc(size_arg2 + 1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg1, size_arg2, 1); c = 1; /* carry when decrementing arg2 */ for (i = 0; i < size_arg2; i++) { mp_limb_t v = ...
functions
else if (sign_arg1) { /* arg1 < 0, arg2 > 0 => r < 0 */ r = ml_z_alloc(size_arg1 + 1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg1, size_arg1, 1); for (i = 0; i < size_arg2; i++) Z_LIMB(r)[i] = Z_LIMB(r)[i] & (~ptr_arg2[i]); c = mpn_add_1(Z_LIMB(r),...
functions
else if (sign_arg2) { /* arg1 > 0, arg2 < 0 => r < 0*/ r = ml_z_alloc(size_arg2 + 1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg2, size_arg2, 1); for (i = 0; i < size_arg2; i++) Z_LIMB(r)[i] = (~ptr_arg1[i]) & Z_LIMB(r)[i]; c = mpn_add_1(Z_LIMB(r), ...
functions
value ml_z_logxor(value arg1, value arg2) { Z_MARK_OP; Z_CHECK(arg1); Z_CHECK(arg2); #if Z_FAST_PATH && !defined(Z_ASM_logxor) if (Is_long(arg1) && Is_long(arg2)) { /* fast path */ return (arg1 ^ arg2) | 1; }
functions
else if (sign_arg1 && sign_arg2) { /* arg1 < 0, arg2 < 0 => r >=0 */ r = ml_z_alloc(size_arg1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg1, size_arg1, 1); c = 1; /* carry when decrementing arg2 */ for (i = 0; i < size_arg2; i++) { mp_limb_t v = ptr_...
functions
else if (sign_arg1) { /* arg1 < 0, arg2 > 0 => r < 0 */ r = ml_z_alloc(size_arg1 + 1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg1, size_arg1, 1); for (i = 0; i < size_arg2; i++) Z_LIMB(r)[i] = Z_LIMB(r)[i] ^ ptr_arg2[i]; c = mpn_add_1(Z_LIMB(r), Z_...
functions
else if (sign_arg2) { /* arg1 > 0, arg2 < 0 => r < 0 */ r = ml_z_alloc(size_arg1 + 1); Z_REFRESH(arg1); Z_REFRESH(arg2); mpn_sub_1(Z_LIMB(r), ptr_arg2, size_arg2, 1); for (i = 0; i < size_arg2; i++) Z_LIMB(r)[i] = ptr_arg1[i] ^ Z_LIMB(r)[i]; for (; i < size_arg1; i++) ...
functions
value ml_z_lognot(value arg) { Z_MARK_OP; Z_CHECK(arg); #if Z_FAST_PATH && !defined(Z_ASM_lognot) if (Is_long(arg)) { /* fast path */ return (~arg) | 1; }
functions
else if (sign_arg) { /* arg < 0, r > 0, |r| = |arg| - 1 */ mpn_sub_1(Z_LIMB(r), ptr_arg, size_arg, 1); r = ml_z_reduce(r, size_arg, 0); }
functions
value ml_z_shift_left(value arg, value count) { Z_DECL(arg); intnat c = Long_val(count); intnat c1, c2; Z_MARK_OP; Z_CHECK(arg); if (c < 0) caml_invalid_argument("Z.shift_left: count argument must be positive"); if (!c) return arg; c1 = c / Z_LIMB_BITS; c2 = c % Z_LIMB_BITS; #if Z_FAST_PATH && !de...
functions
value ml_z_shift_right(value arg, value count) { Z_DECL(arg); intnat c = Long_val(count); intnat c1, c2; value r; Z_MARK_OP; Z_CHECK(arg); if (c < 0) caml_invalid_argument("Z.shift_right: count argument must be positive"); if (!c) return arg; c1 = c / Z_LIMB_BITS; c2 = c % Z_LIMB_BITS; #if Z_FAS...
functions
value ml_z_shift_right_trunc(value arg, value count) { Z_DECL(arg); intnat c = Long_val(count); intnat c1, c2; value r; Z_MARK_OP; Z_CHECK(arg); if (c < 0) caml_invalid_argument("Z.shift_right_trunc: count argument must be positive"); if (!c) return arg; c1 = c / Z_LIMB_BITS; c2 = c % Z_LIMB_BIT...
functions
uintnat ml_z_count(uintnat x) { #ifdef ARCH_SIXTYFOUR x = (x & 0x5555555555555555UL) + ((x >> 1) & 0x5555555555555555UL); x = (x & 0x3333333333333333UL) + ((x >> 2) & 0x3333333333333333UL); x = (x & 0x0f0f0f0f0f0f0f0fUL) + ((x >> 4) & 0x0f0f0f0f0f0f0f0fUL); x = (x & 0x00ff00ff00ff00ffUL) + ((x >> 8) & 0x00f...
functions
value ml_z_popcount(value arg) { Z_DECL(arg); intnat r; Z_MARK_OP; Z_CHECK(arg); #if Z_FAST_PATH if (Is_long(arg)) { /* fast path */ r = Long_val(arg); if (r < 0) ml_z_raise_overflow(); return Val_long(ml_z_count(r)); }
functions
value ml_z_hamdist(value arg1, value arg2) { Z_DECL(arg1); Z_DECL(arg2); intnat r; mp_size_t sz; Z_MARK_OP; Z_CHECK(arg1); Z_CHECK(arg2); #if Z_FAST_PATH if (Is_long(arg1) && Is_long(arg2)) { /* fast path */ r = Long_val(arg1) ^ Long_val(arg2); if (r < 0) ml_z_raise_overflow(); return Val_...
functions
else if (size_arg2 > size_arg1) { r += mpn_popcount(ptr_arg2 + size_arg1, size_arg2 - size_arg1); if (r < 0 || !Z_FITS_INT(r)) ml_z_raise_overflow(); }
functions
void ml_z_mpz_set_z(mpz_t rop, value op) { Z_DECL(op); Z_CHECK(op); Z_ARG(op); mpz_realloc2(rop, size_op * Z_LIMB_BITS); rop->_mp_size = (sign_op >= 0) ? size_op : -size_op; ml_z_cpy_limb(rop->_mp_d, ptr_op, size_op); }
functions
void ml_z_mpz_init_set_z(mpz_t rop, value op) { mpz_init(rop); ml_z_mpz_set_z(rop,op); }
functions
value ml_z_from_mpz(mpz_t op) { value r; size_t sz = mpz_size(op); r = ml_z_alloc(sz); ml_z_cpy_limb(Z_LIMB(r), op->_mp_d, sz); return ml_z_reduce(r, sz, (mpz_sgn(op) >= 0) ? 0 : Z_SIGN_MASK); }
functions
value ml_z_divexact(value arg1, value arg2) { Z_MARK_OP; Z_CHECK(arg1); Z_CHECK(arg2); #if Z_FAST_PATH if (Is_long(arg1) && Is_long(arg2)) { /* fast path */ intnat a1 = Long_val(arg1); intnat a2 = Long_val(arg2); intnat q; if (!a2) ml_z_raise_divide_by_zero(); q = a1 / a2; if (Z_FITS_I...
functions
value ml_z_powm(value base, value exp, value mod) { CAMLparam3(base,exp,mod); CAMLlocal1(r); mpz_t mbase, mexp, mmod; ml_z_mpz_init_set_z(mbase, base); ml_z_mpz_init_set_z(mexp, exp); ml_z_mpz_init_set_z(mmod, mod); if (mpz_sgn(mexp) < 0) { /* we need to check whether base is invertible to avoid a div...
functions
value ml_z_pow(value base, value exp) { CAMLparam2(base,exp); CAMLlocal1(r); mpz_t mbase; int e = Long_val(exp); if (e < 0) caml_invalid_argument("Z.pow: exponent must be non-negative"); ml_z_mpz_init_set_z(mbase, base); mpz_pow_ui(mbase, mbase, e); r = ml_z_from_mpz(mbase); mpz_clear(mbase); C...
functions
value ml_z_root(value a, value b) { CAMLparam2(a,b); CAMLlocal1(r); mpz_t ma; int mb = Long_val(b); if (mb < 0) caml_invalid_argument("Z.root: exponent must be non-negative"); ml_z_mpz_init_set_z(ma, a); mpz_root(ma, ma, mb); r = ml_z_from_mpz(ma); mpz_clear(ma); CAMLreturn(r); }
functions
value ml_z_perfect_power(value a) { CAMLparam1(a); int r; mpz_t ma; ml_z_mpz_init_set_z(ma, a); r = mpz_perfect_power_p(ma); mpz_clear(ma); CAMLreturn(r ? Val_true : Val_false); }
functions
value ml_z_perfect_square(value a) { CAMLparam1(a); int r; mpz_t ma; ml_z_mpz_init_set_z(ma, a); r = mpz_perfect_square_p(ma); mpz_clear(ma); CAMLreturn(r ? Val_true : Val_false); }
functions
value ml_z_probab_prime(value a, int b) { CAMLparam1(a); int r; mpz_t ma; ml_z_mpz_init_set_z(ma, a); r = mpz_probab_prime_p(ma, Int_val(b)); mpz_clear(ma); CAMLreturn(Val_int(r)); }
functions
value ml_z_nextprime(value a) { CAMLparam1(a); CAMLlocal1(r); mpz_t ma; ml_z_mpz_init_set_z(ma, a); mpz_nextprime(ma, ma); r = ml_z_from_mpz(ma); mpz_clear(ma); CAMLreturn(r); }
functions
value ml_z_invert(value base, value mod) { CAMLparam2(base,mod); CAMLlocal1(r); mpz_t mbase, mmod; ml_z_mpz_init_set_z(mbase, base); ml_z_mpz_init_set_z(mmod, mod); if (!mpz_invert(mbase, mbase, mmod)) ml_z_raise_divide_by_zero(); r = ml_z_from_mpz(mbase); mpz_clear(mbase); mpz_clear(mmod); CAML...
functions
int ml_z_custom_compare(value arg1, value arg2) { Z_DECL(arg1); Z_DECL(arg2); int r; Z_CHECK(arg1); Z_CHECK(arg2); #if Z_FAST_PATH if (Is_long(arg1) && Is_long(arg2)) { /* fast path */ if (arg1 > arg2) return 1; else if (arg1 < arg2) return -1; else return 0; }
functions
intnat ml_z_custom_hash(value v) { Z_DECL(v); mp_size_t i; uint32_t acc = 0; Z_CHECK(v); Z_ARG(v); for (i = 0; i < size_v; i++) { acc = caml_hash_mix_uint32(acc, (uint32_t)(ptr_v[i])); #ifdef ARCH_SIXTYFOUR acc = caml_hash_mix_uint32(acc, ptr_v[i] >> 32); #endif }
functions
value ml_z_hash(value v) { return Val_long(ml_z_custom_hash(v)); }
functions
void ml_z_custom_serialize(value v, uintnat * wsize_32, uintnat * wsize_64) { mp_size_t i,nb; Z_DECL(v); Z_CHECK(v); Z_ARG(v); if ((mp_size_t)(uint32_t) size_v != size_v) caml_failwith("Z.serialize: number is too large"); nb = size_v ...
functions
uintnat ml_z_custom_deserialize(void * dst) { mp_limb_t* d = ((mp_limb_t*)dst) + 1; int sign = caml_deserialize_uint_1(); uint32_t sz = caml_deserialize_uint_4(); uint32_t szw = (sz + sizeof(mp_limb_t) - 1) / sizeof(mp_limb_t); uint32_t i = 0; mp_limb_t x; /* all limbs but last */ if (szw > 1) { fo...
functions
value ml_z_mlgmpidl_of_mpz(value a) { CAMLparam1(a); mpz_ptr mpz = (mpz_ptr)(Data_custom_val(a)); CAMLreturn(ml_z_from_mpz(mpz)); }
functions
value ml_z_mlgmpidl_set_mpz(value r, value a) { CAMLparam2(r,a); mpz_ptr mpz = (mpz_ptr)(Data_custom_val(r)); ml_z_mpz_set_z(mpz,a); CAMLreturn(Val_unit); }
functions
void ml_z_dump_count() { printf("Z: %lu asm operations, %lu C operations, %lu slow (%lu%%)\n", ml_z_ops_as, ml_z_ops, ml_z_slow, ml_z_ops ? (ml_z_slow*100/(ml_z_ops+ml_z_ops_as)) : 0); }
functions
value ml_z_install_frametable() { /* nothing to do for bytecode version */ return Val_unit; }
functions
value ml_z_init() { ml_z_2p32 = ldexp(1., 32); /* run-time checks */ #ifdef ARCH_SIXTYFOUR if (sizeof(intnat) != 8 || sizeof(mp_limb_t) != 8) caml_failwith("Z.init: invalid size of types, 8 expected"); #else if (sizeof(intnat) != 4 || sizeof(mp_limb_t) != 4) caml_failwith("Z.init: invalid size of types,...
includes
#include <string.h>
includes
#include <stdlib.h>
includes
#include <stdio.h>
includes
#include <errno.h>
functions
void dconf_state_init_session (DConfState *state) { const gchar *config_dir = g_get_user_config_dir (); state->db_dir = g_build_filename (config_dir, "dconf", NULL); if (g_mkdir_with_parents (state->db_dir, 0700)) { /* XXX remove this after a while... */ if (errno == ENOTDIR) { ...
functions
void dconf_state_init (DConfState *state) { state->is_session = strcmp (g_get_user_name (), "dconf") != 0; state->main_loop = g_main_loop_new (NULL, FALSE); state->serial = 0; state->id = NULL; if (state->is_session) dconf_state_init_session (state); }
functions
void dconf_state_destroy (DConfState *state) { g_main_loop_unref (state->main_loop); }
functions
void dconf_state_set_id (DConfState *state, const gchar *id) { g_assert (state->id == NULL); state->id = g_strdup (id); }
includes
#include <config.h>
includes
#include <glib/gi18n-lib.h>
defines
#define FALLBACK_NAME _("Untitled application")
defines
#define MATEWNCK_APPLICATION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MATEWNCK_TYPE_APPLICATION, MatewnckApplicationPrivate))
structs
struct _MatewnckApplicationPrivate { Window xwindow; /* group leader */ MatewnckScreen *screen; GList *windows; int pid; char *name; MatewnckWindow *name_window; /* window we are using name of */ GdkPixbuf *icon; GdkPixbuf *mini_icon; MatewnckIconCache *icon_cache; MatewnckWindow *icon_wind...
functions
void matewnck_application_init (MatewnckApplication *application) { application->priv = MATEWNCK_APPLICATION_GET_PRIVATE (application); application->priv->xwindow = None; application->priv->screen = NULL; application->priv->windows = NULL; application->priv->pid = 0; application->priv->name = NULL; ap...
functions
void matewnck_application_class_init (MatewnckApplicationClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (MatewnckApplicationPrivate)); object_class->finalize = matewnck_application_finalize; /** * MatewnckApplication::name-changed: * @app:...
functions
void matewnck_application_finalize (GObject *object) { MatewnckApplication *application; application = MATEWNCK_APPLICATION (object); application->priv->xwindow = None; g_list_free (application->priv->windows); application->priv->windows = NULL; g_free (application->priv->name); application->priv->n...
functions
gulong matewnck_application_get_xid (MatewnckApplication *app) { g_return_val_if_fail (MATEWNCK_IS_APPLICATION (app), 0); return app->priv->xwindow; }
functions
int matewnck_application_get_n_windows (MatewnckApplication *app) { g_return_val_if_fail (MATEWNCK_IS_APPLICATION (app), 0); return g_list_length (app->priv->windows); }
functions
int matewnck_application_get_pid (MatewnckApplication *app) { g_return_val_if_fail (MATEWNCK_IS_APPLICATION (app), 0); return app->priv->pid; }
functions
void get_icons (MatewnckApplication *app) { GdkPixbuf *icon; GdkPixbuf *mini_icon; icon = NULL; mini_icon = NULL; if (_matewnck_read_icons (app->priv->xwindow, app->priv->icon_cache, &icon, DEFAULT_ICON_WIDTH, DEFAULT_ICON_HEIGHT, ...
functions
gboolean matewnck_application_get_icon_is_fallback (MatewnckApplication *app) { g_return_val_if_fail (MATEWNCK_IS_APPLICATION (app), FALSE); if (app->priv->icon) return FALSE; else { MatewnckWindow *w = find_icon_window (app); if (w) return matewnck_window_get_icon_is_fallback (w); ...
functions
void _matewnck_application_destroy (MatewnckApplication *application) { g_return_if_fail (matewnck_application_get (application->priv->xwindow) == application); g_hash_table_remove (app_hash, &application->priv->xwindow); g_return_if_fail (matewnck_application_get (application->priv->xwindow) == NULL); /* ...
functions
void window_name_changed (MatewnckWindow *window, MatewnckApplication *app) { if (window == app->priv->name_window) { reset_name (app); update_name (app); }
functions
void _matewnck_application_add_window (MatewnckApplication *app, MatewnckWindow *window) { g_return_if_fail (MATEWNCK_IS_APPLICATION (app)); g_return_if_fail (MATEWNCK_IS_WINDOW (window)); g_return_if_fail (matewnck_window_get_application (window) == NULL); app->priv->windo...
functions
void _matewnck_application_remove_window (MatewnckApplication *app, MatewnckWindow *window) { g_return_if_fail (MATEWNCK_IS_APPLICATION (app)); g_return_if_fail (MATEWNCK_IS_WINDOW (window)); g_return_if_fail (matewnck_window_get_application (window) == app); app->priv->...
functions
void _matewnck_application_process_property_notify (MatewnckApplication *app, XEvent *xevent) { /* This prop notify is on the leader window */ if (xevent->xproperty.atom == XA_WM_NAME || xevent->xproperty.atom == _matewnck_atom_get ("_NET_WM_NAME") ...
functions
void emit_name_changed (MatewnckApplication *app) { g_signal_emit (G_OBJECT (app), signals[NAME_CHANGED], 0); }
functions
void emit_icon_changed (MatewnckApplication *app) { app->priv->need_emit_icon_changed = FALSE; g_signal_emit (G_OBJECT (app), signals[ICON_CHANGED], 0); }
functions
void reset_name (MatewnckApplication *app) { if (!app->priv->name_from_leader) { g_free (app->priv->name); app->priv->name = NULL; app->priv->name_window = NULL; }
functions
void update_name (MatewnckApplication *app) { g_assert (app->priv->name_from_leader || app->priv->name == NULL); if (app->priv->name == NULL) { /* if only one window, get name from there. If more than one and * they all have the same res_class, use that. Else we want to * use the fallback n...
functions
else if (app->priv->windows) { /* more than one */ app->priv->name = _matewnck_get_res_class_utf8 (matewnck_window_get_xid (app->priv->windows->data)); if (app->priv->name) { app->priv->name_window = app->priv->windows->data; emit...
includes
#include <string.h>
includes
#include <gobject/gvaluecollector.h>
defines
#define GTK_MENU_INTERNALS
defines
#define DEFAULT_POPUP_DELAY 225
defines
#define DEFAULT_POPDOWN_DELAY 1000
defines
#define NAVIGATION_REGION_OVERSHOOT 50 /* How much the navigation region
defines
#define MENU_SCROLL_STEP1 8
defines
#define MENU_SCROLL_STEP2 15
defines
#define MENU_SCROLL_FAST_ZONE 8
defines
#define MENU_SCROLL_TIMEOUT1 50
defines
#define MENU_SCROLL_TIMEOUT2 20
defines
#define ATTACH_INFO_KEY "gtk-menu-child-attach-info-key"
defines
#define ATTACHED_MENUS "gtk-attached-menus"
defines
#define THRESHOLD 8
defines
#define __GTK_MENU_C__
structs
struct _GtkMenuAttachData { GtkWidget *attach_widget; GtkMenuDetachFunc detacher; };
structs
struct _GtkMenuPrivate { gint x; gint y; gboolean initially_pushed_in; /* info used for the table */ guint *heights; gint heights_length; gint monitor_num; /* Cached layout information */ gint n_rows; gint n_columns; gchar *title; /* Arrow states */ GtkStateType lower_arrow_state; GtkS...
functions
void menu_queue_resize (GtkMenu *menu) { GtkMenuPrivate *priv = gtk_menu_get_private (menu); priv->have_layout = FALSE; gtk_widget_queue_resize (GTK_WIDGET (menu)); }
functions
void attach_info_free (AttachInfo *info) { g_slice_free (AttachInfo, info); }
functions
gboolean is_grid_attached (AttachInfo *ai) { return (ai->left_attach >= 0 && ai->right_attach >= 0 && ai->top_attach >= 0 && ai->bottom_attach >= 0); }
functions
void menu_ensure_layout (GtkMenu *menu) { GtkMenuPrivate *priv = gtk_menu_get_private (menu); if (!priv->have_layout) { GtkMenuShell *menu_shell = GTK_MENU_SHELL (menu); GList *l; gchar *row_occupied; gint current_row; gint max_right_attach; gint max_bottom_attach; ...
functions
gint gtk_menu_get_n_columns (GtkMenu *menu) { GtkMenuPrivate *priv = gtk_menu_get_private (menu); menu_ensure_layout (menu); return priv->n_columns; }
functions
gint gtk_menu_get_n_rows (GtkMenu *menu) { GtkMenuPrivate *priv = gtk_menu_get_private (menu); menu_ensure_layout (menu); return priv->n_rows; }
functions
void get_effective_child_attach (GtkWidget *child, int *l, int *r, int *t, int *b) { GtkMenu *menu = GTK_MENU (child->parent); AttachInfo *ai; menu_ensure_layout (menu); ai = get_attach_info (child); if (l) *l = ai->effective_left_attach; if (r) ...
functions
void gtk_menu_class_init (GtkMenuClass *class) { GObjectClass *gobject_class = G_OBJECT_CLASS (class); GtkObjectClass *object_class = GTK_OBJECT_CLASS (class); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class); GtkContainerClass *container_class = GTK_CONTAINER_CLASS (class); GtkMenuShellClass *menu_she...