Sha256: 3e65894876fd39b90a6080027b1150085b3ddc62a254cd7f4a4bdbf07c491b8e

Contents?: true

Size: 1.48 KB

Versions: 15

Compression:

Stored size: 1.48 KB

Contents

/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/************************************************

  rbgtkmenubar.c -

  $Author: mutoh $
  $Date: 2005/09/18 02:42:01 $

  Copyright (C) 2002,2003 Ruby-GNOME2 Project Team
  Copyright (C) 1998-2000 Yukihiro Matsumoto,
                          Daisuke Kanda,
                          Hiroshi Igarashi
************************************************/

#include "global.h"

static VALUE
mbar_initialize(self)
    VALUE self;
{
    RBGTK_INITIALIZE(self, gtk_menu_bar_new());
    return Qnil;
}

/* Defined as property
void        gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar,
                                             GtkPackDirection pack_dir);
GtkPackDirection gtk_menu_bar_get_pack_direction
                                            (GtkMenuBar *menubar);
void        gtk_menu_bar_set_child_pack_direction
                                            (GtkMenuBar *menubar,
                                             GtkPackDirection child_pack_dir);
GtkPackDirection gtk_menu_bar_get_child_pack_direction
                                            (GtkMenuBar *menubar);
*/

void 
Init_gtk_menu_bar()
{
    VALUE gMenuBar = G_DEF_CLASS(GTK_TYPE_MENU_BAR, "MenuBar", mGtk);
    rb_define_method(gMenuBar, "initialize", mbar_initialize, 0);

#if GTK_CHECK_VERSION(2,8,0)
    /* GtkPackDirection */
    G_DEF_CLASS(GTK_TYPE_PACK_DIRECTION, "PackDirection", gMenuBar);
    G_DEF_CONSTANTS(gMenuBar, GTK_TYPE_PACK_DIRECTION, "GTK_");
#endif
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gtk2-0.90.7-x86-mingw32 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.7 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.6 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.6-x86-mingw32 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.5 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.5-x86-mingw32 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.4 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.4-x86-mingw32 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.3 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.3-x86-mingw32 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.2 ext/gtk2/rbgtkmenubar.c
gtk2-0.90.2-x86-mingw32 ext/gtk2/rbgtkmenubar.c
gtk2-0.20.1 src/rbgtkmenubar.c
gtk2-0.20.0.1 src/rbgtkmenubar.c
gtk2-0.20.0 src/rbgtkmenubar.c