diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-02-03 01:27:41 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-02-03 01:27:41 +0800 |
commit | 02459287792457cac98e02641a7d2aaad303b88d (patch) | |
tree | a0a338ddc3430959def7949b1623fbc63ec45b1b /lib | |
parent | 2d89547a741b0b2991c36e4ae86a9cd7cc36985c (diff) | |
download | gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.tar gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.tar.gz gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.tar.bz2 gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.tar.lz gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.tar.xz gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.tar.zst gsoc2013-epiphany-02459287792457cac98e02641a7d2aaad303b88d.zip |
On session logout, check if there are downloads pending (since they're not
2006-02-02 Christian Persch <chpe@cvs.gnome.org>
* embed/downloader-view.c:
* embed/downloader-view.h:
* embed/ephy-embed-shell.c:
(ephy_embed_shell_get_downloader_view_nocreate):
* embed/ephy-embed-shell.h:
* lib/ephy-gui.c: (ephy_gui_message_dialog_get_content_box):
* lib/ephy-gui.h:
* src/ephy-session.c:
(confirm_shutdown_dialog_update_timeout_label),
(confirm_shutdown_dialog_tick_cb),
(confirm_shutdown_dialog_response_cb),
(confirm_shutdown_dialog_accept_cb),
(confirm_shutdown_dialog_weak_ref_cb), (confirm_shutdown_cb),
(save_yourself_cb):
On session logout, check if there are downloads pending (since
they're not resumable, bug #128048). #if 0'd for now.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-gui.c | 24 | ||||
-rw-r--r-- | lib/ephy-gui.h | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c index 7ed8b36ef..d5104ad10 100644 --- a/lib/ephy-gui.c +++ b/lib/ephy-gui.c @@ -526,3 +526,27 @@ ephy_gui_window_present (GtkWindow *window, gtk_widget_show (widget); } } + +/* Pending gtk+ bug http://bugzilla.gnome.org/show_bug.cgi?id=328069 */ +GtkWidget * +ephy_gui_message_dialog_get_content_box (GtkWidget *dialog) +{ + GtkWidget *container; + GList *children; + + /* Get the hbox which is the first child of the main vbox */ + children = gtk_container_get_children (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox)); + g_return_val_if_fail (children != NULL, NULL); + + container = GTK_WIDGET (children->data); + g_list_free (children); + + /* Get the vbox which is the second child of the hbox */ + children = gtk_container_get_children (GTK_CONTAINER (container)); + g_return_val_if_fail (children != NULL && children->next != NULL, NULL); + + container = GTK_WIDGET (children->next->data); + g_list_free (children); + + return container; +} diff --git a/lib/ephy-gui.h b/lib/ephy-gui.h index c46efe746..a471f29b2 100644 --- a/lib/ephy-gui.h +++ b/lib/ephy-gui.h @@ -80,6 +80,8 @@ void ephy_gui_window_update_user_time (GtkWidget *window, void ephy_gui_window_present (GtkWindow *window, guint32 user_time); +GtkWidget *ephy_gui_message_dialog_get_content_box (GtkWidget *dialog); + G_END_DECLS #endif |