Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSyabro committed Aug 16, 2022
1 parent f62bf84 commit d1067b8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('lgi_example',
version: '0.1.0',
version: '0.1.1',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2',
'werror=false',
Expand Down
3 changes: 3 additions & 0 deletions src/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ end
function UI.about_button:on_clicked()
print("About button clicked")
local dialog = Gtk.AboutDialog {
authors = {"Alexandr"},
transient_for = self,
modal = true,
program_name = CONFIG.name,
version = CONFIG.version,
website = "https://github.com/MrSyabro/lgi_example"
Expand Down
15 changes: 8 additions & 7 deletions src/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,40 @@
<object class="GtkLabel">
<property name="justify">center</property>
<property name="label">Lua LGI Example</property>
<attributes>
<attribute name="font-desc" value="Cantarell 22"/>
<attribute name="weight" value="bold"/>
<attribute name="underline" value="True"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label">Этот пример написан на Lua с использованием LGI библиотеки. Упакованый в Flatpak.</property>
<property name="use-underline">True</property>
<property name="vexpand">True</property>
<property name="wrap">True</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="homogeneous">True</property>
<property name="margin-bottom">6</property>
<property name="margin-end">6</property>
<property name="margin-start">6</property>
<property name="margin-top">6</property>
<property name="spacing">6</property>
<property name="vexpand-set">True</property>
<child>
<object class="GtkButton" id="source_button">
<property name="label">LGI Source</property>
<property name="margin-bottom">6</property>
<property name="margin-end">6</property>
<property name="margin-start">6</property>
<property name="margin-top">6</property>
<property name="vexpand">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="about_button">
<property name="label">About</property>
<property name="margin-bottom">6</property>
<property name="margin-top">6</property>
<property name="margin-end">6</property>
<property name="margin-start">6</property>
<property name="vexpand">True</property>
</object>
</child>
Expand Down

0 comments on commit d1067b8

Please sign in to comment.