[gnome-bluetooth] sendto: set the From label as soon as we create the window
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] sendto: set the From label as soon as we create the window
- Date: Thu, 30 May 2013 12:37:40 +0000 (UTC)
commit 3a7f91a73057939773f042f0bcdaa7cd1f5c09c2
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri May 17 12:56:24 2013 +0200
sendto: set the From label as soon as we create the window
https://bugzilla.gnome.org/show_bug.cgi?id=685717
sendto/main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index 60972f1..57fdf18 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -220,6 +220,8 @@ transfer_created (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
static void
send_next_file (void)
{
+ update_from_label ();
+
g_dbus_proxy_call (session,
"SendFile",
g_variant_new ("(s)", option_files[file_index]),
@@ -459,6 +461,8 @@ static void create_window(void)
gtk_label_set_ellipsize(GTK_LABEL(label_from), PANGO_ELLIPSIZE_MIDDLE);
gtk_grid_attach(GTK_GRID(table), label_from, 1, 0, 1, 1);
+ update_from_label ();
+
label = gtk_label_new(NULL);
gtk_misc_set_alignment(GTK_MISC(label), 1, 0.5);
text = g_markup_printf_escaped("<b>%s</b>", _("To:"));
@@ -588,8 +592,6 @@ on_transfer_properties (GVariant *props)
last_update = get_system_time ();
}
- update_from_label ();
-
basename = g_path_get_basename(filename);
text = g_strdup_printf(_("Sending %s"), basename);
g_free(basename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]