+static inline GtkWidget* wx_gtk_scrollbar_new(GtkOrientation orientation, GtkAdjustment* adjustment)
+{
+ GtkWidget* widget;
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ widget = gtk_hscrollbar_new(adjustment);
+ else
+ widget = gtk_vscrollbar_new(adjustment);
+ return widget;
+}
+#define gtk_scrollbar_new wx_gtk_scrollbar_new
+
+static inline GtkWidget* wx_gtk_separator_new(GtkOrientation orientation)
+{
+ GtkWidget* widget;
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ widget = gtk_hseparator_new();
+ else
+ widget = gtk_vseparator_new();
+ return widget;
+}
+#define gtk_separator_new wx_gtk_separator_new
+
+static inline void wx_gtk_widget_get_preferred_height(GtkWidget* widget, gint* minimum, gint* natural)
+{
+ GtkRequisition req;
+ gtk_widget_size_request(widget, &req);
+ if (minimum)
+ *minimum = req.height;
+ if (natural)
+ *natural = req.height;
+}
+#define gtk_widget_get_preferred_height wx_gtk_widget_get_preferred_height
+
+static inline void wx_gtk_widget_get_preferred_width(GtkWidget* widget, gint* minimum, gint* natural)
+{
+ GtkRequisition req;
+ gtk_widget_size_request(widget, &req);
+ if (minimum)
+ *minimum = req.width;
+ if (natural)
+ *natural = req.width;
+}
+#define gtk_widget_get_preferred_width wx_gtk_widget_get_preferred_width
+
+static inline void wx_gtk_widget_get_preferred_size(GtkWidget* widget, GtkRequisition* minimum, GtkRequisition* natural)
+{
+ GtkRequisition* req = minimum;
+ if (req == NULL)
+ req = natural;
+ gtk_widget_size_request(widget, req);
+}
+#define gtk_widget_get_preferred_size wx_gtk_widget_get_preferred_size
+
+#endif // !__WXGTK3__
+#endif // _WX_GTK_PRIVATE_COMPAT_H_