summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-17 02:57:07 +0100
committerPablo Barciela <[email protected]>2018-02-17 02:57:07 +0100
commit29a62cd3da207d292adbcad1e01498c50e638d5b (patch)
treed11b0cc3f4a31675a26856d58c34716fc916bd0b /src
parent98d6a4325bf31f675fc5c34593f27225b365b7b2 (diff)
downloadeom-29a62cd3da207d292adbcad1e01498c50e638d5b.tar.bz2
eom-29a62cd3da207d292adbcad1e01498c50e638d5b.tar.xz
eom-window.c: avoid deprecated GtkButton:use-stock
Diffstat (limited to 'src')
-rw-r--r--src/eom-window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index 2387b46..d01fdd5 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -1852,11 +1852,8 @@ eom_window_get_exit_fullscreen_button (EomWindow *window)
{
GtkWidget *button;
- button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
- "label", "gtk-leave-fullscreen",
- "use-stock", TRUE,
- "use-underline", TRUE,
- NULL));
+ button = gtk_button_new_with_mnemonic (_("Leave Fullscreen"));
+ gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name ("view-restore", GTK_ICON_SIZE_BUTTON));
g_signal_connect (button, "clicked",
G_CALLBACK (exit_fullscreen_button_clicked_cb),