Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
dd9fd2c8
Unverified
Commit
dd9fd2c8
authored
Jun 18, 2020
by
Robert Ancell
Committed by
GitHub
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a HeaderBar for Linux applications. (#59714)
parent
e0f60918
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
my_application.cc
.../flutter_tools/templates/app/linux.tmpl/my_application.cc
+5
-1
No files found.
packages/flutter_tools/templates/app/linux.tmpl/my_application.cc
View file @
dd9fd2c8
...
...
@@ -15,10 +15,14 @@ G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
static
void
my_application_activate
(
GApplication
*
application
)
{
GtkWindow
*
window
=
GTK_WINDOW
(
gtk_application_window_new
(
GTK_APPLICATION
(
application
)));
GtkHeaderBar
*
header_bar
=
GTK_HEADER_BAR
(
gtk_header_bar_new
());
gtk_widget_show
(
GTK_WIDGET
(
header_bar
));
gtk_header_bar_set_title
(
header_bar
,
kFlutterWindowTitle
);
gtk_header_bar_set_show_close_button
(
header_bar
,
TRUE
);
gtk_window_set_titlebar
(
window
,
GTK_WIDGET
(
header_bar
));
gtk_widget_show
(
GTK_WIDGET
(
window
));
gtk_widget_set_size_request
(
GTK_WIDGET
(
window
),
kFlutterWindowWidth
,
kFlutterWindowHeight
);
gtk_window_set_title
(
window
,
kFlutterWindowTitle
);
g_autoptr
(
FlDartProject
)
project
=
fl_dart_project_new
();
...
...
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