GTK2: gtk_widget_set_usize -> gtk_widget_set_size_request
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5d038ec59c
commit
370dc79c5a
@ -290,7 +290,7 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
|
||||
|
||||
// This is required for tool bar support
|
||||
// wxSize setsize = GetSize();
|
||||
// gtk_widget_set_usize( m_widget, setsize.x, setsize.y );
|
||||
// gtk_widget_set_size_request( m_widget, setsize.x, setsize.y );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -822,7 +822,7 @@ void wxDropSource::PrepareIcon( int action, GdkDragContext *context )
|
||||
|
||||
gtk_widget_pop_colormap ();
|
||||
|
||||
gtk_widget_set_usize (m_iconWindow, width, height);
|
||||
gtk_widget_set_size_request (m_iconWindow, width, height);
|
||||
gtk_widget_realize (m_iconWindow);
|
||||
|
||||
g_signal_connect (m_iconWindow, "configure_event",
|
||||
|
@ -288,7 +288,7 @@ void wxPopupWindow::DoSetSize( int x, int y, int width, int height, int sizeFlag
|
||||
|
||||
if ((m_width != old_width) || (m_height != old_height))
|
||||
{
|
||||
gtk_widget_set_usize( m_widget, m_width, m_height );
|
||||
gtk_widget_set_size_request( m_widget, m_width, m_height );
|
||||
|
||||
/* actual resizing is deferred to GtkOnSize in idle time and
|
||||
when showing the dialog */
|
||||
|
@ -208,7 +208,7 @@ void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
|
||||
wxCHECK_RET( (m_widget != NULL), wxT("invalid spin button") );
|
||||
|
||||
m_width = DoGetBestSize().x;
|
||||
gtk_widget_set_usize( m_widget, m_width, m_height );
|
||||
gtk_widget_set_size_request( m_widget, m_width, m_height );
|
||||
}
|
||||
|
||||
bool wxSpinButton::IsOwnGtkWindow( GdkWindow *window )
|
||||
|
@ -306,7 +306,7 @@ gtk_pizza_put (GtkPizza *pizza,
|
||||
|
||||
gtk_widget_set_parent (widget, GTK_WIDGET (pizza));
|
||||
|
||||
gtk_widget_set_usize (widget, width, height);
|
||||
gtk_widget_set_size_request (widget, width, height);
|
||||
}
|
||||
|
||||
void
|
||||
@ -370,7 +370,7 @@ gtk_pizza_resize (GtkPizza *pizza,
|
||||
child->width = width;
|
||||
child->height = height;
|
||||
|
||||
gtk_widget_set_usize (widget, width, height);
|
||||
gtk_widget_set_size_request (widget, width, height);
|
||||
|
||||
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (pizza))
|
||||
gtk_widget_queue_resize (widget);
|
||||
@ -412,7 +412,7 @@ gtk_pizza_set_size (GtkPizza *pizza,
|
||||
child->width = width;
|
||||
child->height = height;
|
||||
|
||||
gtk_widget_set_usize (widget, width, height);
|
||||
gtk_widget_set_size_request (widget, width, height);
|
||||
|
||||
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (pizza))
|
||||
gtk_widget_queue_resize (widget);
|
||||
|
Loading…
Reference in New Issue
Block a user