[rhythmbox] add gtk_widget_set_visible macro for gtk+ < 2.18 (bug #615007)



commit 3cdcefa58a11e05aba712be00b3afb9782d3eaae
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Apr 7 07:28:01 2010 +1000

    add gtk_widget_set_visible macro for gtk+ < 2.18 (bug #615007)

 lib/gseal-gtk-compat.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/gseal-gtk-compat.h b/lib/gseal-gtk-compat.h
index 57b8d59..a839073 100644
--- a/lib/gseal-gtk-compat.h
+++ b/lib/gseal-gtk-compat.h
@@ -41,6 +41,7 @@ G_BEGIN_DECLS
 #define gtk_widget_set_can_focus(widget, TRUE)                  GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS)
 #define gtk_widget_set_double_buffered(widget, FALSE)           GTK_WIDGET_UNSET_FLAGS (widget, GTK_DOUBLE_BUFFERED)
 #define gtk_widget_set_window(widget, _window)                  ((widget)->window=_window)
+#define gtk_widget_set_visible(widget, visible)			((visible?gtk_widget_show:gtk_widget_hide)(widget))
 
 #define gtk_cell_renderer_get_padding(cell, xpad, ypad)		g_object_get (cell, "xpad", xpad, "ypad", ypad, NULL);
 #define gtk_cell_renderer_get_alignment(cell, xalign, yalign)	g_object_get (cell, "xalign", xalign, "yalign", yalign, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]