[epiphany] Drop usage of deprecated size-request signal
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Drop usage of deprecated size-request signal
- Date: Sat, 30 Oct 2010 02:23:52 +0000 (UTC)
commit d977181645702ebf719134b5651521a0490e61fa
Author: Matthias Classen <mclassen redhat com>
Date: Sat Oct 30 11:21:24 2010 +0900
Drop usage of deprecated size-request signal
Signed-off-by: Xan Lopez <xan gnome org>
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 9b47d88..1d1b8be 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] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]