From 74136cf16d869eb68783c1f00080d4f664cbd8b1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 11 Apr 2013 02:46:34 +0200 Subject: [PATCH] Default to showing the dialer by default instead --- src/plugins/systray.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/plugins/systray.c b/src/plugins/systray.c index 1c1935f..01ef299 100644 --- a/src/plugins/systray.c +++ b/src/plugins/systray.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2011-2012 Pierre Pronchery */ +/* Copyright (c) 2011-2013 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Phone */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -109,11 +109,13 @@ static void _systray_on_activate(gpointer data) Systray * systray = data; PhonePluginHelper * helper = systray->helper; - helper->about_dialog(helper->phone); + helper->message(helper->phone, PHONE_MESSAGE_SHOW, + PHONE_MESSAGE_SHOW_DIALER); } /* systray_on_popup_menu */ +static void _popup_menu_on_show_about(gpointer data); static void _popup_menu_on_show_contacts(gpointer data); static void _popup_menu_on_show_dialer(gpointer data); static void _popup_menu_on_show_logs(gpointer data); @@ -154,6 +156,8 @@ static void _systray_on_popup_menu(GtkStatusIcon * icon, guint button, { "gtk-media-pause", "S_uspend telephony", _popup_menu_on_suspend }, { NULL, NULL, NULL }, + { GTK_STOCK_ABOUT, "_About", _popup_menu_on_show_about }, + { NULL, NULL, NULL }, { "gtk-quit", "_Quit", _popup_menu_on_quit }, }; size_t i; @@ -180,6 +184,14 @@ static void _systray_on_popup_menu(GtkStatusIcon * icon, guint button, gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, button, time); } +static void _popup_menu_on_show_about(gpointer data) +{ + Systray * systray = data; + PhonePluginHelper * helper = systray->helper; + + helper->about_dialog(helper->phone); +} + static void _popup_menu_on_show_contacts(gpointer data) { Systray * systray = data;