Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
PI2 View
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PI2
PI2 View
Commits
fb4a4a88
Commit
fb4a4a88
authored
Mar 27, 2019
by
Martin Kröning
🦀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows locale folder
parent
c002cc88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
pi2-view/include/MapApplication.hpp
pi2-view/include/MapApplication.hpp
+1
-0
pi2-view/src/MapApplication.cpp
pi2-view/src/MapApplication.cpp
+16
-2
No files found.
pi2-view/include/MapApplication.hpp
View file @
fb4a4a88
...
...
@@ -15,6 +15,7 @@ public:
static
void
removeWindow
(
Gtk
::
Window
&
window
);
private:
static
void
initGettext
();
static
Glib
::
RefPtr
<
Gtk
::
Application
>
application
;
static
std
::
thread
thread
;
};
pi2-view/src/MapApplication.cpp
View file @
fb4a4a88
#include "MapApplication.hpp"
#include <glibmm/i18n.h>
#include <glibmm/refptr.h>
#include <gtkmm/application.h>
#include <gtkmm/window.h>
#include <vector>
Glib
::
RefPtr
<
Gtk
::
Application
>
MapApplication
::
application
=
Gtk
::
Application
::
create
();
void
MapApplication
::
initGettext
()
{
#ifdef G_OS_WIN32
gchar
*
win32_dir
=
g_win32_get_package_installation_directory_of_module
(
NULL
);
bindtextdomain
(
"pi2-view"
,
g_build_filename
(
win32_dir
,
"share"
,
"locale"
,
NULL
));
g_free
(
win32_dir
);
#endif
/* G_OS_WIN32 */
bind_textdomain_codeset
(
"pi2-view"
,
"UTF-8"
);
}
Glib
::
RefPtr
<
Gtk
::
Application
>
MapApplication
::
application
=
[]()
{
initGettext
();
return
Gtk
::
Application
::
create
();
}();
std
::
thread
MapApplication
::
thread
;
void
MapApplication
::
addWindow
(
Gtk
::
Window
&
window
)
{
...
...
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