@@ -3171,9 +3171,9 @@ delete_event_cb(GtkWidget *widget UNUSED,
31713171 static int
31723172get_item_dimensions (GtkWidget * widget , GtkOrientation orientation )
31733173{
3174+ # ifdef FEAT_GUI_GNOME
31743175 GtkOrientation item_orientation = GTK_ORIENTATION_HORIZONTAL ;
31753176
3176- # ifdef FEAT_GUI_GNOME
31773177 if (using_gnome && widget != NULL )
31783178 {
31793179 GtkWidget * parent ;
@@ -3192,7 +3192,10 @@ get_item_dimensions(GtkWidget *widget, GtkOrientation orientation)
31923192 item_orientation = bonobo_dock_item_get_orientation (dockitem );
31933193 }
31943194 }
3195+ # else
3196+ # define item_orientation GTK_ORIENTATION_HORIZONTAL
31953197# endif
3198+
31963199# if GTK_CHECK_VERSION (3 ,0 ,0 )
31973200 if (widget != NULL
31983201 && item_orientation == orientation
@@ -3209,16 +3212,16 @@ get_item_dimensions(GtkWidget *widget, GtkOrientation orientation)
32093212 GtkAllocation allocation ;
32103213
32113214 gtk_widget_get_allocation (widget , & allocation );
3212-
3213- if (orientation == GTK_ORIENTATION_HORIZONTAL )
3214- return allocation .height ;
3215- else
3216- return allocation .width ;
3215+ return allocation .height ;
32173216# else
3217+ # ifdef FEAT_GUI_GNOME
32183218 if (orientation == GTK_ORIENTATION_HORIZONTAL )
32193219 return widget -> allocation .height ;
32203220 else
32213221 return widget -> allocation .width ;
3222+ # else
3223+ return widget -> allocation .height ;
3224+ # endif
32223225# endif
32233226 }
32243227 return 0 ;
0 commit comments