summaryrefslogtreecommitdiff
path: root/components/html/glibwww-callbacks.c
Commit message (Collapse)AuthorAgeFilesLines
* xml-i18n-toolized Nautilus (plus a bit of other cleanup) as partMaciej Stachowiak2001-01-051-214/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of resolving bug 2693 (I will consider my work done once I have also handled Bonobo). * autogen.sh, configure.in: xml-i18n-toolize * .cvsignore: ignore xml-i18n scripts * Makefile.am: distribute xml-i18n-scripts * components/adapter/Nautilus_ComponentAdapterFactory_std.oaf.in: Renamed from components/adapter/nautilus-adapter.oafinfo; mark translatable strings transalatable. * components/adapter/Makefile.am: Deal w/ oaf file rename, do merge. * components/adapter/.cvsignore: Ignore .oaf file. * components/hardware/.cvsignore, components/hardware/Makefile.am, components/hardware/Nautilus_View_hardware.oaf.in, components/hardware/nautilus-hardware-view.oafinfo: Ditto. * components/history/.cvsignore, components/history/Makefile.am, components/history/Nautilus_View_history.oaf.in, components/history/nautilus-history-view.oafinfo: Ditto. * components/image-viewer/.cvsignore, components/image-viewer/Makefile.am, components/image-viewer/Nautilus_View_image.oaf.in, components/image-viewer/nautilus-image-view.oafinfo: Ditto. * components/loser/content/.cvsignore, components/loser/content/Makefile.am, components/loser/content/Nautilus_View_content-loser.oaf.in, components/loser/content/nautilus-content-loser.oafinfo: Ditto. * components/loser/sidebar/.cvsignore, components/loser/sidebar/Makefile.am, components/loser/sidebar/Nautilus_View_sidebar-loser.oaf.in, components/loser/sidebar/nautilus-sidebar-loser.oafinfo: Ditto. * components/mozilla/.cvsignore, components/mozilla/Makefile.am, components/mozilla/Nautilus_View_mozilla.oaf.in, components/mozilla/nautilus-mozilla-content-view.oafinfo: Ditto. * components/music/.cvsignore, components/music/Makefile.am, components/music/Nautilus_View_music.oaf.in, components/music/nautilus-music-view.oafinfo: Ditto. * components/notes/.cvsignore, components/notes/Makefile.am, components/notes/Nautilus_View_notes.oaf.in, components/notes/nautilus-notes.oafinfo: Ditto. * components/rpmview/.cvsignore, components/rpmview/Makefile.am, components/rpmview/Nautilus_View_rpm.oaf.in, components/rpmview/nautilus-rpm-view.oafinfo: Ditto. * components/sample/.cvsignore, components/sample/Makefile.am, components/sample/Nautilus_View_sample.oaf.in, components/sample/nautilus-sample-content-view.oafinfo: Ditto. * components/services/install/nautilus-view/.cvsignore, components/services/install/nautilus-view/Makefile.am, components/services/install/nautilus-view/Nautilus_View_install.oaf.in, components/services/install/nautilus-view/nautilus-service-install-view.oafinfo: Ditto. * components/services/install/server/.cvsignore, components/services/install/server/Makefile.am, components/services/install/server/Trilobite_Service_install.oaf.in, components/services/install/server/trilobite-eazel-install-service.oafinfo: Ditto. * components/services/login/nautilus-view/.cvsignore, components/services/login/nautilus-view/Makefile.am, components/services/login/nautilus-view/Nautilus_View_change-password.oaf.in, components/services/login/nautilus-view/nautilus-change-password-view.oafinfo: Ditto. * components/services/summary/nautilus-view/.cvsignore, components/services/summary/nautilus-view/Makefile.am, components/services/summary/nautilus-view/Nautilus_View_services-summary.oaf.in, components/services/summary/nautilus-view/nautilus-summary-view.oafinfo: Ditto. * components/services/trilobite/sample/.cvsignore, components/services/trilobite/sample/nautilus-view/Makefile.am, components/services/trilobite/sample/nautilus-view/Nautilus_View_service-sample.oaf.in, components/services/trilobite/sample/nautilus-view/nautilus-sample-service-view.oafinfo: Ditto. * components/services/trilobite/sample/service/.cvsignore, components/services/trilobite/sample/service/Makefile.am, components/services/trilobite/sample/service/Trilobite_Service_sample.oaf.in, components/services/trilobite/sample/service/trilobite-eazel-sample-service.oafinfo: Ditto. * components/text/.cvsignore, components/text/Makefile.am, components/text/Nautilus_View_text.oaf.in, components/text/nautilus-text-view.oafinfo: Ditto. * src/.cvsignore, src/Makefile.am, src/Nautilus_shell.oaf.in, src/nautilus.oafinfo: Ditto. * components/tree/.cvsignore, components/tree/Makefile.am, components/tree/Nautilus_View_tree.oaf.in, components/tree/nautilus-tree-view.oafinfo.shlib: Ditto, and removed ability to build tree view as an exe component (no one was really using it anyway). * components/tree/nautilus-tree-view.oafinfo.exe: Removed. * components/help/.cvsignore, components/help/Makefile.am, components/help/Nautilus_View_help.oaf.in: components/help/help-contents.oafinfo: Ditto, and merged other oafinfo files into Nautilus_View_help.oaf.in, commented out. * components/help/help-factory.oafinfo, components/help/help-index.oafinfo, components/help/help-search.oafinfo: Removed. * po/POTFILES.in: Added .oaf.in files. * po/README.tools, po/ui-extract.pl, po/ui-testcases.glade, po/ui-testcases.xml, po/update.pl, po/update.sh: Removed these now-obsolete files. * components/services/Makefile.am: Removed time service from build. * components/html/*, components/websearch/*: cvs deleted these obsolete long since non-built components. * ChangeLog-200001018: Renamed to ChangeLog-20001018 (whoops)
* reviewed by: Pavel Cisler <pavel@eazel.com>Darin Adler2001-01-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug 5235 ("Forget History" eliminates history from Go menu, not History sidebar panel). * components/history/nautilus-history-view.c: (install_icons): Fix leak of pixmap and bitmap. (update_history): Replaced dual lock system with a single one. (button_press_callback): Only respect button 1, ignore others. (button_release_callback): Only respect button 1, ignore others, (history_changed_callback): A new single callback for when the history list changes to replace the multiple callbacks before. (nautilus_history_view_initialize_class), (nautilus_history_view_initialize), (nautilus_history_view_destroy), (main): Change the history view to use nautilus_view_standard_main which requires a subclass. This gets rid of a lot of boilerplate code. * libnautilus/nautilus-view-component.idl: Make every NautilusView get an explicit history_changed call instead of requiring them to guess when to get history. Removed the old get_history_list call and also renamed the HistoryList sequence to History. * libnautilus/nautilus-view.h: * libnautilus/nautilus-view.c: (impl_Nautilus_View_history_changed), (nautilus_view_initialize_class): Added the necessary stuff to cover the new history_changed call. * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize): Connect handlers so we can send history_changed calls to the NautilusView when either the history or the icons change. (nautilus_view_frame_destroy): Change state to EMPTY so the history signal won't be sent once the frame is destroyed. (view_frame_activated): Send a history_changed to every newly-activated view. (get_CORBA_object): Helper function to make code that makes CORBA calls simpler. (check_if_view_is_gone): Use get_CORBA_object. (attach_client): Gave a nicer name, removed the code that makes the Nautilus_HistoryFrame interface. (nautilus_view_frame_load_client): Do the attach_client (formerly nautilus_view_frame_set_to_component) before calling view_frame_activated. This is needed since view_frame_activated now sends a history_changed to the view. (nautilus_view_frame_load_location), (nautilus_view_frame_stop_loading), (nautilus_view_frame_selection_changed), (nautilus_view_frame_title_changed): Use get_CORBA_object. (get_history_list): Made this private. (send_history): Helper function that sends history to the view if it's in the appropriate state. * src/Makefile.am: * src/nautilus-history-frame.c: * src/nautilus-history-frame.h: Removed the old NautilusHistoryFrame, which is no longer needed since we put the history call right in the NautilusView class. * src/nautilus-window-manage-views.c: (get_history_list_callback): Updated for Nautilus_HistoryList -> Nautilus_History change. Fix bug 5391 ("Esc" Canceling of an icon stretch doesn't restore icon position.). * libnautilus-extensions/nautilus-icon-private.h: * libnautilus-extensions/nautilus-icon-container.c: (clear_drag_state): Add a single bottleneck function to make sure the context menu timeout always gets canceled. (continue_stretching): Remove the unused "update_position" parameter. (undo_stretching): Consolidate the cancel_stretching function and restore the icon's position as well as its size. Also use the new bottleneck to clear the drag state. (button_release_event): Use the new bottleneck to clear the drag state. (show_context_menu_callback): Use the new bottleneck to clear the drag state. (nautilus_icon_container_set_selection), (nautilus_icon_container_select_list_unselect_others): Take advantage of the defaults in g_hash_table_new and use NULL, NULL instead of g_direct_hash, g_direct_equal. (nautilus_icon_container_show_stretch_handles): Save the position as well as the size. (compute_stretch): Add a FIXME with a bug number. Fix bug 5407 (Make "Hardware Overview" title translatable). * components/hardware/nautilus-hardware-view.c: (nautilus_hardware_view_destroy): Remove unused uri field. (extract_info): Fix storage leak. (get_RAM_description): Get rid of code that non-portably relies on long long. Mark strings for translation. (get_IDE_description): Get rid of code that non-portably relies on long long. Mark strings for translation. (setup_overview_form): Marked string for translation. (setup_CPU_form), (setup_RAM_form), (setup_IDE_form), (is_location), (nautilus_hardware_view_load_uri): Disable the views other than the overview for now since they are not ready to be seen. (nautilus_hardware_view_drag_data_received): Get rid of the code that makes the hardware view accept a URI list drag. Fix bug 5405 (nautilus --check fails when using LC_ALL=sv_SE due to missing entry in POTFILES.in). * po/POTFILES.in: Added nautilus-glib-extensions.c. Other changes. * src/nautilus-signaller.h: * src/nautilus-signaller.c: (nautilus_signaller_initialize_class), (nautilus_signaller_get_current): Change the NautilusSignaller class so that the interface calls the object a GtkObject * and the details of the class are hidden. * src/nautilus-property-browser.c: (emit_emblems_changed_signal): * src/nautilus-search-bar-criterion.c: (nautilus_search_bar_criterion_destroy), (nautilus_search_bar_criterion_new_from_values): * src/nautilus-window-menus.c: (nautilus_window_initialize_go_menu): * src/nautilus-window.c: (nautilus_send_history_list_changed): Now that nautilus_signaller_get_current returns a GtkObject, remove some unnecessary casts. * components/html/glibwww-callbacks.c: (get_sock_info), (glibwww_timer_register): * components/tree/nautilus-tree-model.c: (nautilus_tree_model_initialize): * components/tree/nautilus-tree-view.c: (nautilus_tree_view_initialize): * libnautilus-extensions/nautilus-directory-async.c: (async_job_start): * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_notify_files_added), (nautilus_directory_notify_files_removed), (nautilus_directory_notify_files_moved): * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_initialize): * libnautilus-extensions/nautilus-list.c: (nautilus_list_set_selection): * libnautilus-extensions/nautilus-merged-directory.c: (nautilus_merged_directory_initialize): * libnautilus-extensions/nautilus-trash-directory.c: (nautilus_trash_directory_initialize): * src/file-manager/fm-properties-window.c: (fm_properties_window_present): Take advantage of the defaults in g_hash_table_new and use NULL, NULL instead of g_direct_hash, g_direct_equal.
* Added NAUTILUS_PREFIX so we can locate our installed files correctlyDarin Adler2000-06-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acconfig.h: * configure.in: Added NAUTILUS_PREFIX so we can locate our installed files correctly instead of assuming they are in the gnome-libs prefix. * components/help/hyperbola-filefmt.c: (fmt_map_entry): * components/websearch/ntl-web-search.c: (web_search_populate_engines): * libnautilus-extensions/nautilus-file-utilities.c: (nautilus_get_user_main_directory): * libnautilus-extensions/nautilus-link-set.c: (get_link_set_document): * src/file-manager/fm-properties-window.c: (get_property_names): * src/nautilus-property-browser.c: (nautilus_property_browser_drag_data_get), (make_drag_image), (get_xml_path), (make_properties_from_directory): Use NAUTILUS_PREFIX instead of gnome_datadir_file so we get the files from the right directory. Since gnome_datadir_file does a check to see if the file exists, had to add some explicit checks in various places. * components/html/glib-www-callbacks.c: Got rid of some warnings. * components/services/time/command-line/.cvsignore: * components/services/time/nautilus-view/.cvsignore: * components/services/time/service/.cvsignore: Ignore the new time stamp files. * libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h: Fixed formatting. * RENAMING: * src/nautilus-sidebar-tabs.c: * src/nautilus-sidebar-tabs.h: * src/nautilus-sidebar-title.c: * src/nautilus-sidebar-title.h: * src/nautilus-sidebar.c: Renamed IndexTabs and IndexTitle to SidebarTabs and SidebarTitle as planned.
* Moved metafile code into its own source file. Also worked on making it allDarin Adler2000-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-directory-metafile.c: (get_metadata_from_node), (get_metadata_list_from_node), (create_metafile_root), (nautilus_directory_get_metadata), (nautilus_directory_get_metadata_list), (nautilus_directory_get_boolean_metadata), (nautilus_directory_set_boolean_metadata), (nautilus_directory_get_integer_metadata), (nautilus_directory_set_integer_metadata), (nautilus_directory_get_file_metadata_node), (nautilus_directory_get_file_metadata), (nautilus_directory_get_file_metadata_list), (real_set_metadata), (real_set_metadata_list), (metadata_key_new), (metadata_key_destroy), (metadata_key_hash), (metadata_key_hash_equal), (metadata_value_new), (metadata_value_new_list), (metadata_value_destroy), (metadata_value_equal), (set_metadata_in_metafile), (set_metadata_eat_parameters), (free_metadata_changes_hash_table_entry), (destroy_metadata_changes_hash_table), (nautilus_directory_metafile_destroy), (nautilus_directory_set_metadata), (nautilus_directory_set_file_metadata), (nautilus_directory_set_file_metadata_list): * libnautilus-extensions/nautilus-directory-metafile.h: * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_destroy): * libnautilus-extensions/nautilus-file.c: Moved metafile code into its own source file. Also worked on making it all bottleneck so we can store it before we read in a metafile. * src/file-manager/fm-list-view.c: (select_matching_name_callback): * libnautilus-extensions/nautilus-glib-extensions.h: Added nautilus_boolean_bit for use in bit fields where gboolean results in a signed bitfield. * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_list_copy), (nautilus_g_str_list_equal), (nautilus_g_str_list_copy): Added functions for dealing with a list of C strings. Also got rid of const GList *. For GList we don't use const because the functions in <glib.h> don't. (nautilus_g_ptr_array_new_from_list), (nautilus_g_ptr_array_sort), (nautilus_g_ptr_array_search): Renamed the new functions and types to more closely match the standard. For example, the types must have a Nautilus prefix. * src/ntl-window.h: * libnautilus-extensions/nautilus-icon-private.h: * libnautilus-extensions/nautilus-icon-container.c: (icon_set_selected), (rubberband_select): Switched to use the nautilus_boolean_bit type. * components/html/glibwww-callbacks.c: Moved <config.h> include down to fix some warnings.
* Wrote a script to check for files that forget to include <config.h> andDarin Adler2000-05-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * check-config-h.pl: Wrote a script to check for files that forget to include <config.h> and optionally edit to add it. * src/nautilus-zoom-control.c (set_zoom_level): Fixed the bug number in a FIXME. * docs/style-guide.html: Added one more tip. * check-FIXME.pl: Use my newfound Perl knowledge to spruce it up. * components/help/converters/gnome-db2html2/gdb3html.c: * components/help/converters/gnome-db2html2/sect-elements.c: * components/help/converters/gnome-db2html2/sect-preparse.c: * components/help/converters/gnome-db2html2/toc-elements.c: * components/help/converters/gnome-info2html2/html.c: * components/help/converters/gnome-info2html2/main.c: * components/help/converters/gnome-info2html2/parse.c: * components/help/converters/gnome-info2html2/utils.c: * components/help/converters/gnome-man2html2/gnome-man2html.c: * components/help/hyperbola-filefmt.c: * components/help/hyperbola-nav-index.c: * components/help/hyperbola-nav-search.c: * components/help/hyperbola-nav-tree.c: * components/html/glibwww-callbacks.c: * components/html/glibwww-init.c: * components/html/glibwww-trans.c: * components/html/gnome-dialogs.c: * components/html/ntl-web-browser.c: * components/services/install/eazel-install-metadata.c: * components/services/install/eazel-install-protocols.c: * components/services/install/eazel-install-rpm-glue.c: * components/services/install/eazel-install-tests.c: * components/services/install/eazel-install-utils.c: * components/services/install/eazel-install-xml-package-list.c: * components/services/install/eazel-install.c: * components/services/install/helixcode-install-utils.c: * components/services/startup/eazel-register.c: * components/websearch/ntl-web-search.c: * helper-utilities/authenticate/nautilus-authenticate-fork.c: * helper-utilities/authenticate/nautilus-authenticate-pam.c: * helper-utilities/authenticate/nautilus-authenticate.c: * libnautilus-extensions/nautilus-bonobo-extensions.c: * libnautilus-extensions/nautilus-file-utilities.c: * libnautilus-extensions/nautilus-glib-extensions.c: * libnautilus-extensions/nautilus-link.c: * libnautilus-extensions/nautilus-mime-type.c: * libnautilus-extensions/nautilus-undo-transaction.c: * librsvg/art_rgba.c: * librsvg/art_rgba_svp.c: * librsvg/rsvg-bpath-util.c: * librsvg/rsvg-path.c: * librsvg/rsvg.c: * librsvg/test-rsvg.c: * nautilus-widgets/nautilus-caption-table.c: * nautilus-widgets/nautilus-password-dialog.c: * nautilus-widgets/nautilus-preferences-box.c: * nautilus-widgets/nautilus-preferences-dialog.c: * nautilus-widgets/nautilus-preferences-group.c: * nautilus-widgets/nautilus-preferences-item.c: * nautilus-widgets/nautilus-preferences-pane.c: * nautilus-widgets/nautilus-radio-button-group.c: * nautilus-widgets/test-nautilus-widgets.c: * nautilus-widgets/test-preferences.c: * src/file-manager/desktop-item.c: * src/file-manager/desktop-layout.c: * src/file-manager/desktop-menu.c: * src/nautilus-bookmarks-window.c: * src/nautilus-gconf.c: * src/nautilus-window-menus.c: * src/nautilus-window-toolbars.c: * src/nautilus-zoom-control.c * src/nautilus-zoomable-frame-svr.c: * src/ntl-app.c: * src/ntl-content-view.c: * src/ntl-main.c: * src/ntl-meta-view.c: * src/ntl-miniicon.c: * src/ntl-uri-map.c: * src/ntl-view-frame-svr.c: * src/ntl-view.c: * src/ntl-window-state.c: Added includes of <config.h>.
* Add HTML component to build. Make process die when all objects have beenElliot Lee1999-12-201-0/+211
* configure.in, components/Makefile.am: Add HTML component to build. * components/help/hyperbola-main.c, components/history/ntl-history-view.c: Make process die when all objects have been destroyed. * components/history/ntl-history-view.c: Bug fixes. * components/html/*.[ch]: Copy glibwww over, write new NautilusViewClient for HTML browsing. * src/ntl-uri-map.c: Cleanup, and use ntl_web_browser as default HTML display engine. * src/ntl-view.c: Try to handle Bonobo views for data display.