diff options
author | Matthias Classen <mclassen@redhat.com> | 2010-10-30 10:21:24 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-10-30 10:21:24 +0800 |
commit | d977181645702ebf719134b5651521a0490e61fa (patch) | |
tree | b681fa1033c8a1a43d688da755d54b0ab9b7a449 /src | |
parent | 4ac121ff0e7bd0882a66b3171a855575350ca08e (diff) | |
download | gsoc2013-epiphany-d977181645702ebf719134b5651521a0490e61fa.tar.gz gsoc2013-epiphany-d977181645702ebf719134b5651521a0490e61fa.tar.zst gsoc2013-epiphany-d977181645702ebf719134b5651521a0490e61fa.zip |
Drop usage of deprecated size-request signal
Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-fullscreen-popup.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/ephy-fullscreen-popup.c b/src/ephy-fullscreen-popup.c index 9b47d8823..1d1b8be77 100644 --- a/src/ephy-fullscreen-popup.c +++ b/src/ephy-fullscreen-popup.c @@ -287,12 +287,28 @@ ephy_fullscreen_popup_set_property (GObject *object, } static void -ephy_fullscreen_popup_size_request (GtkWidget *widget, - GtkRequisition *requisition) +ephy_fullscreen_popup_get_preferred_width (GtkWidget *widget, + gint *minimum, + gint *natural) { EphyFullscreenPopup *popup = EPHY_FULLSCREEN_POPUP (widget); - GTK_WIDGET_CLASS (ephy_fullscreen_popup_parent_class)->size_request (widget, requisition); + GTK_WIDGET_CLASS (ephy_fullscreen_popup_parent_class)->get_preferred_width (widget, minimum, natural); + + if (gtk_widget_get_realized (widget)) + { + ephy_fullscreen_popup_update_position (popup); + } +} + +static void +ephy_fullscreen_popup_get_preferred_height (GtkWidget *widget, + gint *minimum, + gint *natural) +{ + EphyFullscreenPopup *popup = EPHY_FULLSCREEN_POPUP (widget); + + GTK_WIDGET_CLASS (ephy_fullscreen_popup_parent_class)->get_preferred_height (widget, minimum, natural); if (gtk_widget_get_realized (widget)) { @@ -321,7 +337,8 @@ ephy_fullscreen_popup_class_init (EphyFullscreenPopupClass *klass) object_class->get_property = ephy_fullscreen_popup_get_property; object_class->set_property = ephy_fullscreen_popup_set_property; - widget_class->size_request = ephy_fullscreen_popup_size_request; + widget_class->get_preferred_width = ephy_fullscreen_popup_get_preferred_width; + widget_class->get_preferred_height = ephy_fullscreen_popup_get_preferred_height; widget_class->realize = ephy_fullscreen_popup_realize; signals[EXIT_CLICKED] = |