gtk2 0.90.7-x86-mingw32 → 0.90.8-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +62 -0
- data/ext/gtk2/extconf.rb +2 -2
- data/ext/gtk2/rbgdk.c +30 -61
- data/ext/gtk2/rbgdkatom.c +6 -14
- data/ext/gtk2/rbgdkcairo.c +4 -8
- data/ext/gtk2/rbgdkcolor.c +11 -27
- data/ext/gtk2/rbgdkcolormap.c +8 -16
- data/ext/gtk2/rbgdkcursor.c +5 -12
- data/ext/gtk2/rbgdkdevice.c +16 -32
- data/ext/gtk2/rbgdkdisplay.c +49 -100
- data/ext/gtk2/rbgdkdisplaymanager.c +3 -6
- data/ext/gtk2/rbgdkdragcontext.c +21 -48
- data/ext/gtk2/rbgdkdraw.c +27 -60
- data/ext/gtk2/rbgdkevent.c +51 -113
- data/ext/gtk2/rbgdkgc.c +35 -70
- data/ext/gtk2/rbgdkgeometry.c +24 -50
- data/ext/gtk2/rbgdkimage.c +14 -28
- data/ext/gtk2/rbgdkinput.c +3 -8
- data/ext/gtk2/rbgdkkeymap.c +7 -14
- data/ext/gtk2/rbgdkkeyval.c +9 -18
- data/ext/gtk2/rbgdkpango.c +8 -18
- data/ext/gtk2/rbgdkpangorenderer.c +7 -18
- data/ext/gtk2/rbgdkpixbuf.c +5 -20
- data/ext/gtk2/rbgdkpixmap.c +9 -24
- data/ext/gtk2/rbgdkproperty.c +8 -28
- data/ext/gtk2/rbgdkrectangle.c +12 -24
- data/ext/gtk2/rbgdkregion.c +15 -33
- data/ext/gtk2/rbgdkrgb.c +11 -26
- data/ext/gtk2/rbgdkscreen.c +37 -78
- data/ext/gtk2/rbgdkselection.c +5 -16
- data/ext/gtk2/rbgdkthreads.c +4 -8
- data/ext/gtk2/rbgdktimecoord.c +5 -10
- data/ext/gtk2/rbgdkvisual.c +25 -50
- data/ext/gtk2/rbgdkwindow.c +102 -211
- data/ext/gtk2/rbgdkwindowattr.c +16 -32
- data/ext/gtk2/rbgdkx11.c +5 -12
- data/ext/gtk2/rbgtk.c +9 -10
- data/ext/gtk2/rbgtkaboutdialog.c +5 -12
- data/ext/gtk2/rbgtkaccelerator.c +6 -12
- data/ext/gtk2/rbgtkaccelgroup.c +14 -32
- data/ext/gtk2/rbgtkaccelgroupentry.c +4 -8
- data/ext/gtk2/rbgtkaccelkey.c +7 -14
- data/ext/gtk2/rbgtkaccellabel.c +3 -6
- data/ext/gtk2/rbgtkaccelmap.c +12 -28
- data/ext/gtk2/rbgtkaccessible.c +1 -2
- data/ext/gtk2/rbgtkaction.c +20 -42
- data/ext/gtk2/rbgtkactiongroup.c +15 -39
- data/ext/gtk2/rbgtkadjustment.c +14 -28
- data/ext/gtk2/rbgtkalignment.c +4 -8
- data/ext/gtk2/rbgtkallocation.c +13 -26
- data/ext/gtk2/rbgtkarrow.c +2 -4
- data/ext/gtk2/rbgtkaspectframe.c +2 -4
- data/ext/gtk2/rbgtkassistant.c +23 -47
- data/ext/gtk2/rbgtkbbox.c +2 -4
- data/ext/gtk2/rbgtkbin.c +1 -2
- data/ext/gtk2/rbgtkbindingset.c +8 -18
- data/ext/gtk2/rbgtkborder.c +4 -8
- data/ext/gtk2/rbgtkbox.c +8 -23
- data/ext/gtk2/rbgtkbutton.c +8 -18
- data/ext/gtk2/rbgtkcalendar.c +11 -24
- data/ext/gtk2/rbgtkcelleditable.c +3 -6
- data/ext/gtk2/rbgtkcelllayout.c +9 -22
- data/ext/gtk2/rbgtkcellrenderer.c +8 -19
- data/ext/gtk2/rbgtkcellrendereraccel.c +1 -2
- data/ext/gtk2/rbgtkcellrenderercombo.c +1 -2
- data/ext/gtk2/rbgtkcellrendererpixbuf.c +1 -2
- data/ext/gtk2/rbgtkcellrendererprogress.c +1 -2
- data/ext/gtk2/rbgtkcellrendererspin.c +1 -2
- data/ext/gtk2/rbgtkcellrendererspinner.c +35 -0
- data/ext/gtk2/rbgtkcellrenderertext.c +2 -4
- data/ext/gtk2/rbgtkcellrenderertoggle.c +1 -2
- data/ext/gtk2/rbgtkcellview.c +6 -14
- data/ext/gtk2/rbgtkcheckbutton.c +1 -4
- data/ext/gtk2/rbgtkcheckmenuitem.c +2 -6
- data/ext/gtk2/rbgtkclipboard.c +30 -75
- data/ext/gtk2/rbgtkcolorbutton.c +1 -4
- data/ext/gtk2/rbgtkcolorsel.c +10 -24
- data/ext/gtk2/rbgtkcolorselectiondialog.c +5 -12
- data/ext/gtk2/rbgtkcombo.c +7 -16
- data/ext/gtk2/rbgtkcombobox.c +14 -32
- data/ext/gtk2/rbgtkcomboboxentry.c +1 -4
- data/ext/gtk2/rbgtkcontainer.c +27 -70
- data/ext/gtk2/rbgtkcurve.c +6 -12
- data/ext/gtk2/rbgtkdialog.c +14 -32
- data/ext/gtk2/rbgtkdrag.c +31 -68
- data/ext/gtk2/rbgtkdrawingarea.c +1 -2
- data/ext/gtk2/rbgtkeditable.c +13 -26
- data/ext/gtk2/rbgtkentry.c +7 -14
- data/ext/gtk2/rbgtkentrycompletion.c +10 -23
- data/ext/gtk2/rbgtkeventbox.c +1 -2
- data/ext/gtk2/rbgtkexpander.c +1 -4
- data/ext/gtk2/rbgtkfilechooser.c +30 -60
- data/ext/gtk2/rbgtkfilechooserbutton.c +1 -4
- data/ext/gtk2/rbgtkfilechooserdialog.c +1 -4
- data/ext/gtk2/rbgtkfilechooserwidget.c +1 -4
- data/ext/gtk2/rbgtkfilefilter.c +10 -21
- data/ext/gtk2/rbgtkfilesel.c +14 -30
- data/ext/gtk2/rbgtkfixed.c +5 -10
- data/ext/gtk2/rbgtkfontbutton.c +1 -4
- data/ext/gtk2/rbgtkfontselection.c +1 -2
- data/ext/gtk2/rbgtkfontselectiondialog.c +9 -20
- data/ext/gtk2/rbgtkframe.c +3 -8
- data/ext/gtk2/rbgtkgamma.c +3 -6
- data/ext/gtk2/rbgtkhandlebox.c +2 -4
- data/ext/gtk2/rbgtkhbbox.c +1 -2
- data/ext/gtk2/rbgtkhbox.c +1 -4
- data/ext/gtk2/rbgtkhpaned.c +1 -2
- data/ext/gtk2/rbgtkhruler.c +1 -2
- data/ext/gtk2/rbgtkhscale.c +1 -4
- data/ext/gtk2/rbgtkhscrollbar.c +1 -4
- data/ext/gtk2/rbgtkhseparator.c +1 -2
- data/ext/gtk2/rbgtkiconfactory.c +6 -12
- data/ext/gtk2/rbgtkiconinfo.c +8 -16
- data/ext/gtk2/rbgtkiconset.c +4 -12
- data/ext/gtk2/rbgtkiconsize.c +6 -12
- data/ext/gtk2/rbgtkiconsource.c +17 -34
- data/ext/gtk2/rbgtkicontheme.c +16 -32
- data/ext/gtk2/rbgtkiconview.c +23 -50
- data/ext/gtk2/rbgtkimage.c +3 -10
- data/ext/gtk2/rbgtkimagemenuitem.c +1 -4
- data/ext/gtk2/rbgtkimcontext.c +11 -22
- data/ext/gtk2/rbgtkimcontextsimple.c +2 -4
- data/ext/gtk2/rbgtkimmulticontext.c +2 -4
- data/ext/gtk2/rbgtkinputdialog.c +1 -2
- data/ext/gtk2/rbgtkinvisible.c +3 -8
- data/ext/gtk2/rbgtkitem.c +3 -6
- data/ext/gtk2/rbgtkitemfactory.c +13 -34
- data/ext/gtk2/rbgtklabel.c +10 -26
- data/ext/gtk2/rbgtklayout.c +6 -14
- data/ext/gtk2/rbgtklinkbutton.c +3 -10
- data/ext/gtk2/rbgtkliststore.c +15 -36
- data/ext/gtk2/rbgtkmain.c +32 -68
- data/ext/gtk2/rbgtkmenu.c +21 -46
- data/ext/gtk2/rbgtkmenubar.c +1 -2
- data/ext/gtk2/rbgtkmenuitem.c +12 -26
- data/ext/gtk2/rbgtkmenushell.c +9 -18
- data/ext/gtk2/rbgtkmenutoolbutton.c +2 -8
- data/ext/gtk2/rbgtkmessagedialog.c +4 -10
- data/ext/gtk2/rbgtkmisc.c +4 -8
- data/ext/gtk2/rbgtknotebook.c +53 -79
- data/ext/gtk2/rbgtkobject.c +7 -14
- data/ext/gtk2/rbgtkoptionmenu.c +4 -8
- data/ext/gtk2/rbgtkpaned.c +10 -20
- data/ext/gtk2/rbgtkplug.c +3 -8
- data/ext/gtk2/rbgtkprintsettings.c +1 -4
- data/ext/gtk2/rbgtkprogressbar.c +2 -4
- data/ext/gtk2/rbgtkradioaction.c +4 -8
- data/ext/gtk2/rbgtkradiobutton.c +3 -8
- data/ext/gtk2/rbgtkradiomenuitem.c +4 -10
- data/ext/gtk2/rbgtkradiotoolbutton.c +3 -8
- data/ext/gtk2/rbgtkrange.c +4 -8
- data/ext/gtk2/rbgtkrc.c +16 -34
- data/ext/gtk2/rbgtkrcstyle.c +13 -26
- data/ext/gtk2/rbgtkrecentaction.c +1 -4
- data/ext/gtk2/rbgtkrecentchooser.c +18 -38
- data/ext/gtk2/rbgtkrecentchooserdialog.c +1 -4
- data/ext/gtk2/rbgtkrecentchoosermenu.c +1 -4
- data/ext/gtk2/rbgtkrecentchooserwidget.c +1 -4
- data/ext/gtk2/rbgtkrecentdata.c +7 -14
- data/ext/gtk2/rbgtkrecentfilter.c +14 -29
- data/ext/gtk2/rbgtkrecentfilterinfo.c +11 -22
- data/ext/gtk2/rbgtkrecentinfo.c +21 -42
- data/ext/gtk2/rbgtkrecentmanager.c +11 -24
- data/ext/gtk2/rbgtkruler.c +6 -12
- data/ext/gtk2/rbgtkscale.c +2 -4
- data/ext/gtk2/rbgtkscalebutton.c +6 -14
- data/ext/gtk2/rbgtkscrolledwindow.c +9 -20
- data/ext/gtk2/rbgtkselection.c +10 -22
- data/ext/gtk2/rbgtkselectiondata.c +19 -41
- data/ext/gtk2/rbgtkseparatormenuitem.c +1 -2
- data/ext/gtk2/rbgtkseparatortoolitem.c +1 -2
- data/ext/gtk2/rbgtksettings.c +10 -22
- data/ext/gtk2/rbgtksizegroup.c +4 -8
- data/ext/gtk2/rbgtksocket.c +4 -8
- data/ext/gtk2/rbgtkspinbutton.c +9 -20
- data/ext/gtk2/rbgtkspinner.c +51 -0
- data/ext/gtk2/rbgtkstatusbar.c +7 -14
- data/ext/gtk2/rbgtkstatusicon.c +5 -10
- data/ext/gtk2/rbgtkstock.c +5 -13
- data/ext/gtk2/rbgtkstyle.c +51 -139
- data/ext/gtk2/rbgtktable.c +14 -33
- data/ext/gtk2/rbgtktargetlist.c +9 -18
- data/ext/gtk2/rbgtktearoffmenuitem.c +1 -2
- data/ext/gtk2/rbgtktextappearance.c +11 -22
- data/ext/gtk2/rbgtktextattributes.c +16 -32
- data/ext/gtk2/rbgtktextbuffer.c +69 -162
- data/ext/gtk2/rbgtktextchild.c +3 -8
- data/ext/gtk2/rbgtktextiter.c +34 -81
- data/ext/gtk2/rbgtktextmark.c +7 -14
- data/ext/gtk2/rbgtktexttag.c +4 -10
- data/ext/gtk2/rbgtktexttagtable.c +7 -15
- data/ext/gtk2/rbgtktextview.c +30 -62
- data/ext/gtk2/rbgtktoggleaction.c +4 -8
- data/ext/gtk2/rbgtktogglebutton.c +4 -10
- data/ext/gtk2/rbgtktoggletoolbutton.c +3 -8
- data/ext/gtk2/rbgtktoolbar.c +20 -46
- data/ext/gtk2/rbgtktoolbutton.c +1 -4
- data/ext/gtk2/rbgtktoolitem.c +16 -34
- data/ext/gtk2/rbgtktooltip.c +5 -10
- data/ext/gtk2/rbgtktooltips.c +7 -14
- data/ext/gtk2/rbgtktreeiter.c +14 -29
- data/ext/gtk2/rbgtktreemodel.c +16 -37
- data/ext/gtk2/rbgtktreemodelfilter.c +13 -36
- data/ext/gtk2/rbgtktreemodelsort.c +8 -16
- data/ext/gtk2/rbgtktreepath.c +13 -28
- data/ext/gtk2/rbgtktreerowreference.c +9 -20
- data/ext/gtk2/rbgtktreeselection.c +20 -47
- data/ext/gtk2/rbgtktreesortable.c +7 -18
- data/ext/gtk2/rbgtktreestore.c +17 -40
- data/ext/gtk2/rbgtktreeview.c +58 -138
- data/ext/gtk2/rbgtktreeviewcolumn.c +20 -46
- data/ext/gtk2/rbgtkuimanager.c +12 -26
- data/ext/gtk2/rbgtkvbbox.c +1 -2
- data/ext/gtk2/rbgtkvbox.c +1 -4
- data/ext/gtk2/rbgtkviewport.c +1 -2
- data/ext/gtk2/rbgtkvolumebutton.c +1 -2
- data/ext/gtk2/rbgtkvpaned.c +1 -2
- data/ext/gtk2/rbgtkvruler.c +1 -2
- data/ext/gtk2/rbgtkvscale.c +1 -4
- data/ext/gtk2/rbgtkvscrollbar.c +1 -4
- data/ext/gtk2/rbgtkvseparator.c +1 -2
- data/ext/gtk2/rbgtkwidget.c +126 -264
- data/ext/gtk2/rbgtkwindow.c +69 -142
- data/ext/gtk2/rbgtkwindowgroup.c +3 -6
- data/lib/1.8/gtk2.so +0 -0
- data/lib/1.9/gtk2.so +0 -0
- data/lib/gtk2/base.rb +1 -2
- data/sample/gtk-demo/main.rb +2 -0
- data/sample/gtk-demo/textview.rb +1 -0
- metadata +15 -13
data/ext/gtk2/rbgtkobject.c
CHANGED
@@ -26,8 +26,7 @@ GtkObject* gtk_object_new (GtkType type,
|
|
26
26
|
*/
|
27
27
|
|
28
28
|
static VALUE
|
29
|
-
gobj_get_type_name(self)
|
30
|
-
VALUE self;
|
29
|
+
gobj_get_type_name(VALUE self)
|
31
30
|
{
|
32
31
|
return CSTR2RVAL(GTK_OBJECT_TYPE_NAME(RVAL2GOBJ(self)));
|
33
32
|
}
|
@@ -79,32 +78,28 @@ void gtk_object_remove_no_notify_by_id
|
|
79
78
|
*/
|
80
79
|
|
81
80
|
static VALUE
|
82
|
-
gobj_destroy(self)
|
83
|
-
VALUE self;
|
81
|
+
gobj_destroy(VALUE self)
|
84
82
|
{
|
85
83
|
gtk_object_destroy(GTK_OBJECT(RVAL2GOBJ(self)));
|
86
84
|
return Qnil;
|
87
85
|
}
|
88
86
|
|
89
87
|
static VALUE
|
90
|
-
gobj_get_flags(self)
|
91
|
-
VALUE self;
|
88
|
+
gobj_get_flags(VALUE self)
|
92
89
|
{
|
93
90
|
/* _GtkObject.flags is int32 */
|
94
91
|
return(INT2FIX(GTK_OBJECT_FLAGS(RVAL2GOBJ(self))));
|
95
92
|
}
|
96
93
|
|
97
94
|
static VALUE
|
98
|
-
gobj_set_flags(self, flags)
|
99
|
-
VALUE self, flags;
|
95
|
+
gobj_set_flags(VALUE self, VALUE flags)
|
100
96
|
{
|
101
97
|
GTK_OBJECT_SET_FLAGS(RVAL2GOBJ(self), NUM2INT(flags));
|
102
98
|
return self;
|
103
99
|
}
|
104
100
|
|
105
101
|
static VALUE
|
106
|
-
gobj_unset_flags(self, flags)
|
107
|
-
VALUE self, flags;
|
102
|
+
gobj_unset_flags(VALUE self, VALUE flags)
|
108
103
|
{
|
109
104
|
GTK_OBJECT_UNSET_FLAGS(RVAL2GOBJ(self), NUM2INT(flags));
|
110
105
|
return self;
|
@@ -112,8 +107,7 @@ gobj_unset_flags(self, flags)
|
|
112
107
|
|
113
108
|
/* Move from Bindings */
|
114
109
|
static VALUE
|
115
|
-
gobj_bindings_activate(self, keyval, modifiers)
|
116
|
-
VALUE self, keyval, modifiers;
|
110
|
+
gobj_bindings_activate(VALUE self, VALUE keyval, VALUE modifiers)
|
117
111
|
{
|
118
112
|
return CBOOL2RVAL(gtk_bindings_activate(GTK_OBJECT(RVAL2GOBJ(self)),
|
119
113
|
NUM2UINT(keyval),
|
@@ -122,8 +116,7 @@ gobj_bindings_activate(self, keyval, modifiers)
|
|
122
116
|
|
123
117
|
/* Move from Bindings */
|
124
118
|
static VALUE
|
125
|
-
gobj_s_binding_set(self)
|
126
|
-
VALUE self;
|
119
|
+
gobj_s_binding_set(VALUE self)
|
127
120
|
{
|
128
121
|
GType gtype;
|
129
122
|
gpointer gclass;
|
data/ext/gtk2/rbgtkoptionmenu.c
CHANGED
@@ -17,32 +17,28 @@
|
|
17
17
|
#ifndef GTK_DISABLE_DEPRECATED /* Since 2.4 */
|
18
18
|
|
19
19
|
static VALUE
|
20
|
-
omenu_initialize(self)
|
21
|
-
VALUE self;
|
20
|
+
omenu_initialize(VALUE self)
|
22
21
|
{
|
23
22
|
RBGTK_INITIALIZE(self, gtk_option_menu_new());
|
24
23
|
return Qnil;
|
25
24
|
}
|
26
25
|
|
27
26
|
static VALUE
|
28
|
-
omenu_remove_menu(self)
|
29
|
-
VALUE self;
|
27
|
+
omenu_remove_menu(VALUE self)
|
30
28
|
{
|
31
29
|
gtk_option_menu_remove_menu(GTK_OPTION_MENU(RVAL2GOBJ(self)));
|
32
30
|
return self;
|
33
31
|
}
|
34
32
|
|
35
33
|
static VALUE
|
36
|
-
omenu_set_history(self, index)
|
37
|
-
VALUE self, index;
|
34
|
+
omenu_set_history(VALUE self, VALUE index)
|
38
35
|
{
|
39
36
|
gtk_option_menu_set_history(GTK_OPTION_MENU(RVAL2GOBJ(self)), NUM2INT(index));
|
40
37
|
return self;
|
41
38
|
}
|
42
39
|
|
43
40
|
static VALUE
|
44
|
-
omenu_get_history(self)
|
45
|
-
VALUE self;
|
41
|
+
omenu_get_history(VALUE self)
|
46
42
|
{
|
47
43
|
return INT2NUM(gtk_option_menu_get_history(GTK_OPTION_MENU(RVAL2GOBJ(self))));
|
48
44
|
}
|
data/ext/gtk2/rbgtkpaned.c
CHANGED
@@ -19,24 +19,21 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
static VALUE
|
22
|
-
paned_add1(self, child)
|
23
|
-
VALUE self, child;
|
22
|
+
paned_add1(VALUE self, VALUE child)
|
24
23
|
{
|
25
24
|
gtk_paned_add1(_SELF(self), RVAL2WIDGET(child));
|
26
25
|
return self;
|
27
26
|
}
|
28
27
|
|
29
28
|
static VALUE
|
30
|
-
paned_add2(self, child)
|
31
|
-
VALUE self, child;
|
29
|
+
paned_add2(VALUE self, VALUE child)
|
32
30
|
{
|
33
31
|
gtk_paned_add2(_SELF(self), RVAL2WIDGET(child));
|
34
32
|
return self;
|
35
33
|
}
|
36
34
|
|
37
35
|
static VALUE
|
38
|
-
paned_pack1(self, child, resize, shrink)
|
39
|
-
VALUE self, child, resize, shrink;
|
36
|
+
paned_pack1(VALUE self, VALUE child, VALUE resize, VALUE shrink)
|
40
37
|
{
|
41
38
|
gtk_paned_pack1(_SELF(self), RVAL2WIDGET(child),
|
42
39
|
RVAL2CBOOL(resize), RVAL2CBOOL(shrink));
|
@@ -44,8 +41,7 @@ paned_pack1(self, child, resize, shrink)
|
|
44
41
|
}
|
45
42
|
|
46
43
|
static VALUE
|
47
|
-
paned_pack2(self, child, resize, shrink)
|
48
|
-
VALUE self, child, resize, shrink;
|
44
|
+
paned_pack2(VALUE self, VALUE child, VALUE resize, VALUE shrink)
|
49
45
|
{
|
50
46
|
gtk_paned_pack2(_SELF(self), RVAL2WIDGET(child),
|
51
47
|
RVAL2CBOOL(resize), RVAL2CBOOL(shrink));
|
@@ -53,45 +49,39 @@ paned_pack2(self, child, resize, shrink)
|
|
53
49
|
}
|
54
50
|
|
55
51
|
static VALUE
|
56
|
-
paned_child1(self)
|
57
|
-
VALUE self;
|
52
|
+
paned_child1(VALUE self)
|
58
53
|
{
|
59
54
|
GtkWidget *child = _SELF(self)->child1;
|
60
55
|
return (child == NULL) ? Qnil : GOBJ2RVAL(child);
|
61
56
|
}
|
62
57
|
|
63
58
|
static VALUE
|
64
|
-
paned_child2(self)
|
65
|
-
VALUE self;
|
59
|
+
paned_child2(VALUE self)
|
66
60
|
{
|
67
61
|
GtkWidget *child = _SELF(self)->child2;
|
68
62
|
return (child == NULL) ? Qnil : GOBJ2RVAL(child);
|
69
63
|
}
|
70
64
|
|
71
65
|
static VALUE
|
72
|
-
paned_child1_resize(self)
|
73
|
-
VALUE self;
|
66
|
+
paned_child1_resize(VALUE self)
|
74
67
|
{
|
75
68
|
return CBOOL2RVAL(_SELF(self)->child1_resize);
|
76
69
|
}
|
77
70
|
|
78
71
|
static VALUE
|
79
|
-
paned_child1_shrink(self)
|
80
|
-
VALUE self;
|
72
|
+
paned_child1_shrink(VALUE self)
|
81
73
|
{
|
82
74
|
return CBOOL2RVAL(_SELF(self)->child1_shrink);
|
83
75
|
}
|
84
76
|
|
85
77
|
static VALUE
|
86
|
-
paned_child2_resize(self)
|
87
|
-
VALUE self;
|
78
|
+
paned_child2_resize(VALUE self)
|
88
79
|
{
|
89
80
|
return CBOOL2RVAL(_SELF(self)->child2_resize);
|
90
81
|
}
|
91
82
|
|
92
83
|
static VALUE
|
93
|
-
paned_child2_shrink(self)
|
94
|
-
VALUE self;
|
84
|
+
paned_child2_shrink(VALUE self)
|
95
85
|
{
|
96
86
|
return CBOOL2RVAL(_SELF(self)->child2_shrink);
|
97
87
|
}
|
data/ext/gtk2/rbgtkplug.c
CHANGED
@@ -15,10 +15,7 @@
|
|
15
15
|
#ifdef HAVE_GTK_PLUG_GET_TYPE
|
16
16
|
|
17
17
|
static VALUE
|
18
|
-
plug_initialize(argc, argv, self)
|
19
|
-
int argc;
|
20
|
-
VALUE *argv;
|
21
|
-
VALUE self;
|
18
|
+
plug_initialize(int argc, VALUE *argv, VALUE self)
|
22
19
|
{
|
23
20
|
VALUE socket_id;
|
24
21
|
GdkNativeWindow id;
|
@@ -46,8 +43,7 @@ GdkDisplay *display,
|
|
46
43
|
*/
|
47
44
|
|
48
45
|
static VALUE
|
49
|
-
plug_construct(self, socket_id)
|
50
|
-
VALUE self, socket_id;
|
46
|
+
plug_construct(VALUE self, VALUE socket_id)
|
51
47
|
{
|
52
48
|
#ifdef GDK_NATIVE_WINDOW_POINTER
|
53
49
|
gtk_plug_construct(GTK_PLUG(RVAL2GOBJ(self)), GUINT_TO_POINTER(NUM2ULONG(socket_id)));
|
@@ -58,8 +54,7 @@ plug_construct(self, socket_id)
|
|
58
54
|
}
|
59
55
|
|
60
56
|
static VALUE
|
61
|
-
plug_get_id(self)
|
62
|
-
VALUE self;
|
57
|
+
plug_get_id(VALUE self)
|
63
58
|
{
|
64
59
|
GdkNativeWindow id = gtk_plug_get_id(GTK_PLUG(RVAL2GOBJ(self)));
|
65
60
|
#ifdef GDK_NATIVE_WINDOW_POINTER
|
@@ -21,10 +21,7 @@ static VALUE s_string, s_bool, s_double, s_length, s_int;
|
|
21
21
|
|
22
22
|
#if GTK_CHECK_VERSION(2,12,0)
|
23
23
|
static VALUE
|
24
|
-
ps_initialize(argc, argv, self)
|
25
|
-
int argc;
|
26
|
-
VALUE *argv;
|
27
|
-
VALUE self;
|
24
|
+
ps_initialize(int argc, VALUE *argv, VALUE self)
|
28
25
|
{
|
29
26
|
VALUE arg1, arg2;
|
30
27
|
GtkPrintSettings* settings = NULL;
|
data/ext/gtk2/rbgtkprogressbar.c
CHANGED
@@ -15,16 +15,14 @@
|
|
15
15
|
#include "global.h"
|
16
16
|
|
17
17
|
static VALUE
|
18
|
-
pbar_initialize(self)
|
19
|
-
VALUE self;
|
18
|
+
pbar_initialize(VALUE self)
|
20
19
|
{
|
21
20
|
RBGTK_INITIALIZE(self, gtk_progress_bar_new());
|
22
21
|
return Qnil;
|
23
22
|
}
|
24
23
|
|
25
24
|
static VALUE
|
26
|
-
pbar_pulse(self)
|
27
|
-
VALUE self;
|
25
|
+
pbar_pulse(VALUE self)
|
28
26
|
{
|
29
27
|
gtk_progress_bar_pulse(GTK_PROGRESS_BAR(RVAL2GOBJ(self)));
|
30
28
|
return self;
|
data/ext/gtk2/rbgtkradioaction.c
CHANGED
@@ -16,8 +16,7 @@
|
|
16
16
|
#define _SELF(self) (GTK_RADIO_ACTION(RVAL2GOBJ(self)))
|
17
17
|
|
18
18
|
static VALUE
|
19
|
-
raction_initialize(self, name, label, tooltip, stock_id, value)
|
20
|
-
VALUE self, name, label, tooltip, stock_id, value;
|
19
|
+
raction_initialize(VALUE self, VALUE name, VALUE label, VALUE tooltip, VALUE stock_id, VALUE value)
|
21
20
|
{
|
22
21
|
const gchar *gstock = NULL;
|
23
22
|
|
@@ -35,16 +34,14 @@ raction_initialize(self, name, label, tooltip, stock_id, value)
|
|
35
34
|
}
|
36
35
|
|
37
36
|
static VALUE
|
38
|
-
raction_get_group(self)
|
39
|
-
VALUE self;
|
37
|
+
raction_get_group(VALUE self)
|
40
38
|
{
|
41
39
|
/* Owned by GTK+ */
|
42
40
|
return GSLIST2ARY(gtk_radio_action_get_group(_SELF(self)));
|
43
41
|
}
|
44
42
|
|
45
43
|
static VALUE
|
46
|
-
raction_set_group(self, group)
|
47
|
-
VALUE self, group;
|
44
|
+
raction_set_group(VALUE self, VALUE group)
|
48
45
|
{
|
49
46
|
long i;
|
50
47
|
GSList *glist = NULL;
|
@@ -64,8 +61,7 @@ raction_set_group(self, group)
|
|
64
61
|
|
65
62
|
#if ! GTK_CHECK_VERSION(2,10,0)
|
66
63
|
static VALUE
|
67
|
-
raction_get_current_value(self)
|
68
|
-
VALUE self;
|
64
|
+
raction_get_current_value(VALUE self)
|
69
65
|
{
|
70
66
|
return INT2NUM(gtk_radio_action_get_current_value(_SELF(self)));
|
71
67
|
}
|
data/ext/gtk2/rbgtkradiobutton.c
CHANGED
@@ -19,8 +19,7 @@ static VALUE gRButton;
|
|
19
19
|
#define _GROUP(s) (NIL_P(s) ? NULL : GTK_RADIO_BUTTON(RVAL2GOBJ(s)))
|
20
20
|
|
21
21
|
static GtkWidget*
|
22
|
-
create_button(group, label, use_underline)
|
23
|
-
VALUE group, label, use_underline;
|
22
|
+
create_button(VALUE group, VALUE label, VALUE use_underline)
|
24
23
|
{
|
25
24
|
GtkWidget* widget = NULL;
|
26
25
|
|
@@ -43,10 +42,7 @@ create_button(group, label, use_underline)
|
|
43
42
|
}
|
44
43
|
|
45
44
|
static VALUE
|
46
|
-
rbtn_initialize(argc, argv, self)
|
47
|
-
int argc;
|
48
|
-
VALUE *argv;
|
49
|
-
VALUE self;
|
45
|
+
rbtn_initialize(int argc, VALUE *argv, VALUE self)
|
50
46
|
{
|
51
47
|
VALUE group_or_label, label_or_use_underline, use_underline;
|
52
48
|
GtkWidget *widget;
|
@@ -66,8 +62,7 @@ rbtn_initialize(argc, argv, self)
|
|
66
62
|
}
|
67
63
|
|
68
64
|
static VALUE
|
69
|
-
rbtn_group(self)
|
70
|
-
VALUE self;
|
65
|
+
rbtn_group(VALUE self)
|
71
66
|
{
|
72
67
|
/* Owened by GTK+ */
|
73
68
|
return GSLIST2ARY(gtk_radio_button_get_group(GTK_RADIO_BUTTON(RVAL2GOBJ(self))));
|
@@ -16,8 +16,7 @@
|
|
16
16
|
#include "global.h"
|
17
17
|
|
18
18
|
static GSList*
|
19
|
-
ary2gslist(ary)
|
20
|
-
VALUE ary;
|
19
|
+
ary2gslist(VALUE ary)
|
21
20
|
{
|
22
21
|
long i;
|
23
22
|
GSList *glist = NULL;
|
@@ -32,10 +31,7 @@ ary2gslist(ary)
|
|
32
31
|
}
|
33
32
|
|
34
33
|
static VALUE
|
35
|
-
rmitem_initialize(argc, argv, self)
|
36
|
-
int argc;
|
37
|
-
VALUE *argv;
|
38
|
-
VALUE self;
|
34
|
+
rmitem_initialize(int argc, VALUE *argv, VALUE self)
|
39
35
|
{
|
40
36
|
VALUE arg1, arg2, arg3;
|
41
37
|
GtkWidget *widget;
|
@@ -79,16 +75,14 @@ rmitem_initialize(argc, argv, self)
|
|
79
75
|
}
|
80
76
|
|
81
77
|
static VALUE
|
82
|
-
rmitem_get_group(self)
|
83
|
-
VALUE self;
|
78
|
+
rmitem_get_group(VALUE self)
|
84
79
|
{
|
85
80
|
/* Owened by GTK+ */
|
86
81
|
return GSLIST2ARY(gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(RVAL2GOBJ(self))));
|
87
82
|
}
|
88
83
|
|
89
84
|
static VALUE
|
90
|
-
rmitem_set_group(self, grp_ary)
|
91
|
-
VALUE self, grp_ary;
|
85
|
+
rmitem_set_group(VALUE self, VALUE grp_ary)
|
92
86
|
{
|
93
87
|
GtkRadioMenuItem *rmitem2add, *rmitem_orig;
|
94
88
|
GSList *group;
|
@@ -18,10 +18,7 @@
|
|
18
18
|
static VALUE gRToolButton;
|
19
19
|
|
20
20
|
static VALUE
|
21
|
-
rbtn_initialize(argc, argv, self)
|
22
|
-
int argc;
|
23
|
-
VALUE *argv;
|
24
|
-
VALUE self;
|
21
|
+
rbtn_initialize(int argc, VALUE *argv, VALUE self)
|
25
22
|
{
|
26
23
|
VALUE group_or_stock_id, stock_id;
|
27
24
|
GtkToolItem *widget;
|
@@ -57,16 +54,14 @@ rbtn_initialize(argc, argv, self)
|
|
57
54
|
}
|
58
55
|
|
59
56
|
static VALUE
|
60
|
-
rbtn_get_group(self)
|
61
|
-
VALUE self;
|
57
|
+
rbtn_get_group(VALUE self)
|
62
58
|
{
|
63
59
|
/* Owned by GTK+ */
|
64
60
|
return GSLIST2ARY(gtk_radio_tool_button_get_group(_SELF(self)));
|
65
61
|
}
|
66
62
|
|
67
63
|
static VALUE
|
68
|
-
rbtn_set_group(self, group)
|
69
|
-
VALUE self, group;
|
64
|
+
rbtn_set_group(VALUE self, VALUE group)
|
70
65
|
{
|
71
66
|
GSList* list = NULL;
|
72
67
|
if (TYPE(group) == T_ARRAY){
|
data/ext/gtk2/rbgtkrange.c
CHANGED
@@ -48,31 +48,27 @@ gdouble gtk_range_get_fill_level (GtkRange *range
|
|
48
48
|
*/
|
49
49
|
|
50
50
|
static VALUE
|
51
|
-
range_get_value(self)
|
52
|
-
VALUE self;
|
51
|
+
range_get_value(VALUE self)
|
53
52
|
{
|
54
53
|
return rb_float_new(gtk_range_get_value(_SELF(self)));
|
55
54
|
}
|
56
55
|
|
57
56
|
static VALUE
|
58
|
-
range_set_increments(self, step, page)
|
59
|
-
VALUE self, step, page;
|
57
|
+
range_set_increments(VALUE self, VALUE step, VALUE page)
|
60
58
|
{
|
61
59
|
gtk_range_set_increments(_SELF(self), NUM2DBL(step), NUM2DBL(page));
|
62
60
|
return self;
|
63
61
|
}
|
64
62
|
|
65
63
|
static VALUE
|
66
|
-
range_set_range(self, min, max)
|
67
|
-
VALUE self, min, max;
|
64
|
+
range_set_range(VALUE self, VALUE min, VALUE max)
|
68
65
|
{
|
69
66
|
gtk_range_set_range(_SELF(self), NUM2DBL(min), NUM2DBL(max));
|
70
67
|
return self;
|
71
68
|
}
|
72
69
|
|
73
70
|
static VALUE
|
74
|
-
range_set_value(self, value)
|
75
|
-
VALUE self, value;
|
71
|
+
range_set_value(VALUE self, VALUE value)
|
76
72
|
{
|
77
73
|
gtk_range_set_value(_SELF(self), NUM2DBL(value));
|
78
74
|
return self;
|
data/ext/gtk2/rbgtkrc.c
CHANGED
@@ -16,16 +16,14 @@
|
|
16
16
|
|
17
17
|
/*
|
18
18
|
static VALUE
|
19
|
-
rc_scanner_new(self)
|
20
|
-
VALUE self;
|
19
|
+
rc_scanner_new(VALUE self)
|
21
20
|
{
|
22
21
|
return BOXED2RVAL(gtk_rc_scanner_new(), GTK_TYPE_GSCANNER);
|
23
22
|
}
|
24
23
|
*/
|
25
24
|
|
26
25
|
static VALUE
|
27
|
-
rc_get_style(self, widget)
|
28
|
-
VALUE self, widget;
|
26
|
+
rc_get_style(VALUE self, VALUE widget)
|
29
27
|
{
|
30
28
|
GtkStyle* style = gtk_rc_get_style(GTK_WIDGET(RVAL2GOBJ(widget)));
|
31
29
|
GType gtype = G_OBJECT_TYPE(style);
|
@@ -37,10 +35,7 @@ rc_get_style(self, widget)
|
|
37
35
|
}
|
38
36
|
|
39
37
|
static VALUE
|
40
|
-
rc_get_style_by_paths(argc, argv, self)
|
41
|
-
int argc;
|
42
|
-
VALUE *argv;
|
43
|
-
VALUE self;
|
38
|
+
rc_get_style_by_paths(int argc, VALUE *argv, VALUE self)
|
44
39
|
{
|
45
40
|
VALUE settings, widget_path, class_path, klass;
|
46
41
|
GtkStyle* style;
|
@@ -66,31 +61,27 @@ rc_get_style_by_paths(argc, argv, self)
|
|
66
61
|
}
|
67
62
|
|
68
63
|
static VALUE
|
69
|
-
rc_parse(self, filename)
|
70
|
-
VALUE self, filename;
|
64
|
+
rc_parse(VALUE self, VALUE filename)
|
71
65
|
{
|
72
66
|
gtk_rc_parse(RVAL2CSTR(filename));
|
73
67
|
return filename;
|
74
68
|
}
|
75
69
|
|
76
70
|
static VALUE
|
77
|
-
rc_parse_string(self, rc_string)
|
78
|
-
VALUE self, rc_string;
|
71
|
+
rc_parse_string(VALUE self, VALUE rc_string)
|
79
72
|
{
|
80
73
|
gtk_rc_parse_string(RVAL2CSTR(rc_string));
|
81
74
|
return rc_string;
|
82
75
|
}
|
83
76
|
|
84
77
|
static VALUE
|
85
|
-
rc_reparse_all(self)
|
86
|
-
VALUE self;
|
78
|
+
rc_reparse_all(VALUE self)
|
87
79
|
{
|
88
80
|
return CBOOL2RVAL(gtk_rc_reparse_all());
|
89
81
|
}
|
90
82
|
|
91
83
|
static VALUE
|
92
|
-
rc_reparse_all_for_settings(self, settings, force_load)
|
93
|
-
VALUE self, settings, force_load;
|
84
|
+
rc_reparse_all_for_settings(VALUE self, VALUE settings, VALUE force_load)
|
94
85
|
{
|
95
86
|
return CBOOL2RVAL(gtk_rc_reparse_all_for_settings(GTK_SETTINGS(RVAL2GOBJ(settings)),
|
96
87
|
RVAL2CBOOL(force_load)));
|
@@ -98,8 +89,7 @@ rc_reparse_all_for_settings(self, settings, force_load)
|
|
98
89
|
|
99
90
|
#if GTK_CHECK_VERSION(2,4,0)
|
100
91
|
static VALUE
|
101
|
-
rc_reset_styles(self, settings)
|
102
|
-
VALUE self, settings;
|
92
|
+
rc_reset_styles(VALUE self, VALUE settings)
|
103
93
|
{
|
104
94
|
gtk_rc_reset_styles(GTK_SETTINGS(RVAL2GOBJ(settings)));
|
105
95
|
return settings;
|
@@ -107,16 +97,14 @@ rc_reset_styles(self, settings)
|
|
107
97
|
#endif
|
108
98
|
|
109
99
|
static VALUE
|
110
|
-
rc_add_default_file(self, filename)
|
111
|
-
VALUE self, filename;
|
100
|
+
rc_add_default_file(VALUE self, VALUE filename)
|
112
101
|
{
|
113
102
|
gtk_rc_add_default_file(RVAL2CSTR(filename));
|
114
103
|
return filename;
|
115
104
|
}
|
116
105
|
|
117
106
|
static VALUE
|
118
|
-
rc_get_default_files(self)
|
119
|
-
VALUE self;
|
107
|
+
rc_get_default_files(VALUE self)
|
120
108
|
{
|
121
109
|
gchar** files = gtk_rc_get_default_files();
|
122
110
|
VALUE ary = rb_ary_new();
|
@@ -128,8 +116,7 @@ rc_get_default_files(self)
|
|
128
116
|
}
|
129
117
|
|
130
118
|
static VALUE
|
131
|
-
rc_set_default_files(self, filenames)
|
132
|
-
VALUE self, filenames;
|
119
|
+
rc_set_default_files(VALUE self, VALUE filenames)
|
133
120
|
{
|
134
121
|
int i;
|
135
122
|
gchar** gfiles = g_new(gchar*, RARRAY_LEN(filenames) + 1);
|
@@ -153,8 +140,7 @@ guint gtk_rc_parse_priority (GScanner *scanner,
|
|
153
140
|
*/
|
154
141
|
|
155
142
|
static VALUE
|
156
|
-
rc_find_module_in_path(self, module_file)
|
157
|
-
VALUE self, module_file;
|
143
|
+
rc_find_module_in_path(VALUE self, VALUE module_file)
|
158
144
|
{
|
159
145
|
return CSTR2RVAL_FREE(gtk_rc_find_module_in_path(RVAL2CSTR(module_file)));
|
160
146
|
}
|
@@ -166,29 +152,25 @@ gchar* gtk_rc_find_pixmap_in_path (GtkSettings *settings,
|
|
166
152
|
*/
|
167
153
|
|
168
154
|
static VALUE
|
169
|
-
rc_get_module_dir(self)
|
170
|
-
VALUE self;
|
155
|
+
rc_get_module_dir(VALUE self)
|
171
156
|
{
|
172
157
|
return CSTR2RVAL_FREE(gtk_rc_get_module_dir());
|
173
158
|
}
|
174
159
|
|
175
160
|
static VALUE
|
176
|
-
rc_get_im_module_path(self)
|
177
|
-
VALUE self;
|
161
|
+
rc_get_im_module_path(VALUE self)
|
178
162
|
{
|
179
163
|
return CSTR2RVAL(gtk_rc_get_im_module_path());
|
180
164
|
}
|
181
165
|
|
182
166
|
static VALUE
|
183
|
-
rc_get_im_module_file(self)
|
184
|
-
VALUE self;
|
167
|
+
rc_get_im_module_file(VALUE self)
|
185
168
|
{
|
186
169
|
return CSTR2RVAL(gtk_rc_get_im_module_file());
|
187
170
|
}
|
188
171
|
|
189
172
|
static VALUE
|
190
|
-
rc_get_theme_dir(self)
|
191
|
-
VALUE self;
|
173
|
+
rc_get_theme_dir(VALUE self)
|
192
174
|
{
|
193
175
|
return CSTR2RVAL_FREE(gtk_rc_get_theme_dir());
|
194
176
|
}
|