summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-25 01:09:22 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-25 01:09:22 (EST)
commita707af81ecb5f30d3392c46ce7ea7ee122fbc4ae (patch)
treea4654199249f27abcde30b38fbe555bca7f8704e /src
parent82091b3275f171aa587fbd07db01095b8de4d9f4 (diff)
downloadmarquee-a707af81ecb5f30d3392c46ce7ea7ee122fbc4ae.zip
marquee-a707af81ecb5f30d3392c46ce7ea7ee122fbc4ae.tar.gz
marquee-a707af81ecb5f30d3392c46ce7ea7ee122fbc4ae.tar.bz2
MqMainMenu: Don't hardcode package name in about button
Diffstat (limited to 'src')
-rw-r--r--src/toolbars/navigation/main-menu.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c
index 9eea59c..eb8dbaf 100644
--- a/src/toolbars/navigation/main-menu.c
+++ b/src/toolbars/navigation/main-menu.c
@@ -19,6 +19,10 @@
* along with Marquee. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "main-menu.h"
#include <glib.h>
@@ -418,13 +422,18 @@ create_profile_buttons(MqMainMenu *main_menu)
static GtkWidget *
create_application_buttons(MqMainMenu *main_menu)
{
+ gchar *about_label;
GtkWidget *about_button;
GtkWidget *quit_button;
GtkWidget *grid;
- /* ID, ICON, LABEL, TOOLTIP */
- NEW_BTN(about,"help-about", _("About Marquee"),_("About Marquee"));
- NEW_BTN(quit, "application-exit",NULL, _("Quit"));
+ about_label = g_strdup_printf(_("About %s"), PACKAGE_NAME);
+
+ /* ID, ICON, LABEL, TOOLTIP */
+ NEW_BTN(about, "help-about", about_label, about_label);
+ NEW_BTN(quit, "application-exit", NULL, _("Quit"));
+
+ g_free(about_label);
/* Set up the grid. */
grid = gtk_grid_new();