Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gtk
Commits
0f1c4a30
Commit
0f1c4a30
authored
Aug 26, 2015
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdkgears: Add a popover
As pointed out in bug 754143, this reveals a crash in the Wayland backend.
parent
e6930694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tests/gdkgears.c
tests/gdkgears.c
+11
-1
No files found.
tests/gdkgears.c
View file @
0f1c4a30
...
...
@@ -109,7 +109,7 @@ main (int argc, char *argv[])
{
GtkWidget
*
window
,
*
box
,
*
hbox
,
*
button
,
*
spinner
,
*
check
,
*
fps_label
,
*
gears
,
*
extra_hbox
,
*
bbox
,
*
overlay
,
*
revealer
,
*
frame
,
*
label
,
*
scrolled
;
*
revealer
,
*
frame
,
*
label
,
*
scrolled
,
*
popover
;
int
i
;
gtk_init
(
&
argc
,
&
argv
);
...
...
@@ -200,6 +200,16 @@ main (int argc, char *argv[])
gtk_widget_show
(
check
);
g_signal_connect
(
check
,
"toggled"
,
G_CALLBACK
(
toggle_overlay
),
revealer
);
button
=
gtk_menu_button_new
();
gtk_menu_button_set_direction
(
GTK_MENU_BUTTON
(
button
),
GTK_ARROW_UP
);
popover
=
gtk_popover_new
(
NULL
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
popover
),
10
);
label
=
gtk_label_new
(
"Popovers work too!"
);
gtk_widget_show
(
label
);
gtk_container_add
(
GTK_CONTAINER
(
popover
),
label
);
gtk_menu_button_set_popover
(
GTK_MENU_BUTTON
(
button
),
popover
);
gtk_widget_show
(
button
);
gtk_box_pack_end
(
GTK_BOX
(
hbox
),
button
,
FALSE
,
FALSE
,
0
);
scrolled
=
gtk_scrolled_window_new
(
NULL
,
NULL
);
gtk_scrolled_window_set_policy
(
GTK_SCROLLED_WINDOW
(
scrolled
),
...
...
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