[sysprof/wip/chergert/sysprof-3] update title on saves
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] update title on saves
- Date: Mon, 20 May 2019 00:29:19 +0000 (UTC)
commit 8e09a8d6541c82b4dfd9353fb41f91378af44569
Author: Christian Hergert <chergert redhat com>
Date: Sun May 19 17:29:04 2019 -0700
update title on saves
src/libsysprof-ui/sysprof-display.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index b7f7227..0832083 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -213,7 +213,7 @@ sysprof_display_dup_title (SysprofDisplay *self)
const gchar *filename;
if ((filename = sysprof_capture_reader_get_filename (reader)))
- return g_strdup (filename);
+ return g_path_get_basename (filename);
}
return g_strdup (_("New Recording"));
@@ -559,6 +559,7 @@ sysprof_display_save (SysprofDisplay *self)
break;
}
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
gtk_native_dialog_destroy (GTK_NATIVE_DIALOG (native));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]