Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Reversi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
Reversi
Commits
9864be59
Commit
9864be59
authored
Jul 28, 2019
by
Arnaud B.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the ThemesDialog a HdyDialog.
parent
4c48a6f5
Pipeline
#99457
failed with stages
in 1 minute and 11 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
10 deletions
+12
-10
data/ui/iagno-screens.ui
data/ui/iagno-screens.ui
+2
-2
data/ui/iagno-themes.ui
data/ui/iagno-themes.ui
+1
-2
data/ui/iagno.ui
data/ui/iagno.ui
+2
-2
meson.build
meson.build
+1
-0
src/game-view.vala
src/game-view.vala
+1
-1
src/game-window.vala
src/game-window.vala
+1
-1
src/meson.build
src/meson.build
+3
-1
src/themes-dialog.vala
src/themes-dialog.vala
+1
-1
No files found.
data/ui/iagno-screens.ui
View file @
9864be59
...
...
@@ -26,8 +26,8 @@
<property
name=
"valign"
>
fill
</property>
<property
name=
"spacing"
>
18
</property>
<property
name=
"margin-bottom"
>
25
</property>
<!-- TODO better -->
<property
name=
"height-request"
>
26
3
</property
>
<property
name=
"width-request"
>
400
</property
>
<property
name=
"height-request"
>
26
8
</property>
<!-- window should be 288px max for Purism Librem 5 landscape, for 720px width --
>
<property
name=
"width-request"
>
340
</property>
<!-- window should be 360px max for Purism Librem 5 portrait, for 648px height --
>
<child>
<object
class=
"GtkBox"
>
<property
name=
"orientation"
>
vertical
</property>
...
...
data/ui/iagno-themes.ui
View file @
9864be59
...
...
@@ -19,11 +19,10 @@
-->
<interface>
<requires
lib=
"gtk+"
version=
"3.12"
/>
<template
class=
"ThemesDialog"
parent=
"
Gtk
Dialog"
>
<template
class=
"ThemesDialog"
parent=
"
Hdy
Dialog"
>
<property
name=
"visible"
>
False
</property>
<property
name=
"width-request"
>
333
</property>
<property
name=
"height-request"
>
450
</property>
<property
name=
"resizable"
>
False
</property>
<!-- Translators: title of the theme dialog -->
<property
name=
"title"
translatable=
"yes"
>
Select Theme
</property>
<property
name=
"border-width"
>
0
</property>
...
...
data/ui/iagno.ui
View file @
9864be59
...
...
@@ -122,8 +122,8 @@
<property
name=
"halign"
>
center
</property>
<property
name=
"valign"
>
center
</property>
<property
name=
"margin"
>
25
</property>
<property
name=
"width-request"
>
35
0
</property>
<property
name=
"height-request"
>
35
0
</property>
<property
name=
"width-request"
>
10
0
</property>
<property
name=
"height-request"
>
10
0
</property>
<property
name=
"spacing"
>
6
</property>
</object>
<packing>
...
...
meson.build
View file @
9864be59
...
...
@@ -16,6 +16,7 @@ gio_dependency = dependency('gio-2.0', version: '>= 2.40.0')
glib_dependency = dependency('glib-2.0', version: '>= 2.40.0')
gsound_dependency = dependency('gsound', version: '>= 1.0.2')
gtk_dependency = dependency('gtk+-3.0', version: '>= 3.24.0')
hdy_dependency = dependency('libhandy-0.0', version: '>= 0.0.10')
libm_dependency = cc.find_library('m', required: false) # some platforms do not have libm separated from libc
posix_dependency = valac.find_library('posix')
rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
...
...
src/game-view.vala
View file @
9864be59
...
...
@@ -171,7 +171,7 @@ private class GameView : Gtk.DrawingArea
|
Gdk
.
EventMask
.
POINTER_MOTION_MASK
|
Gdk
.
EventMask
.
ENTER_NOTIFY_MASK
|
Gdk
.
EventMask
.
LEAVE_NOTIFY_MASK
);
set_size_request
(
350
,
35
0
);
set_size_request
(
100
,
10
0
);
init_mouse
();
}
...
...
src/game-window.vala
View file @
9864be59
...
...
@@ -96,7 +96,7 @@ private class GameWindow : ApplicationWindow
{
/* Translators: when configuring a new game, label of the blue Start button (with a mnemonic that appears pressing Alt) */
Button
_start_game_button
=
new
Button
.
with_mnemonic
(
_
(
"_Start Game"
));
_start_game_button
.
width_request
=
2
22
;
_start_game_button
.
width_request
=
1
22
;
_start_game_button
.
height_request
=
60
;
_start_game_button
.
halign
=
Align
.
CENTER
;
_start_game_button
.
set_action_name
(
"ui.start-game"
);
...
...
src/meson.build
View file @
9864be59
...
...
@@ -30,7 +30,8 @@ executable(meson.project_name(),
] + resources,
install: true,
c_args: [
'-include', 'config.h'
'-include', 'config.h',
'-D', 'HANDY_USE_UNSTABLE_API'
],
vala_args: [
'--target-glib', '2.44',
...
...
@@ -42,6 +43,7 @@ executable(meson.project_name(),
glib_dependency,
gsound_dependency,
gtk_dependency,
hdy_dependency,
libm_dependency,
posix_dependency,
rsvg_dependency
...
...
src/themes-dialog.vala
View file @
9864be59
...
...
@@ -21,7 +21,7 @@
using
Gtk
;
[GtkTemplate (ui = "/org/gnome/Reversi/ui/themes.ui")]
private
class
ThemesDialog
:
Dialog
private
class
ThemesDialog
:
Hdy
.
Dialog
{
private
const
string
PREFIX
=
"theme-"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment