[gtk+/client-side-decorations: 39/50] fix title setting bug
- From: Cody Russell <bratsche src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-decorations: 39/50] fix title setting bug
- Date: Wed, 8 Jul 2009 15:31:25 +0000 (UTC)
commit 00da1f1405cf3478eb8573ec92bb6e2e0e01457a
Author: Cody Russell <crussell canonical com>
Date: Wed Jun 10 20:01:16 2009 -0500
fix title setting bug
gtk/gtkwindow.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 377ec0a..91d7442 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1603,17 +1603,17 @@ gtk_window_set_title (GtkWindow *window,
g_free (window->title);
window->title = new_title;
- if (!title)
- {
- gtk_window_set_label_widget (window, NULL);
- }
- else
+ if (!priv->title_label)
{
GtkWidget *child = gtk_label_new (title);
gtk_widget_show (child);
gtk_window_set_label_widget (window, child);
}
+ else
+ {
+ gtk_label_set_text (GTK_LABEL (priv->title_label), title);
+ }
if (GTK_WIDGET_VISIBLE (priv->title_label) && GTK_WIDGET_VISIBLE (GTK_WIDGET (window)))
gtk_widget_queue_resize (GTK_WIDGET (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]