diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-06 18:33:11 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-07 16:45:04 +0800 |
commit | 32ea1c129259b67d020944b3092a410f8b84908a (patch) | |
tree | 67d2680b58a2a4e8cc7cfbb280fcab0fd220e964 | |
parent | 48d289288400d52adc40a78548ba0dbaf7dea3cd (diff) | |
download | gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.tar gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.tar.gz gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.tar.bz2 gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.tar.lz gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.tar.xz gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.tar.zst gsoc2013-empathy-32ea1c129259b67d020944b3092a410f8b84908a.zip |
Make incoming file chooser dialog's title more informative
This gives a bit more context when the dialog is displayed right away.
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 6339a891d..ee48fa995 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1670,8 +1670,16 @@ empathy_receive_file_with_file_chooser (EmpathyFTHandler *handler) { GtkWidget *widget; const gchar *dir; + EmpathyContact *contact; + gchar *title; - widget = gtk_file_chooser_dialog_new (_("Select a destination"), + contact = empathy_ft_handler_get_contact (handler); + g_assert (contact != NULL); + + title = g_strdup_printf (_("Incoming file from %s"), + empathy_contact_get_name (contact)); + + widget = gtk_file_chooser_dialog_new (title, NULL, GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, @@ -1695,5 +1703,5 @@ empathy_receive_file_with_file_chooser (EmpathyFTHandler *handler) G_CALLBACK (file_manager_receive_file_response_cb), handler); gtk_widget_show (widget); + g_free (title); } - |