diff options
author | Oz Tiram <[email protected]> | 2025-03-30 10:23:21 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-03-31 04:35:54 +0000 |
commit | 160ae5025c4802391386170582b48641a9c1a0a0 (patch) | |
tree | 21700d9a2258f78b4404b75f705a82c4c2a8cc36 /shell/ev-open-recent-action.c | |
parent | 73e49460f519bfb476dc1408acda0b4ff30b0284 (diff) | |
download | atril-160ae5025c4802391386170582b48641a9c1a0a0.tar.bz2 atril-160ae5025c4802391386170582b48641a9c1a0a0.tar.xz |
replace deprecated gtk_menu_tool_button_new_from_stock
Signed-off-by: Oz Tiram <[email protected]>
Diffstat (limited to 'shell/ev-open-recent-action.c')
-rw-r--r-- | shell/ev-open-recent-action.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-open-recent-action.c b/shell/ev-open-recent-action.c index 3186f261..46d5eda8 100644 --- a/shell/ev-open-recent-action.c +++ b/shell/ev-open-recent-action.c @@ -65,7 +65,9 @@ ev_open_recent_action_create_tool_item (GtkAction *action) gtk_recent_filter_add_application (filter, g_get_application_name ()); gtk_recent_chooser_set_filter (GTK_RECENT_CHOOSER (toolbar_recent_menu), filter); - tool_item = GTK_WIDGET (gtk_menu_tool_button_new_from_stock ("gtk-open")); + GtkWidget *icon = gtk_image_new_from_icon_name ("document-open", GTK_ICON_SIZE_SMALL_TOOLBAR); + tool_item = GTK_WIDGET (gtk_menu_tool_button_new (icon, NULL)); + gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (tool_item), _("Open a recently used document")); gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (tool_item), |