From e30be1920be10cc0d9a79c244c890785c72f37bb Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Tue, 10 Apr 2012 21:21:08 +0100 Subject: Replace deprecated gtk_vbox_new and gtk_widget_size_request (bzr r11213) --- src/ui/dialog/aboutbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/dialog/aboutbox.cpp') diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index f6adc71c0..885846685 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -121,7 +121,11 @@ AboutBox::AboutBox() : Gtk::Dialog(_("About Inkscape")) { get_vbox()->pack_start(*manage(label), false, false); Gtk::Requisition requisition; +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_get_preferred_size(reinterpret_cast(gobj()), &requisition, NULL); +#else gtk_widget_size_request (reinterpret_cast(gobj()), &requisition); +#endif // allow window to shrink set_size_request(0, 0); set_default_size(requisition.width, requisition.height); -- cgit v1.2.3