[gtk+/extended-layout-jhs: 21/64] Provide status text, when no widget is selected.
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/extended-layout-jhs: 21/64] Provide status text, when no widget is selected.
- Date: Wed, 25 Nov 2009 11:20:40 +0000 (UTC)
commit fbcf7f852dc92c70a47892840d4e198a40b278fe
Author: Mathias Hasselmann <mathias hasselmann gmx de>
Date: Sun Jul 1 09:11:34 2007 +0000
Provide status text, when no widget is selected.
2007-06-30 Mathias Hasselmann <mathias hasselmann gmx de>
* tests/testextendedlayout.c:
Provide status text, when no widget is selected.
svn path=/branches/extended-layout/; revision=18317
ChangeLog.gtk-extended-layout | 5 +++++
tests/testextendedlayout.c | 8 ++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog.gtk-extended-layout b/ChangeLog.gtk-extended-layout
index f483e79..ea8575d 100644
--- a/ChangeLog.gtk-extended-layout
+++ b/ChangeLog.gtk-extended-layout
@@ -1,3 +1,8 @@
+2007-06-30 Mathias Hasselmann <mathias hasselmann gmx de>
+
+ * tests/testextendedlayout.c:
+ Provide status text, when no widget is selected.
+
2007-06-29 Mathias Hasselmann <mathias hasselmann gmx de>
* gtk/gtkframe.c: Drop g_debug messages.
diff --git a/tests/testextendedlayout.c b/tests/testextendedlayout.c
index 5dab7de..8c43cd2 100644
--- a/tests/testextendedlayout.c
+++ b/tests/testextendedlayout.c
@@ -1344,7 +1344,11 @@ watch_pointer_cb (gpointer data)
else
{
dirty = (NULL != suite->current);
- gtk_label_set_text (GTK_LABEL (suite->statusbar), NULL);
+
+ if (suite->current)
+ gtk_label_set_text (GTK_LABEL (suite->statusbar),
+ "No widget selected.");
+
suite->current = NULL;
}
@@ -1487,7 +1491,7 @@ test_suite_setup_ui (TestSuite *self)
G_CALLBACK (gtk_widget_queue_draw),
self->notebook);
- self->statusbar = gtk_label_new (NULL);
+ self->statusbar = gtk_label_new ("No widget selected.");
gtk_label_set_ellipsize (GTK_LABEL (self->statusbar),
PANGO_ELLIPSIZE_END);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]