diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | lib/ephy-file-chooser.c | 21 |
2 files changed, 30 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2004-04-14 Christian Persch <chpe@cvs.gnome.org> + * lib/ephy-file-chooser.c: (ephy_file_chooser_constructor), + (ephy_file_chooser_class_init): + + Add "Downloads" folder shortcut to our file chooser dialogues. + +2004-04-14 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-tab.c: (ephy_tab_new_window_cb), (ephy_tab_visibility_cb), (ephy_tab_destroy_brsr_cb): @@ -13,6 +20,8 @@ * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild): * src/ephy-tabs-menu.c: (tab_added_cb): + Set the action's accel_path, fixes bug #139641 for ephy. + 2004-04-09 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyHeaderSniffer.cpp: diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c index a7f610336..72d265230 100644 --- a/lib/ephy-file-chooser.c +++ b/lib/ephy-file-chooser.c @@ -101,6 +101,26 @@ ephy_file_chooser_init (EphyFileChooser *dialog) dialog->priv->persist_key = NULL; } +static GObject * +ephy_file_chooser_constructor (GType type, + guint n_construct_properties, + GObjectConstructParam *construct_params) + +{ + GObject *object; + char *downloads_dir; + + object = parent_class->constructor (type, n_construct_properties, + construct_params); + + downloads_dir = ephy_file_downloads_dir (); + gtk_file_chooser_add_shortcut_folder + (GTK_FILE_CHOOSER (object), downloads_dir, NULL); + g_free (downloads_dir); + + return object; +} + static void ephy_file_chooser_finalize (GObject *object) { @@ -193,6 +213,7 @@ ephy_file_chooser_class_init (EphyFileChooserClass *klass) parent_class = g_type_class_peek_parent (klass); + object_class->constructor = ephy_file_chooser_constructor; object_class->finalize = ephy_file_chooser_finalize; object_class->get_property = ephy_file_chooser_get_property; object_class->set_property = ephy_file_chooser_set_property; |