aboutsummaryrefslogtreecommitdiff
path: root/src/sdgui.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-23 18:48:51 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-23 18:51:23 +0200
commit0371dd95dd3dc8b4b76fb59d3ba744b49b2b167a (patch)
tree4fdda8ae28bd1d00e7259505ccd5356b9db2a58d /src/sdgui.c
parentcbdb1cfaa60a3ab1b3a94ad53aa2661df7e22701 (diff)
downloadtdv-0371dd95dd3dc8b4b76fb59d3ba744b49b2b167a.tar.gz
tdv-0371dd95dd3dc8b4b76fb59d3ba744b49b2b167a.tar.xz
tdv-0371dd95dd3dc8b4b76fb59d3ba744b49b2b167a.zip
sdgui: fix popup menu alignment
On Windows 10 GTK+ completely failed to turn it around so that it would be visible.
Diffstat (limited to 'src/sdgui.c')
-rw-r--r--src/sdgui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sdgui.c b/src/sdgui.c
index 7e43db6..8bfb6e6 100644
--- a/src/sdgui.c
+++ b/src/sdgui.c
@@ -407,6 +407,7 @@ main (int argc, char *argv[])
G_CALLBACK (on_selection_watch_toggle), NULL);
GtkWidget *menu = gtk_menu_new ();
+ gtk_widget_set_halign (menu, GTK_ALIGN_END);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item_open);
#ifndef WIN32
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item_selection);
@@ -414,10 +415,10 @@ main (int argc, char *argv[])
gtk_widget_show_all (menu);
g.hamburger = gtk_menu_button_new ();
- gtk_menu_button_set_direction
- (GTK_MENU_BUTTON (g.hamburger), GTK_ARROW_NONE);
- gtk_menu_button_set_popup (GTK_MENU_BUTTON (g.hamburger), menu);
gtk_button_set_relief (GTK_BUTTON (g.hamburger), GTK_RELIEF_NONE);
+ gtk_button_set_image (GTK_BUTTON (g.hamburger), gtk_image_new_from_icon_name
+ ("open-menu-symbolic", GTK_ICON_SIZE_BUTTON));
+ gtk_menu_button_set_popup (GTK_MENU_BUTTON (g.hamburger), menu);
gtk_widget_show (g.hamburger);
g.notebook = gtk_notebook_new ();