[geany/geany] 01b0fc: Show status message on attempt to execute empty context action.

LarsDW223 git-noreply at xxxxx
Fri Jan 5 08:41:56 UTC 2018


Branch:      refs/heads/master
Author:      LarsDW223 <lars_paulsen at web.de>
Committer:   LarsDW223 <lars_paulsen at web.de>
Date:        Fri, 05 Jan 2018 08:41:56 UTC
Commit:      01b0fc6a536441f88ec16c5371980507585472e8
             https://github.com/geany/geany/commit/01b0fc6a536441f88ec16c5371980507585472e8

Log Message:
-----------
Show status message on attempt to execute empty context action.

If a user selects "context action" from the context menu then now the status message
'No context action set.' will be shown. Closes #1641.


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

Modified: src/callbacks.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -1500,6 +1500,10 @@ void on_context_action1_activate(GtkMenuItem *menuitem, gpointer user_data)
 		}
 		g_free(command_line);
 	}
+	else
+	{
+		ui_set_statusbar(TRUE, _("No context action set."));
+	}
 	g_free(word);
 	g_free(command);
 }



--------------
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