[geany/geany] 419550: Add a tooltip showing the full path on menu items representing documents

Colomban Wendling git-noreply at xxxxx
Mon Dec 4 02:05:00 UTC 2017


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 04 Dec 2017 02:05:00 UTC
Commit:      419550ab0567c769d35a807397284ba1434a3040
             https://github.com/geany/geany/commit/419550ab0567c769d35a807397284ba1434a3040

Log Message:
-----------
Add a tooltip showing the full path on menu items representing documents


Modified Paths:
--------------
    src/ui_utils.c

Modified: src/ui_utils.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -2940,6 +2940,7 @@ void ui_menu_add_document_items_sorted(GtkMenu *menu, GeanyDocument *active,
 		menu_item = gtk_image_menu_item_new_with_label(base_name);
 		image = gtk_image_new_from_gicon(doc->file_type->icon, GTK_ICON_SIZE_MENU);
 		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item), image);
+		gtk_widget_set_tooltip_text(menu_item, DOC_FILENAME(doc));
 
 		gtk_widget_show(menu_item);
 		gtk_container_add(GTK_CONTAINER(menu), menu_item);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list