[gtk+] Try harder to fix dialog titles
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Try harder to fix dialog titles
- Date: Wed, 16 Jul 2014 01:31:45 +0000 (UTC)
commit dc87027af9c048d76b11a4a3b55162a2ea7ef7af
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jul 15 21:29:59 2014 -0400
Try harder to fix dialog titles
https://bugzilla.gnome.org/show_bug.cgi?id=733099
gtk/gtkdialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 3091f9f..ac7849a 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -458,9 +458,12 @@ gtk_dialog_constructed (GObject *object)
if (priv->use_header_bar)
{
GList *children, *l;
+ gchar *title;
+ title = g_strdup (gtk_window_get_title (GTK_WINDOW (dialog)));
gtk_window_set_titlebar (GTK_WINDOW (dialog), priv->headerbar);
- gtk_window_set_title (GTK_WINDOW (dialog), gtk_window_get_title (GTK_WINDOW (dialog)));
+ gtk_window_set_title (GTK_WINDOW (dialog), title);
+ g_free (title);
children = gtk_container_get_children (GTK_CONTAINER (priv->action_area));
for (l = children; l != NULL; l = l->next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]