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 /embed/ephy-web-view.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 'embed/ephy-web-view.c')
-rw-r--r-- | embed/ephy-web-view.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 4e93733ab..bb5ce6bb3 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -163,6 +163,7 @@ popups_manager_new_window_info (EphyEmbedContainer *container) { EphyEmbed *embed; EphyWebViewChrome chrome; + GtkAllocation allocation; gboolean is_popup; char *features; @@ -172,10 +173,12 @@ popups_manager_new_window_info (EphyEmbedContainer *container) embed = ephy_embed_container_get_active_child (container); g_return_val_if_fail (embed != NULL, g_strdup ("")); + gtk_widget_get_allocation (GTK_WIDGET (embed), &allocation); + features = g_strdup_printf ("width=%d,height=%d,menubar=%d,status=%d,toolbar=%d", - GTK_WIDGET (embed)->allocation.width, - GTK_WIDGET (embed)->allocation.height, + allocation.width, + allocation.height, (chrome & EPHY_WEB_VIEW_CHROME_MENUBAR) > 0, (chrome & EPHY_WEB_VIEW_CHROME_STATUSBAR) > 0, (chrome & EPHY_WEB_VIEW_CHROME_TOOLBAR) > 0); @@ -970,7 +973,7 @@ ge_new_window_cb (EphyWebView *view, g_return_if_fail (new_view != NULL); container = EPHY_EMBED_CONTAINER (gtk_widget_get_toplevel (GTK_WIDGET (new_view))); - g_return_if_fail (container != NULL || !GTK_WIDGET_TOPLEVEL (container)); + g_return_if_fail (container != NULL || !gtk_widget_is_toplevel (GTK_WIDGET (container))); popups_manager_add_window (view, container); } |