aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-08-07 01:15:58 +0200
committerJavier <dev.git@javispedro.com>2016-08-07 01:15:58 +0200
commita6618b3dbb32b563cb3993dd427b33faf5ff56e6 (patch)
treeeb0870c2534918018950980eb49d288dfacab9c6
parentf80fc1a16628ce4ef5d52c8095fe351efa8dad8a (diff)
downloadtopmenu-gtk-a6618b3dbb32b563cb3993dd427b33faf5ff56e6.tar.gz
topmenu-gtk-a6618b3dbb32b563cb3993dd427b33faf5ff56e6.zip
add more information to about dialog
-rw-r--r--mate-applet/topmenu-mate-panel-applet.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/mate-applet/topmenu-mate-panel-applet.c b/mate-applet/topmenu-mate-panel-applet.c
index 7137a23..aeb4124 100644
--- a/mate-applet/topmenu-mate-panel-applet.c
+++ b/mate-applet/topmenu-mate-panel-applet.c
@@ -24,11 +24,6 @@
G_DEFINE_TYPE(TopMenuMatePanelApplet, topmenu_mate_panel_applet, PANEL_TYPE_APPLET)
-static void display_preferences_dialog(GtkAction *action, TopMenuMatePanelApplet *self)
-{
- // TODO
-}
-
static void display_about_dialog(GtkAction *action, TopMenuMatePanelApplet *self)
{
GtkWindow *parent = NULL;
@@ -37,15 +32,19 @@ static void display_about_dialog(GtkAction *action, TopMenuMatePanelApplet *self
parent = GTK_WINDOW(parent_widget);
}
+ static const char *authors[] = {
+ "Javier S. Pedro <dev.bugs@javispedro.com>",
+ NULL};
+
gtk_show_about_dialog(parent,
"program-name", "TopMenu Mate Panel Applet",
+ "logo-icon-name", "topmenu-applet",
+ "website", "https://git.javispedro.com/cgit/topmenu-gtk.git/about/",
+ "authors", authors,
NULL);
}
static const GtkActionEntry menu_verbs[] = {
- { "TopMenuPreferences", GTK_STOCK_PROPERTIES, N_("_Preferences"),
- NULL, NULL,
- G_CALLBACK (display_preferences_dialog) },
{ "TopMenuAbout", GTK_STOCK_ABOUT, N_("_About"),
NULL, NULL,
G_CALLBACK (display_about_dialog) }