gtk3 3.0.8-x64-mingw32 → 3.0.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gtk3/rb-gtk3.c +17 -0
- data/lib/2.2/gtk3.so +0 -0
- data/lib/2.3/gtk3.so +0 -0
- data/lib/gtk3/container.rb +0 -7
- data/lib/gtk3/deprecated.rb +3 -3
- data/lib/gtk3/image.rb +7 -7
- data/lib/gtk3/loader.rb +11 -5
- data/lib/gtk3/text-buffer.rb +33 -12
- data/lib/gtk3/text-view.rb +53 -0
- data/lib/gtk3/tree-model.rb +5 -0
- data/lib/gtk3/tree-view.rb +25 -0
- data/lib/gtk3/widget.rb +0 -5
- data/sample/gtk-demo/TODO +10 -6
- data/sample/gtk-demo/application.ui +93 -70
- data/sample/gtk-demo/appmenu.ui +19 -0
- data/sample/gtk-demo/assistant.rb +1 -0
- data/sample/gtk-demo/css_accordion.css +8 -8
- data/sample/gtk-demo/css_accordion.rb +2 -2
- data/sample/gtk-demo/css_basics.css +1 -1
- data/sample/gtk-demo/css_basics.rb +2 -2
- data/sample/gtk-demo/css_multiplebgs.rb +2 -2
- data/sample/gtk-demo/css_pixbufs.css +2 -2
- data/sample/gtk-demo/css_pixbufs.rb +2 -2
- data/sample/gtk-demo/css_shadows.css +5 -5
- data/sample/gtk-demo/css_shadows.rb +2 -2
- data/sample/gtk-demo/cssview.css +5 -5
- data/sample/gtk-demo/data/16x16/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/16x16/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/22x22/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/22x22/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/24x24/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/24x24/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/256x256/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/256x256/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/32x32/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/32x32/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/48x48/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/48x48/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/512x512/gtk3-demo-symbolic.symbolic.png +0 -0
- data/sample/gtk-demo/data/512x512/gtk3-demo.png +0 -0
- data/sample/gtk-demo/data/source.svg +2886 -0
- data/sample/gtk-demo/data/symbolic-source.svg +29 -0
- data/sample/gtk-demo/demo.gresource.xml +16 -5
- data/sample/gtk-demo/demo.ui +1 -0
- data/sample/gtk-demo/font_features.rb +1 -1
- data/sample/gtk-demo/main.rb +2 -2
- data/sample/gtk-demo/main.ui +18 -36
- data/sample/gtk-demo/markup.rb +53 -8
- data/sample/gtk-demo/markup.txt +2 -2
- data/sample/gtk-demo/org.gtk.Demo.gschema.xml +9 -0
- data/sample/gtk-demo/pixbufs.rb +105 -145
- data/sample/gtk-demo/reset.css +1 -58
- data/sample/gtk-demo/rotated_text.rb +119 -55
- data/sample/gtk-demo/shortcuts-boxes.ui +167 -0
- data/sample/gtk-demo/shortcuts-builder.ui +547 -0
- data/sample/gtk-demo/shortcuts-clocks.ui +166 -0
- data/sample/gtk-demo/shortcuts-gedit.ui +172 -0
- data/sample/gtk-demo/shortcuts.ui +65 -0
- data/sample/gtk-demo/stack.ui +5 -5
- data/sample/gtk-demo/textscroll.rb +106 -0
- data/sample/gtk-demo/theming.ui +58 -22
- data/sample/gtk-demo/theming_style_classes.rb +5 -4
- data/sample/gtk-demo/transparent.rb +143 -0
- data/sample/misc/aboutdialog.rb +1 -1
- data/sample/misc/bindings.rb +36 -15
- data/sample/misc/combobox.rb +1 -1
- data/sample/misc/dnd.rb +3 -3
- data/sample/misc/icons-theme-viewer.rb +1 -1
- data/sample/misc/iconview.rb +2 -2
- data/sample/misc/textbuffer-serialize.rb +18 -14
- data/sample/misc/to-drawable.rb +2 -2
- data/sample/misc/tooltips.rb +1 -0
- data/sample/misc/treeview.rb +1 -1
- data/sample/tutorial/README.md +18 -18
- data/test/test-gtk-clipboard.rb +1 -1
- data/test/test-gtk-combo-box.rb +2 -2
- data/test/test-gtk-icon-view.rb +2 -2
- data/test/test-gtk-image.rb +1 -1
- data/test/test-gtk-list-store.rb +9 -3
- data/test/test-gtk-text-view.rb +64 -0
- data/test/test-gtk-tree-path.rb +1 -3
- data/test/test-gtk-tree-view.rb +97 -0
- data/test/test-gtk-window.rb +2 -2
- data/test/test-pango-context.rb +56 -0
- metadata +46 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d4c6d7c627b774896a5712dd375d9a2b9744eb
|
4
|
+
data.tar.gz: bebcaad58216f7456606f7dbd7a054f77bcf1c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53b069ac6f30d207359e4ecfadf08667e2ce9edaab289d66d063caede7d95bd31c42e550d71b7ae90d6f0fbd280447d40a8a7b233555fb0593209ca83a9e2243
|
7
|
+
data.tar.gz: 135524069fd771b3939dd9fe87235109a12c0fe6e1e00e08c98427ecbe7e0af7d3cb07ab786213375f487a9189575ce868075fb554289983da9484791c2892f6
|
data/ext/gtk3/rb-gtk3.c
CHANGED
@@ -575,6 +575,21 @@ rb_gtk3_ui_manager_mark(gpointer object)
|
|
575
575
|
}
|
576
576
|
#endif
|
577
577
|
|
578
|
+
static void
|
579
|
+
rb_gtk3_text_tag_table_mark_body(GtkTextTag *tag, gpointer data)
|
580
|
+
{
|
581
|
+
rbgobj_gc_mark_instance(tag);
|
582
|
+
}
|
583
|
+
|
584
|
+
static void
|
585
|
+
rb_gtk3_text_tag_table_mark(gpointer object)
|
586
|
+
{
|
587
|
+
GtkTextTagTable *table;
|
588
|
+
|
589
|
+
table = GTK_TEXT_TAG_TABLE(object);
|
590
|
+
gtk_text_tag_table_foreach(table, rb_gtk3_text_tag_table_mark_body, NULL);
|
591
|
+
}
|
592
|
+
|
578
593
|
void
|
579
594
|
rbgtk3_class_init_func(gpointer g_class, G_GNUC_UNUSED gpointer class_data)
|
580
595
|
{
|
@@ -614,6 +629,8 @@ Init_gtk3(void)
|
|
614
629
|
#ifndef RB_GTK_UI_MANAGER_IS_DEPRECATED
|
615
630
|
rbgobj_register_mark_func(GTK_TYPE_UI_MANAGER, rb_gtk3_ui_manager_mark);
|
616
631
|
#endif
|
632
|
+
rbgobj_register_mark_func(GTK_TYPE_TEXT_TAG_TABLE,
|
633
|
+
rb_gtk3_text_tag_table_mark);
|
617
634
|
|
618
635
|
rbgtk3_cell_layout_init();
|
619
636
|
rbgtk3_container_init();
|
data/lib/2.2/gtk3.so
CHANGED
Binary file
|
data/lib/2.3/gtk3.so
CHANGED
Binary file
|
data/lib/gtk3/container.rb
CHANGED
data/lib/gtk3/deprecated.rb
CHANGED
@@ -297,7 +297,7 @@ module Gtk
|
|
297
297
|
case icon
|
298
298
|
when Symbol
|
299
299
|
context.set_icon(:stock_id => icon, :hot_x => hot_x, :hot_y => hot_y)
|
300
|
-
when
|
300
|
+
when GdkPixbuf::Pixbuf
|
301
301
|
context.set_icon(:pixbuf => icon, :hot_x => hot_x, :hot_y => hot_y)
|
302
302
|
when Gtk::Widget
|
303
303
|
context.set_icon(:widget => icon, :hot_x => hot_x, :hot_y => hot_y)
|
@@ -523,7 +523,7 @@ module Gtk
|
|
523
523
|
end
|
524
524
|
when Symbol
|
525
525
|
[{:stock => image, :size => size}]
|
526
|
-
when
|
526
|
+
when GdkPixbuf::Pixbuf
|
527
527
|
[{:pixbuf => image}]
|
528
528
|
when Gtk::IconSet
|
529
529
|
[{:icon_set => image, :size => size}]
|
@@ -531,7 +531,7 @@ module Gtk
|
|
531
531
|
[{:icon => image, :size => size}]
|
532
532
|
else
|
533
533
|
message =
|
534
|
-
"Image must be String, Symbol,
|
534
|
+
"Image must be String, Symbol, GdkPixbuf::Pixbuf, Gtk::IconSet or " +
|
535
535
|
"Gio::Icon: #{image.inspect}"
|
536
536
|
raise ArgumentError, message
|
537
537
|
end
|
data/lib/gtk3/image.rb
CHANGED
@@ -21,7 +21,7 @@ module Gtk
|
|
21
21
|
# given.
|
22
22
|
#
|
23
23
|
# @param Hash{Symbol => Gtk::Stock, String, Gtk::IconSet, Gio::Icon,
|
24
|
-
#
|
24
|
+
# GdkPixbuf::Pixbuf, GdkPixbuf::PixbufAnimation, Cairo::Surface,
|
25
25
|
# Fixnum}
|
26
26
|
#
|
27
27
|
# @example Create an empty image.
|
@@ -45,18 +45,18 @@ module Gtk
|
|
45
45
|
# icon = Gio::ThemedIcon.new 'gtk-open'
|
46
46
|
# image = Gtk::Image.new :icon => icon, :size => :dialog
|
47
47
|
#
|
48
|
-
# @example Create an image from a
|
49
|
-
# pixbuf =
|
48
|
+
# @example Create an image from a GdkPixbuf::Pixbuf.
|
49
|
+
# pixbuf = GdkPixbuf::Pixbuf.new(:file => 'path/to/the/image.png')
|
50
50
|
# image = Gtk::Image.new :pixbuf => pixbuf
|
51
51
|
#
|
52
52
|
# @example Create an image from an Gtk::IconSet, that itself is created
|
53
|
-
# from a
|
54
|
-
# pixbuf =
|
53
|
+
# from a GdkPixbuf::Pixbuf.
|
54
|
+
# pixbuf = GdkPixbuf::Pixbuf.new(:file => 'path/to/the/image.png')
|
55
55
|
# iconSet = Gtk::IconSet.new pixbuf
|
56
56
|
# image = Gtk::Image.new :icon_set => iconSet, :size => :dialog
|
57
57
|
#
|
58
|
-
# @example Create an image from a
|
59
|
-
# pixAnim =
|
58
|
+
# @example Create an image from a GdkPixbuf::PixbufAnimation
|
59
|
+
# pixAnim = GdkPixbuf::PixbufAnimation.new 'anim.gif'
|
60
60
|
# image = Gtk::Image.new :animation => pixAnim
|
61
61
|
#
|
62
62
|
# @example Create an image from a file in a resource file
|
data/lib/gtk3/loader.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014-
|
1
|
+
# Copyright (C) 2014-2016 Ruby-GNOME2 Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -142,6 +142,7 @@ module Gtk
|
|
142
142
|
require "gtk3/text-buffer"
|
143
143
|
require "gtk3/text-iter"
|
144
144
|
require "gtk3/text-tag-table"
|
145
|
+
require "gtk3/text-view"
|
145
146
|
require "gtk3/toggle-action"
|
146
147
|
require "gtk3/toggle-button"
|
147
148
|
require "gtk3/tool-button"
|
@@ -239,10 +240,15 @@ module Gtk
|
|
239
240
|
end
|
240
241
|
end
|
241
242
|
|
242
|
-
def
|
243
|
-
case info
|
244
|
-
when
|
245
|
-
|
243
|
+
def rubyish_class_name(info)
|
244
|
+
case info
|
245
|
+
when GObjectIntrospection::EnumInfo
|
246
|
+
case info.name
|
247
|
+
when /\ARc/
|
248
|
+
"RC#{$POSTMATCH}"
|
249
|
+
else
|
250
|
+
super
|
251
|
+
end
|
246
252
|
else
|
247
253
|
super
|
248
254
|
end
|
data/lib/gtk3/text-buffer.rb
CHANGED
@@ -29,6 +29,37 @@ module Gtk
|
|
29
29
|
tag
|
30
30
|
end
|
31
31
|
|
32
|
+
alias_method :add_mark_raw, :add_mark
|
33
|
+
def add_mark(mark, where)
|
34
|
+
@marks ||= {}
|
35
|
+
add_mark_raw(mark, where)
|
36
|
+
mark_name = mark.name
|
37
|
+
@marks[mark_name] = mark if mark_name
|
38
|
+
end
|
39
|
+
|
40
|
+
alias_method :create_mark_raw, :create_mark
|
41
|
+
def create_mark(name, where, options={})
|
42
|
+
if options == true or options == false
|
43
|
+
options = {:left_gravity => options}
|
44
|
+
end
|
45
|
+
left_gravity = options[:left_gravity]
|
46
|
+
left_gravity = true if left_gravity.nil?
|
47
|
+
@marks ||= {}
|
48
|
+
if name.nil?
|
49
|
+
create_mark_raw(name, where, left_gravity)
|
50
|
+
else
|
51
|
+
@marks[name] = create_mark_raw(name, where, left_gravity)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
alias_method :delete_mark_raw, :delete_mark
|
56
|
+
def delete_mark(mark)
|
57
|
+
@marks ||= {}
|
58
|
+
mark_name = mark.name
|
59
|
+
delete_mark_raw(mark)
|
60
|
+
@marks.delete(mark_name) if mark_name
|
61
|
+
end
|
62
|
+
|
32
63
|
# prevent collision with deprecated methods.
|
33
64
|
alias_method :get_iter_at_line_offset_raw, :get_iter_at_line_offset
|
34
65
|
alias_method :get_iter_at_line_index_raw, :get_iter_at_line_index
|
@@ -99,7 +130,7 @@ module Gtk
|
|
99
130
|
insert_interactive(iter, target, default_editable)
|
100
131
|
else
|
101
132
|
case target
|
102
|
-
when
|
133
|
+
when GdkPixbuf::Pixbuf
|
103
134
|
insert_pixbuf_raw(iter, target)
|
104
135
|
when TextChildAnchor
|
105
136
|
insert_text_child_anchor_raw(iter, target)
|
@@ -148,19 +179,9 @@ module Gtk
|
|
148
179
|
end
|
149
180
|
end
|
150
181
|
|
151
|
-
alias_method :serialize_formats_raw, :serialize_formats
|
152
|
-
def serialize_formats
|
153
|
-
serialize_formats_raw[0]
|
154
|
-
end
|
155
|
-
|
156
|
-
alias_method :deserialize_formats_raw, :deserialize_formats
|
157
|
-
def deserialize_formats
|
158
|
-
deserialize_formats_raw[0]
|
159
|
-
end
|
160
|
-
|
161
182
|
alias_method :serialize_raw, :serialize
|
162
183
|
def serialize(*arguments)
|
163
|
-
serialize_raw(*arguments)
|
184
|
+
serialize_raw(*arguments).pack("C*")
|
164
185
|
end
|
165
186
|
|
166
187
|
alias_method :selection_bounds_raw, :selection_bounds
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Copyright (C) 2016 Ruby-GNOME2 Project Team
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License as published by the Free Software Foundation; either
|
6
|
+
# version 2.1 of the License, or (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This library is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
# Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public
|
14
|
+
# License along with this library; if not, write to the Free Software
|
15
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
|
+
|
17
|
+
module Gtk
|
18
|
+
class TextView
|
19
|
+
def get_iter_at(options)
|
20
|
+
location = options[:location]
|
21
|
+
position = options[:position]
|
22
|
+
|
23
|
+
if location
|
24
|
+
get_iter_at_location(*location)
|
25
|
+
elsif position
|
26
|
+
get_iter_at_position(*position)
|
27
|
+
else
|
28
|
+
message = "must specify :location or :position: #{options.inspect}"
|
29
|
+
raise ArgumentError, message
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
alias_method :get_iter_at_location_raw, :get_iter_at_location
|
34
|
+
def get_iter_at_location(x, y)
|
35
|
+
found, iter = get_iter_at_location_raw(x, y)
|
36
|
+
if found
|
37
|
+
iter
|
38
|
+
else
|
39
|
+
nil
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
alias_method :get_iter_at_position_raw, :get_iter_at_position
|
44
|
+
def get_iter_at_position(x, y)
|
45
|
+
found, iter, trailing = get_iter_at_position_raw(x, y)
|
46
|
+
if found
|
47
|
+
[iter, trailing]
|
48
|
+
else
|
49
|
+
nil
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/gtk3/tree-model.rb
CHANGED
@@ -100,6 +100,11 @@ module Gtk
|
|
100
100
|
set(iter, columns, _values)
|
101
101
|
end
|
102
102
|
|
103
|
+
alias_method :get_column_type_raw, :get_column_type
|
104
|
+
def get_column_type(index)
|
105
|
+
(@column_types ||= {})[index] ||= get_column_type_raw(index)
|
106
|
+
end
|
107
|
+
|
103
108
|
private
|
104
109
|
def setup_iter(iter)
|
105
110
|
iter.model = self
|
data/lib/gtk3/tree-view.rb
CHANGED
@@ -61,5 +61,30 @@ module Gtk
|
|
61
61
|
raise ArgumentError, "wrong number of arguments (#{args.size} for 2..4)"
|
62
62
|
end
|
63
63
|
end
|
64
|
+
|
65
|
+
alias_method :expand_row_raw, :expand_row
|
66
|
+
def expand_row(path, options={})
|
67
|
+
if options == true or options == false
|
68
|
+
open_all = options
|
69
|
+
else
|
70
|
+
open_all = options[:open_all]
|
71
|
+
open_all = true if open_all.nil?
|
72
|
+
end
|
73
|
+
|
74
|
+
expand_row_raw(path, open_all)
|
75
|
+
end
|
76
|
+
|
77
|
+
private
|
78
|
+
def create_signal_handler(signal_name, callback)
|
79
|
+
case signal_name
|
80
|
+
when "row-collapsed", "row-expanded"
|
81
|
+
lambda do |tree_view, iter, path, *extra_args|
|
82
|
+
iter.model = tree_view.model
|
83
|
+
callback.call(tree_view, iter, path, *extra_args)
|
84
|
+
end
|
85
|
+
else
|
86
|
+
super
|
87
|
+
end
|
88
|
+
end
|
64
89
|
end
|
65
90
|
end
|
data/lib/gtk3/widget.rb
CHANGED
@@ -50,11 +50,6 @@ module Gtk
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
alias_method :style_properties_raw, :style_properties
|
54
|
-
def style_properties
|
55
|
-
style_properties_raw[0]
|
56
|
-
end
|
57
|
-
|
58
53
|
alias_method :set_connect_func_raw, :set_connect_func
|
59
54
|
def set_connect_func(&block)
|
60
55
|
set_connect_func_raw do |*args|
|
data/sample/gtk-demo/TODO
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# C version (3.19.1) versus Ruby version
|
2
2
|
|
3
|
-
|
3
|
+
# Ruby version : is there already a ruby version of the demo
|
4
|
+
# Updated 3.19 : if there is a ruby version is it udapted to 3.19
|
5
|
+
# Changed? 3.20: does this demo has changed with version 3.20
|
6
|
+
#
|
7
|
+
C version Ruby version Updated 3.20
|
4
8
|
application.c no no
|
5
9
|
assistant.c ok ok
|
6
10
|
builder.c ok ok
|
@@ -25,6 +29,7 @@ expander.c ok ok
|
|
25
29
|
filtermodel.c ok ok
|
26
30
|
flowbox.c no no
|
27
31
|
font_features.c ok ok
|
32
|
+
foreigndrawing no no
|
28
33
|
gestures.c no no
|
29
34
|
glarea.c no no
|
30
35
|
headerbar.c ok ok
|
@@ -45,11 +50,11 @@ overlay.c ok ok
|
|
45
50
|
overlay2.c ok ok
|
46
51
|
panes.c ok ok
|
47
52
|
pickers.c ok ok
|
48
|
-
pixbufs.c ok
|
53
|
+
pixbufs.c ok ok
|
49
54
|
popover.c ok ok
|
50
55
|
printing.c ok ok
|
51
56
|
revealer.c ok ok
|
52
|
-
rotated_text.c ok
|
57
|
+
rotated_text.c ok ok
|
53
58
|
scale.c ok ok
|
54
59
|
search_entry.c no no
|
55
60
|
search_entry2.c ok ok
|
@@ -60,11 +65,11 @@ spinbutton.c no no
|
|
60
65
|
spinner.c ok ok
|
61
66
|
stack.c ok ok
|
62
67
|
textmask.c ok ok
|
63
|
-
textscroll.c
|
68
|
+
textscroll.c ok ok
|
64
69
|
textview.c ok no
|
65
70
|
theming_style_classes.c ok ok
|
66
71
|
toolpalette.c no no
|
67
|
-
transparent.c
|
72
|
+
transparent.c ok ok
|
68
73
|
tree_store.c ok no
|
69
74
|
|
70
75
|
# Ruby version
|
@@ -72,4 +77,3 @@ Check all the ruby demos that doesn't correspond to a C version.
|
|
72
77
|
|
73
78
|
# Demo that are not to be done
|
74
79
|
pagesetup.c
|
75
|
-
|
@@ -1,100 +1,123 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<interface>
|
3
|
-
<
|
3
|
+
<template class="DemoApplicationWindow" parent="GtkApplicationWindow">
|
4
|
+
<property name="title" translatable="yes">Application Class</property>
|
5
|
+
<property name="default-width">200</property>
|
6
|
+
<property name="default-height">200</property>
|
7
|
+
<property name="icon-name">document-open</property>
|
4
8
|
<child>
|
5
|
-
<object class="
|
6
|
-
<property name="
|
7
|
-
<style>
|
8
|
-
<class name="primary-toolbar"/>
|
9
|
-
</style>
|
10
|
-
<child>
|
11
|
-
<object class="GtkMenuToolButton" id="menutool">
|
12
|
-
<property name="icon-name">document-open</property>
|
13
|
-
</object>
|
14
|
-
</child>
|
9
|
+
<object class="GtkGrid">
|
10
|
+
<property name="visible">1</property>
|
15
11
|
<child>
|
16
|
-
<object class="
|
17
|
-
<property name="
|
18
|
-
<property name="
|
12
|
+
<object class="GtkToolbar">
|
13
|
+
<property name="visible">1</property>
|
14
|
+
<property name="hexpand">1</property>
|
15
|
+
<style>
|
16
|
+
<class name="primary-toolbar"/>
|
17
|
+
</style>
|
18
|
+
<child>
|
19
|
+
<object class="GtkMenuToolButton" id="menutool">
|
20
|
+
<property name="visible">1</property>
|
21
|
+
<property name="icon-name">document-open</property>
|
22
|
+
</object>
|
23
|
+
</child>
|
24
|
+
<child>
|
25
|
+
<object class="GtkToolButton">
|
26
|
+
<property name="visible">1</property>
|
27
|
+
<property name="icon-name">application-exit</property>
|
28
|
+
<property name="action-name">app.quit</property>
|
29
|
+
</object>
|
30
|
+
</child>
|
31
|
+
<child>
|
32
|
+
<object class="GtkSeparatorToolItem">
|
33
|
+
<property name="visible">1</property>
|
34
|
+
</object>
|
35
|
+
</child>
|
36
|
+
<child>
|
37
|
+
<object class="GtkToolButton">
|
38
|
+
<property name="visible">1</property>
|
39
|
+
<property name="icon-name">applications-other</property>
|
40
|
+
<property name="action-name">win.logo</property>
|
41
|
+
</object>
|
42
|
+
</child>
|
19
43
|
</object>
|
44
|
+
<packing>
|
45
|
+
<property name="left-attach">0</property>
|
46
|
+
<property name="top-attach">0</property>
|
47
|
+
</packing>
|
20
48
|
</child>
|
21
49
|
<child>
|
22
|
-
<object class="
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
50
|
+
<object class="GtkInfoBar" id="infobar">
|
51
|
+
<property name="no-show-all">1</property>
|
52
|
+
<property name="hexpand">1</property>
|
53
|
+
<child internal-child="content_area">
|
54
|
+
<object class="GtkBox" id="content_area">
|
55
|
+
<child>
|
56
|
+
<object class="GtkLabel" id="message">
|
57
|
+
<property name="visible">1</property>
|
58
|
+
<property name="hexpand">1</property>
|
59
|
+
</object>
|
60
|
+
</child>
|
61
|
+
</object>
|
62
|
+
</child>
|
63
|
+
<child internal-child="action_area">
|
64
|
+
<object class="GtkBox">
|
65
|
+
<child>
|
66
|
+
<object class="GtkButton">
|
67
|
+
<property name="visible">1</property>
|
68
|
+
<property name="valign">center</property>
|
69
|
+
<property name="label" translatable="yes">_OK</property>
|
70
|
+
<property name="use_underline">1</property>
|
71
|
+
<signal name="clicked" handler="clicked_cb"/>
|
72
|
+
</object>
|
73
|
+
</child>
|
46
74
|
</object>
|
47
75
|
</child>
|
48
76
|
</object>
|
77
|
+
<packing>
|
78
|
+
<property name="left-attach">0</property>
|
79
|
+
<property name="top-attach">1</property>
|
80
|
+
</packing>
|
49
81
|
</child>
|
50
|
-
<child
|
51
|
-
<object class="
|
82
|
+
<child>
|
83
|
+
<object class="GtkScrolledWindow">
|
84
|
+
<property name="visible">1</property>
|
85
|
+
<property name="shadow-type">in</property>
|
52
86
|
<child>
|
53
|
-
<object class="
|
87
|
+
<object class="GtkTextView">
|
54
88
|
<property name="visible">1</property>
|
55
|
-
<property name="
|
56
|
-
<property name="
|
57
|
-
<property name="
|
89
|
+
<property name="hexpand">1</property>
|
90
|
+
<property name="vexpand">1</property>
|
91
|
+
<property name="buffer">buffer</property>
|
58
92
|
</object>
|
59
93
|
</child>
|
60
94
|
</object>
|
95
|
+
<packing>
|
96
|
+
<property name="left-attach">0</property>
|
97
|
+
<property name="top-attach">2</property>
|
98
|
+
</packing>
|
61
99
|
</child>
|
62
|
-
</object>
|
63
|
-
<packing>
|
64
|
-
<property name="left-attach">0</property>
|
65
|
-
<property name="top-attach">1</property>
|
66
|
-
</packing>
|
67
|
-
</child>
|
68
|
-
<child>
|
69
|
-
<object class="GtkScrolledWindow" id="sw">
|
70
|
-
<property name="shadow-type">in</property>
|
71
100
|
<child>
|
72
|
-
<object class="
|
101
|
+
<object class="GtkStatusbar" id="status">
|
73
102
|
<property name="hexpand">1</property>
|
74
|
-
<property name="
|
103
|
+
<property name="visible">1</property>
|
75
104
|
</object>
|
105
|
+
<packing>
|
106
|
+
<property name="left-attach">0</property>
|
107
|
+
<property name="top-attach">3</property>
|
108
|
+
</packing>
|
76
109
|
</child>
|
77
110
|
</object>
|
78
|
-
<packing>
|
79
|
-
<property name="left-attach">0</property>
|
80
|
-
<property name="top-attach">2</property>
|
81
|
-
</packing>
|
82
111
|
</child>
|
83
|
-
|
84
|
-
<object class="GtkStatusbar" id="status">
|
85
|
-
<property name="hexpand">1</property>
|
86
|
-
<property name="visible">1</property>
|
87
|
-
</object>
|
88
|
-
<packing>
|
89
|
-
<property name="left-attach">0</property>
|
90
|
-
<property name="top-attach">3</property>
|
91
|
-
</packing>
|
92
|
-
</child>
|
93
|
-
</object>
|
112
|
+
</template>
|
94
113
|
<menu id="toolmenu">
|
95
114
|
<item>
|
96
115
|
<attribute name="label">File1</attribute>
|
97
116
|
<attribute name="action">win.file1</attribute>
|
98
117
|
</item>
|
99
118
|
</menu>
|
119
|
+
<object class="GtkTextBuffer" id="buffer">
|
120
|
+
<signal name="changed" handler="update_statusbar"/>
|
121
|
+
<signal name="mark-set" handler="mark_set_callback"/>
|
122
|
+
</object>
|
100
123
|
</interface>
|