[gtk+] GtkButtonBox doesn't do height-for-width



commit 7018c2acc7da8a7d3a363cc6ea2fd0f2d51d4451
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 28 14:22:46 2010 -0400

    GtkButtonBox doesn't do height-for-width
    
    GtkButtonBox doesn't do height-for-width, therefore we should
    explicitly set these methods to NULL instead of hoping that the
    inherited GtkBox implementations work ok.

 gtk/gtkbbox.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 346e9c5..f1531b1 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -126,6 +126,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
 
   widget_class->get_preferred_width = gtk_button_box_get_preferred_width;
   widget_class->get_preferred_height = gtk_button_box_get_preferred_height;
+  widget_class->get_preferred_width_for_height = NULL;
+  widget_class->get_preferred_height_for_width = NULL;
   widget_class->size_allocate = gtk_button_box_size_allocate;
 
   container_class->remove = gtk_button_box_remove;



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