[nautilus/gnome-3-0] search-bar: set redraw_on_allocate(), like GtkInfoBar does
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-0] search-bar: set redraw_on_allocate(), like GtkInfoBar does
- Date: Mon, 25 Apr 2011 17:51:41 +0000 (UTC)
commit 404cc22e79a84254b325d7a582f472ecc5881955
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 7 15:45:35 2011 -0400
search-bar: set redraw_on_allocate(), like GtkInfoBar does
This fixes artifacts while resizing. A similar patch was committed to
GtkInfoBar in https://bugzilla.gnome.org/show_bug.cgi?id=587716.
https://bugzilla.gnome.org/show_bug.cgi?id=647013
src/nautilus-search-bar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-search-bar.c b/src/nautilus-search-bar.c
index 0edc718..6148807 100644
--- a/src/nautilus-search-bar.c
+++ b/src/nautilus-search-bar.c
@@ -194,6 +194,8 @@ nautilus_search_bar_init (NautilusSearchBar *bar)
G_TYPE_INSTANCE_GET_PRIVATE (bar, NAUTILUS_TYPE_SEARCH_BAR,
NautilusSearchBarDetails);
+ gtk_widget_set_redraw_on_allocate (GTK_WIDGET (bar), TRUE);
+
label = gtk_label_new (_("Search:"));
gtk_style_context_add_class (gtk_widget_get_style_context (label),
"nautilus-cluebar-label");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]