diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-20 18:27:46 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-20 18:27:46 +0800 |
commit | 03202f3f9036560fe9288cc200cb5978b9602771 (patch) | |
tree | 06ce2a9df2943444d7885aff07e038acd17425fc | |
parent | eec1d9a3cc099f2ce177514248ec7ec2b56d425d (diff) | |
download | gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.tar gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.tar.gz gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.tar.bz2 gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.tar.lz gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.tar.xz gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.tar.zst gsoc2013-empathy-03202f3f9036560fe9288cc200cb5978b9602771.zip |
Change message dialog type if the app is not installed
svn path=/trunk/; revision=1004
-rw-r--r-- | src/empathy-filter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/empathy-filter.c b/src/empathy-filter.c index ce1e8e112..2092eaa7a 100644 --- a/src/empathy-filter.c +++ b/src/empathy-filter.c @@ -406,6 +406,7 @@ filter_tubes_dispatch (EmpathyFilter *filter, gchar **names = NULL; GtkWidget *dialog; GtkButtonsType buttons_type; + GtkMessageType message_type; gchar *str; gint res; GError *error = NULL; @@ -443,11 +444,13 @@ filter_tubes_dispatch (EmpathyFilter *filter, /* Ask confirmation to the user */ if (activatable) { + message_type = GTK_MESSAGE_QUESTION; buttons_type = GTK_BUTTONS_YES_NO; str = g_strdup_printf (_("Accept invitation to play %s from %s?"), data->service, empathy_contact_get_name (data->initiator)); } else { + message_type = GTK_MESSAGE_ERROR; buttons_type = GTK_BUTTONS_OK; str = g_strdup_printf (_("%s invited you to play %s but you don't " "have it installed."), @@ -455,9 +458,7 @@ filter_tubes_dispatch (EmpathyFilter *filter, data->service); } dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, - GTK_MESSAGE_QUESTION, - buttons_type, - str); + message_type, buttons_type, str); g_free (str); str = g_strdup_printf (_("%s Invitation"), data->service); gtk_window_set_title (GTK_WINDOW (dialog), str); |