[devhelp] Do not try to get to the web view by descending the widget tree manually
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [devhelp] Do not try to get to the web view by descending the widget tree manually
- Date: Tue, 22 Sep 2009 09:22:08 +0000 (UTC)
commit 0d797d6dc4fd25308a153f69627e5e3c79bcc5ea
Author: Frédéric Péters <fpeters 0d be>
Date: Thu Aug 27 23:19:17 2009 +0200
Do not try to get to the web view by descending the widget tree manually
src/dh-window.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index e119c1d..c96c007 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -1418,6 +1418,7 @@ window_tab_set_title (DhWindow *window,
GtkWidget *page;
GtkWidget *hbox;
GtkWidget *label;
+ GtkWidget *page_web_view;
priv = window->priv;
@@ -1429,9 +1430,10 @@ window_tab_set_title (DhWindow *window,
for (i = 0; i < num_pages; i++) {
page = gtk_notebook_get_nth_page (
GTK_NOTEBOOK (priv->notebook), i);
+ page_web_view = g_object_get_data (G_OBJECT (page), "web_view");
/* The web_view widget is inside a frame. */
- if (gtk_bin_get_child (GTK_BIN (page)) == GTK_WIDGET (web_view)) {
+ if (page_web_view == GTK_WIDGET (web_view)) {
hbox = gtk_notebook_get_tab_label (
GTK_NOTEBOOK (priv->notebook), page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]