diff options
author | Javier Jardón <javierjc1982@gmail.com> | 2009-09-22 17:27:30 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-09-22 17:33:15 +0800 |
commit | 0eadd147c38a58cd235571d228e393216416cd3e (patch) | |
tree | 943359c4cb4d5ac6dcf797684322d5926f4c5c6a /src/ephy-fullscreen-popup.c | |
parent | f279bbf2de2896f39ef08e52961e8638b9f1a29b (diff) | |
download | gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.gz gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.zst gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.zip |
GTK+ 2.17.11 is now the required version
I've used all the GTK+ 2.17.11 api available, still missing:
GTK_WIDGET_REALIZED (GTK_WIDGET ())
GTK_WIDGET_MAPPED (GTK_WIDGET ())
GTK_ENTRY->im_context
GTK_STATUSBAR->frame
GTK_STATUSBAR->label
GTK_MESSAGE_DIALOG->label
https://bugzilla.gnome.org/show_bug.cgi?id=595791
Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'src/ephy-fullscreen-popup.c')
-rw-r--r-- | src/ephy-fullscreen-popup.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ephy-fullscreen-popup.c b/src/ephy-fullscreen-popup.c index cad0c7b47..88d530d5f 100644 --- a/src/ephy-fullscreen-popup.c +++ b/src/ephy-fullscreen-popup.c @@ -102,7 +102,7 @@ ephy_fullscreen_popup_update_spinner (EphyFullscreenPopup *popup) { EphyFullscreenPopupPrivate *priv = popup->priv; - if (priv->spinning && GTK_WIDGET_VISIBLE (popup)) + if (priv->spinning && gtk_widget_get_visible (GTK_WIDGET (popup))) { ephy_spinner_start (priv->spinner); } @@ -116,16 +116,19 @@ static void ephy_fullscreen_popup_update_position (EphyFullscreenPopup *popup) { GtkWidget *widget = GTK_WIDGET (popup); + GtkRequisition requisition; GdkScreen *screen; GdkRectangle screen_rect; int popup_width; - popup_width = widget->requisition.width; + gtk_widget_size_request (widget, &requisition); + popup_width = requisition.width; screen = gtk_widget_get_screen (widget); gdk_screen_get_monitor_geometry (screen, - gdk_screen_get_monitor_at_window (screen, widget->window), + gdk_screen_get_monitor_at_window (screen, + gtk_widget_get_window (widget)), &screen_rect); if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) |