Skip to content

Commit

Permalink
show markup of names (fixes #215), close dialog when call times out
Browse files Browse the repository at this point in the history
  • Loading branch information
naxuroqa committed Jul 14, 2014
1 parent 3698481 commit dd1d310
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ui/ContactListWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -869,9 +869,13 @@ namespace Venom {
Gtk.DialogFlags.MODAL,
Gtk.MessageType.QUESTION,
Gtk.ButtonsType.NONE,
"'%s' is calling ...",
c.get_name_string());
"");
message_dialog.set_markup("'%s' is calling ...".printf(c.get_name_string()));
message_dialog.add_buttons("_Cancel", Gtk.ResponseType.CANCEL, "_Accept", Gtk.ResponseType.ACCEPT, null);
//close message dialog when callstate changes (timeout)
c.notify["audio-call-state"].connect(() => {
message_dialog.destroy();
});

int response = message_dialog.run();
message_dialog.destroy();
Expand Down

0 comments on commit dd1d310

Please sign in to comment.