summaryrefslogtreecommitdiff
path: root/libnautilus/nautilus-view-standard-main.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge bonobo-slay-branchAlexander Larsson2004-11-221-422/+0
| | | | | 2004-11-22 Alexander Larsson <alexl@redhat.com> * Merge bonobo-slay-branch
* Correctly remove nautilus_view_never_got_frame_timeout timeout on destroy.Alexander Larsson2003-09-181-2/+2
| | | | | | | | 2003-09-18 Alexander Larsson <alexl@redhat.com> * libnautilus/nautilus-view-standard-main.c (nautilus_view_instrument_for_failure): Correctly remove nautilus_view_never_got_frame_timeout timeout on destroy. Fixes #120904, thanks to Narayana Pattipati for diagnosing this.
* Move the GNOME_CLIENT_PARAM_SM_CONNECT property setting to theAlexander Larsson2003-02-181-4/+2
| | | | | | | | | | | | 2003-02-18 Alexander Larsson <alexl@redhat.com> * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): Move the GNOME_CLIENT_PARAM_SM_CONNECT property setting to the gnome_program_init call. Setting it later doesn't work. * src/file-manager/fm-directory-view.c (no_locale_at_end) (get_bonobo_menu_verb_names): Filter out locale versions of nautilusverbs.
* s/GtkType/GType/Alexander Larsson2003-02-041-1/+1
|
* Unref the control.Dave Camp2003-01-221-0/+1
| | | | | | | 2003-01-22 Dave Camp <dave@ximian.com> * libnautilus/nautilus-view-standard-main.c: (make_object): Unref the control.
* activate the throbber in case we didn't earlier.Michael Meeks2002-05-131-18/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-13 Michael Meeks <michael@ximian.com> * src/nautilus-window.c (nautilus_window_show_toolbar): activate the throbber in case we didn't earlier. * src/nautilus-window-toolbars.c (nautilus_window_activate_throbber): split out of (nautilus_window_initialize_toolbars): here, only activate the throbber if we are starting with a toolbar. * src/nautilus-window.c: (nautilus_window_show_toolbar, nautilus_window_hide_toolbar): move into nautilus-window-toolbars. * libnautilus/nautilus-view-standard-main.c (object_destroyed): upd. comment. (make_object): prune bogus comment. (nautilus_view_instrument_for_failure): impl. (object_destroyed): only do 1 destroy ever, rename (view_object_destroy): to this. (make_object): upd. (nautilus_view_never_got_frame_timeout), (nautilus_view_set_frame_callback), (nautilus_view_cnx_broken_callback): impl.
* re-instate the making of per display iids.Michael Meeks2002-03-141-2/+2
| | | | | | | | | | | | | | | | | | 2002-03-11 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-bonobo-extensions.c (nautilus_bonobo_activation_register_for_display): re-instate the making of per display iids. * components/loser/sidebar/main.c (main): use eel_bonobo_make_registration_id. * components/loser/content/main.c (main): ditto. * components/adapter/main.c (main): ditto. * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): ditto.
* Rename old stop_monitoring_directory function.Darin Adler2002-03-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * components/tree/nautilus-tree-model.h: * components/tree/nautilus-tree-model.c: (stop_monitoring_directory_without_reporting): Rename old stop_monitoring_directory function. (stop_monitoring_directory): New function that handles changes caused by stopping monitoring. (destroy_children_by_function): New. (destroy_by_function): New. (should_show_file): New. (update_node): Call should_show_file instead of nautilus_file_is_gone to decide whether a given file should show up. (process_file_change): Ditto. (start_monitoring_directory): Pass through flags for whether to monitor invisible or backup files, rather than just TRUE, TRUE. (nautilus_tree_model_get_value): Use PANGO_STYLE_ITALIC instead of PANGO_STYLE_OBLIQUE. Both will fall back to the other if not available, but if we have both, we'd prefer italic. (stop_monitoring_directory_and_children): New. (stop_monitoring): New. (nautilus_tree_model_set_show_hidden_files): New. (nautilus_tree_model_set_show_backup_files): New. (file_is_not_directory): New. (nautilus_tree_model_set_show_only_directories): New. * components/tree/nautilus-tree-view.c: (update_filtering_from_preferences): Call functions to change settings on model rather than storing these settings here. (tree_activate_callback), (filtering_changed_callback): Call update_filtering_from_preferences to set filtering for the newly created tree. (nautilus_tree_view_instance_init): Don't call update_filtering_from_preferences here, because we don't have a tree model yet. * libnautilus-private/nautilus-theme.c: Formatting tweaks. * libnautilus/nautilus-view-standard-main.c: Formatting tweak. * src/nautilus-window-toolbars.c: Formatting tweaks, and remove some unnecessary localized strings. * src/nautilus-zoom-control.h: Remove extern "C" stuff. If we need this, we'll do G_BEGIN_DECLS, and it's silly to use it for private headers that are never going to be used from C++. * libnautilus-private/nautilus-bonobo-extensions.c: (nautilus_bonobo_activation_register_for_display): Temporarily re-disable per-display registration since it doesn't work at all on my machine. I'll turn it back on after talking to Michael Meeks.
* impl. to cope with having a paned with no child2, without doing lots ofMichael Meeks2002-03-071-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-07 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-horizontal-splitter.c (nautilus_horizontal_splitter_size_allocate): impl. to cope with having a paned with no child2, without doing lots of bogus size re-allocation. (nautilus_horizontal_splitter_class_init): upd. (nautilus_horizontal_splitter_pack2): impl, since gtkpaned relies on the re-size to generate an expose to re-render it's splitter grabber thing.a * src/nautilus-sidebar.c (nautilus_sidebar_set_width): impl. moving all sidebar preferences here, (nautilus_sidebar_init): move auto value setup here from class_init to save possible re-enterancy issue. Request the size we want for the sidebar, the pane will under-allocate if neccessary. Set the old_width to the correct size so we don't re-render the paned lots as it swiches about. * src/nautilus-window.c (nautilus_window_constructed): reflow to simplify, call sidebar_set_width. (nautilus_window_set_content_view_widget): use nautilus_..._pack2 instead of gtk_paned to fix rendering. 2002-03-06 Michael Meeks <michael@ximian.com> * components/notes/nautilus-notes.c (make_notes_view): upd. * components/news/nautilus-news.c (rss_read_done_callback): parse the RTF, but don't spew warnings everywhere. (make_news_view): upd. * components/throbber/main.c (cb_create_throbber): impl. (throbber_object_destroyed, throbber_make_object): axe cut & paste. * libnautilus/nautilus-view-standard-main.c (nautilus_view_create_from_get_type_function): widen from NautilusView to BonoboObject, this code has a much wider application. (make_object): ditto. * components/hardware/nautilus-hardware-view.c (nautilus_hardware_view_get_nautilus_view): upd. * components/throbber/nautilus-throbber.c (nautilus_throbber_new): kill. * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): use gdk_get_display. * libnautilus-private/nautilus-bonobo-extensions.c (nautilus_bonobo_activation_register_for_display): impl. * src/nautilus-application.c (nautilus_application_startup): use it. * src/nautilus-window-toolbars.c (location_change_at_idle_callback), (throbber_callback): move from nautilus-window.c (nautilus_window_allow_stop): move this here, prune redundant sets, simplify property bag extraction. * src/nautilus-window.c (nautilus_window_constructed): move throbber location changed code out of here. (nautilus_window_unrealize): no explicit removal from remote property bag neccessary & upd. * libnautilus-private/nautilus-metafile-factory.c (corba_open): reduce complexity.
* Simplified calls to bonobo_object_ref/unref.Darin Adler2002-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Many files: Simplified calls to bonobo_object_ref/unref. * components/history/nautilus-history-view.c: (update_history): Fixed so that a history update while one is already in progress will work properly. * libnautilus/nautilus-view.c: (remove_listener): New. (update_listener): Renamed from nautilus_view_set_frame, made it handle various cases better. Fixed leak of property bag. (forget_cached_view_frame): New. (nautilus_view_set_frame_callback): Use new forget_cached_view_frame and update_listener. (nautilus_view_construct_from_bonobo_control): Use g_signal_connect_object. Not sure if this is better, since they are part of the same aggregate. (nautilus_view_finalize): Use new forget_cached_view_frame and remove_listener. (nautilus_view_dispose): Use new forget_cached_view_frame and remove_listener. (nautilus_view_get_view_frame): Fixed leak of control frame. (nautilus_view_set_listener_mask): Simplified, and made it work even if you call it multiple times, by calling new update_listener. * libnautilus-private/nautilus-icon-canvas-item.c: (create_label_layout): Handle NULL font_name case just in case. * libnautilus-private/nautilus-icon-container.c: (nautilus_icon_container_set_zoom_level): Use invalidate_label_sizes instead of setting update_icon_font. (nautilus_icon_container_set_font_name): Do nothing if font name doesn't change. If it does, use invalidate_label_sizes rather than setting update_icon_font. (nautilus_icon_container_set_font_size_table): Only redraw if font size changes. Also, use invalidate_label_sizes rather than setting update_icon_font. * libnautilus-private/nautilus-directory.c: (add_preferences_callbacks): * libnautilus-private/nautilus-icon-factory.c: (get_icon_factory): Initialize global preferences as needed. * src/file-manager/fm-icon-view.c: (fm_icon_view_finalize): * src/file-manager/fm-search-list-view.c: (real_destroy): * src/nautilus-application.c: (nautilus_application_destroy), (nautilus_application_create_window), (nautilus_application_class_init): * src/nautilus-main.c: (main): * src/nautilus-view-frame.c: (create_corba_objects): Fix property bag leak.
* Remove #ifdef ENABLE_NLS since it's not supported in GNOME 2. Same here.Kjartan Maraas2002-02-221-2/+0
| | | | | | | | | | 2002-02-22 Kjartan Maraas <kmaraas@gnome.org> * components/hardware/main.c: Remove #ifdef ENABLE_NLS since it's not supported in GNOME 2. * components/music/fileinfo.c: Same here. * libnautilus/nautilus-view-standard-main. Here too. * src/nautilus-main.c: Same here.
* Call gnome_program_init.Anders Carlsson2002-01-281-3/+6
| | | | | | | | | 2002-01-28 Anders Carlsson <andersca@gnu.org> * components/throbber/main.c (main): Call gnome_program_init. * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): Call gnome_program_init.
* Add selectable argument. (attach_value_label): set selectable to TRUE.Anders Carlsson2002-01-271-1/+1
| | | | | | | | | | | | | | 2002-01-27 Anders Carlsson <andersca@gnu.org> * src/file-manager/fm-properties-window.c (attach_label): Add selectable argument. (attach_value_label): set selectable to TRUE. (attach_ellipsizing_value_label): Likewise. (attach_title_field): set selectable to FALSE. 2002-01-23 Anders Carlsson <andersca@gnu.org> * libnautilus/nautilus-view-standard-main.c (delayed_quit_timeout_callback): Use gtk_main_quit.
* Use newfangled gnome-client.h calls to turn off session management.Darin Adler2002-01-231-9/+5
| | | | | | | | | | | | | * components/adapter/main.c: (main): * components/image-viewer/nautilus-image-view.c: (init_server_factory): * components/throbber/main.c: (main): Use newfangled gnome-client.h calls to turn off session management. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Since we think the per-display IID scheme is broken in bonobo-activation, we turned it off there, rather than turning it off here.
* re-remove the per display IID creation scheme - it's broken.Michael Meeks2002-01-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-23 Michael Meeks <michael@ximian.com> * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): re-remove the per display IID creation scheme - it's broken. * components/throbber/nautilus-throbber.c (nautilus_throbber_draw): kill, no draw methods in gtk 2.0 (draw_throbber_image): remove bonobo bug workaround, if it still exists it should be fixed in bonobo and fold into (nautilus_throbber_expose): here (draw_pixbuf): fold into (nautilus_throbber_expose): here, and fix rendering bugs. (nautilus_throbber_size_allocate): kill bogus sizing logic. (nautilus_throbber_button_release_event): do conversion. (nautilus_throbber_destroy): remove force_destroy_later. 2002-01-21 Michael Meeks <michael@ximian.com> * src/nautilus-window.c, * src/nautilus-application.c, * src/nautilus-view-frame.c, * libnautilus-private/nautilus-undo-manager.c, * libnautilus-private/nautilus-metafile-factory.c, * libnautilus/nautilus-undo-transaction.c, s/bonobo_object_corba_objref/BONOBO_OBJREF/ * libnautilus-private/nautilus-directory-metafile.c (get_factory): update referencing. * libnautilus/nautilus-view.c (nautilus_view_get_view_frame): impl. helper to reduce sync CORBA traffic. (view_frame_call_end, view_frame_call_begin): upd. (nautilus_view_dispose): release the CORBA ref. if we took it. (nautilus_view_set_frame): unset the frame if we loose it. * libnautilus-private/nautilus-bonobo-extensions.c (add_numbered_menu_item_internal): kill the label encoding. (nautilus_bonobo_add_submenu): ditto. (nautilus_bonobo_set_icon): kill unused. * components/adaptor/bonobo-stream-vfs.[ch]: remove, now inside gnome-vfs.
* Disable the code that destroys the fallback icon at shutdown time since itDarin Adler2002-01-221-0/+1
| | | | | | | | | | | | | | | | | | | | | * libnautilus-private/nautilus-icon-factory.c: (load_icon_for_scaling): Disable the code that destroys the fallback icon at shutdown time since it was hitting some snags. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Add a bonobo_activate to try to reduce the complaints at quit time. * src/nautilus-location-bar.c: (editable_key_press_callback): Make the End key do what the right arrow key did. * src/nautilus-window-manage-views.c: (use_saved_window_positions), (open_location), (position_and_show_window_callback), (determined_initial_view_callback): Open windows right away unless we are using saved window positions. * icons/default/Makefile: Remove. * icons/default/Makefile.in: Remove.
* Remove nautilus-launch-icon.png.Darin Adler2002-01-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Remove nautilus-launch-icon.png. * components/hardware/nautilus-hardware-view.c: (setup_form_title), (setup_overview_form): Port from EelImage to GtkImage. * components/music/nautilus-music-view.c: Remove unused include. * src/nautilus-theme-selector.c: Remove unused includes. * libnautilus-private/nautilus-bonobo-extensions.c: (bonobo_activation_activation_callback): Add warning message so we get to see the error from bonobo-activation. * libnautilus-private/nautilus-directory-metafile.c: (get_factory): * libnautilus-private/nautilus-icon-factory.c: (get_icon_factory), (load_icon_for_scaling), (embed_text): * libnautilus-private/nautilus-metafile-factory.c: (nautilus_metafile_factory_get_instance): * libnautilus-private/nautilus-theme.c: (nautilus_theme_get_theme_data_from_theme): * libnautilus-private/nautilus-trash-monitor.c: (nautilus_trash_monitor_get): * libnautilus-private/nautilus-volume-monitor.c: (nautilus_volume_monitor_get): * src/file-manager/nautilus-indexing-info.c: (show_indexing_info_dialog): * src/nautilus-preferences-dialog.c: (global_preferences_get_dialog): * src/nautilus-window.c: (nautilus_window_class_init), (add_to_history_list): Use eel_debug_call_at_shutdown instead of g_atexit. * libnautilus-private/nautilus-file.c: (nautilus_file_get_display_name): Add G_BROKEN_FILENAMES support. * libnautilus-private/nautilus-global-preferences.c: (nautilus_global_preferences_init): Remove eel_smooth_widget code. * libnautilus/Makefile.am: Add missing ORBIT_IDL dependency. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Remove bonobo_ui_debug_shutdown for now. It does us no good unless we also do eel_debug_shut_down, but libnautilus can't depend on eel. * nautilus-launch-icon.png: Remove. * src/file-manager/fm-properties-window.c: (update_properties_window_icon), (fm_properties_window_drag_data_received), (create_image_widget_for_file): Port from EelImage to GtkImage. * src/nautilus-component-adapter-factory.c: (nautilus_component_adapter_factory_get): Use eel_debug_call_at_shutdown instead of g_atexit. (nautilus_component_adapter_factory_create_adapter): Look at exceptions before looking at return values from CORBA calls. * src/nautilus-main.c: (main): Add a call to eel_debug_shut_down. * src/nautilus-property-browser.c: (nautilus_property_browser_init), (element_clicked_callback), (nautilus_property_browser_update_contents): Port from EelViewport to GtkViewport. * src/nautilus-search-bar-criterion.c: (nautilus_search_bar_criterion_destroy), (nautilus_search_bar_criterion_new_from_values): Fix for change that made NautilusSignaller no longer a GtkObject. * src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init), (update_icon), (add_emblem): Port from EelImage to GtkImage. * src/nautilus-signaller.h: * src/nautilus-signaller.c: (nautilus_signaller_get_current): Use eel_debug_call_at_shutdown instead of g_atexit. (nautilus_signaller_instance_init), (nautilus_signaller_class_init): Change to GObject, not GtkObject. * src/nautilus-window-menus.c: (get_bookmark_list): Use eel_debug_call_at_shutdown instead of g_atexit. (nautilus_window_initialize_go_menu): Fix for change that made NautilusSignaller no longer a GtkObject. * test/test-nautilus-preferences-change.c: Remove unused include. * test/test-nautilus-preferences-display.c: Remove unused includes. * test/test-nautilus-wrap-table.c: Remove unused includes. * test/test.c: Remove unused function. * test/test.h: Remove unused function.
* Remove unneeded code and restore display-specific registration. This getsDarin Adler2002-01-171-18/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * components/hardware/main.c: (main): * components/image-viewer/nautilus-image-view.c: (init_server_factory): * components/loser/content/main.c: (main): * components/loser/sidebar/main.c: (main): * components/throbber/main.c: (main): * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi), (nautilus_view_create_from_get_type_function): * src/nautilus-main.c: (main): Remove unneeded code and restore display-specific registration. This gets rid of a bunch of GNOME2_CONVERSION_COMPLETE ifdefs. * libnautilus-private/nautilus-directory-metafile-monitor.h: * libnautilus-private/nautilus-metafile-factory.c: * libnautilus-private/nautilus-metafile-factory.h: * libnautilus-private/nautilus-metafile.h: These had emacs mode lines that said they were IDL files. * libnautilus-private/nautilus-directory-metafile-monitor.c: * libnautilus-private/nautilus-metafile-factory.c: * libnautilus-private/nautilus-metafile.c: * libnautilus-private/nautilus-undo-context.c: * libnautilus-private/nautilus-undo-manager.c: * libnautilus/nautilus-undo-transaction.c: * src/nautilus-application.c: * src/nautilus-shell.c: * src/nautilus-view-frame-corba.c: Use BONOBO_CLASS_BOILERPLATE_FULL instead of EEL_BONOBO_BOILERPLATE_FULL. * src/nautilus-sidebar-title.c: (measure_width_callback), (update_more_info): First cut at implementing date that fits into sidebar. Not working yet. * src/nautilus-theme-selector.c: (install_theme_button_clicked_callback): Remove eel_gtk_window_set_up_close_accelerator call, since this is a GtkDialog that comes its own close accelerator.
* Inspired by a patch from Jacob Berkman <jacob@ximian.com>, gotDarin Adler2002-01-151-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rid of all the Makefile.am hackery so that everything ends up in the tarball. * configure.in: Bumped version to 1.1.1. * components/Makefile.am: Re-enabled all the subdirs. * components/adapter/Makefile.am: Re-enabled nautilus-adapter-embeddable-embed-strategy.[ch]. * components/adapter/nautilus-adapter-embeddable-embed-strategy.c: Put an #if GNOME2_CONVERSION_COMPLETE around the whole thing. * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: Update for COMPONENT_CFLAGS in NAUTILUS_PRIVATE_CFLAGS. * components/loser/content/main.c: (loser_make_object), (main): * components/loser/sidebar/main.c: (loser_make_object), (main): * components/loser/content/nautilus-content-loser.c: (nautilus_content_loser_init): * components/loser/sidebar/nautilus-sidebar-loser.c: (nautilus_sidebar_loser_init): Make these compile, not sure if they actually work. * components/shell/Nautilus_View_shell.server.in: Remove. * components/shell/shell.c: Remove. This component can go in a separate package -- it doesn't need to be part of the main Nautilus source tree. * components/text/Makefile.am: Turned off compiling of the component, but used EXTRA_DIST to make sure the source code still gets into the tarball. * components/tree/Makefile.am: Removed $(COMPONENT_LIBS) from the libnautilus_tree_view_la_SOURCES list. Not sure why it was in there. * libnautilus-private/Makefile.am: Remove stale references to the nautilus-druid-related headers. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Remove some GNOME2_CONVERSION_COMPLETE code that is now clearly not going to be needed. Left in the stuff that is a placeholder for things we still need. * src/Makefile.am: Distribute the profiler sources even when they are not built. * libnautilus-private/nautilus-icon-container.c: Whitespace tweak.
* Do fix based on patch from Martin Wehner <mwehner@tfh-berlin.de> toDarin Adler2001-12-091-1/+2
| | | | | | | | | | | | | | | | * libnautilus-private/nautilus-file-operations.c: (handle_transfer_ok): Do fix based on patch from Martin Wehner <mwehner@tfh-berlin.de> to prevent cancel of emptying trash or deleting from core dumping. * Makefile.am: * configure.in: * docs/.cvsignore: * docs/Makefile.am: Add files in the docs directory to tarball. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Whitespace tweak.
* if we were already registered - due to a beautifuly inefficient activationMichael Meeks2001-12-081-7/+9
| | | | | | | | | 2001-12-06 Michael Meeks <michael@ximian.com> * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): if we were already registered - due to a beautifuly inefficient activation server race - just quit.
* remove cut'n'pasted functions which are in glib now. don't set close keyGediminas Paulauskas2001-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2001-12-05 Gediminas Paulauskas <menesis@delfi.lt> * libnautilus-private/nautilus-desktop-file-loader.c: remove cut'n'pasted functions which are in glib now. * src/nautilus-about.c (nautilus_about_instance_init): don't set close key accelerator, Gtk+ does that already. 2001-12-05 Gediminas Paulauskas <menesis@delfi.lt> * configure.in, libnautilus/Makefile.am, libnautilus/libnautilus.pc.in: make libnautilus know to pkg-config 2001-12-05 Gediminas Paulauskas <menesis@delfi.lt> * components/hardware/main.c, components/help/hyperbola-main.c, components/image-viewer/nautilus-image-view.c, components/mozilla/main.c, libnautilus/nautilus-view-standard-main.c, src/nautilus-main.c: (main) get translated messages from nautilus text domain in utf-8. * src/nautilus-window-menus.c: (help_menu_about_nautilus_callback) replace copyright symbol with utf-8 version of it.
* listen for changed on the text buffer. (notes_load_metainfo): set bufferMichael Meeks2001-11-221-9/+14
| | | | | | | | | | | | | | 2001-11-22 Michael Meeks <michael@ximian.com> * components/notes/nautilus-notes.c (make_notes_view): listen for changed on the text buffer. (notes_load_metainfo): set buffer to "" not NULL. * libnautilus/nautilus-view-standard-main.c (delayed_quit_timeout_callback): do a bonobo_main_quit. (object_destroyed): GObject-ify. * components/throbber/main.c (main): upd.
* Work towards getting the components compiling and working. History, News,Thomas Canty2001-11-111-5/+13
| | | | | | | | | | | | | | | 2001-11-10 Thomas Canty <tommydal@optushome.com.au> * Lots of files: Work towards getting the components compiling and working. History, News, Notes and Throbber components are now working. * libnautilus/nautilus-view-standard-main.c: Change the initialisation to use bonobo_ui_init * src/nautilus-window-toolbars.c: Re-enable the throbber.
* Lots of files. Get rid a lot of unneeded casts.Darin Adler2001-11-091-1/+1
| | | | | * Lots of files. Get rid a lot of unneeded casts.
* Tons of files. More GtkObject -> GObject stuff.Darin Adler2001-11-041-2/+2
| | | | | * Tons of files. More GtkObject -> GObject stuff.
* More GNOME 2 work. We now compile up to libnautilus-private and I'mDarin Adler2001-10-281-10/+18
| | | | | | | * Lots of files: More GNOME 2 work. We now compile up to libnautilus-private and I'm working my way through the files in there. Also changed all the initialize_class and initialize to class_init and init.
* First baby steps at compiling under gnome 2.Darin Adler2001-10-241-3/+0
|
* Get display name in a better way suggested by Havoc Pennington.Maciej Stachowiak2001-08-031-1/+4
| | | | | | * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Get display name in a better way suggested by Havoc Pennington.
* Changed behaviour of view processes, now every process usingChyla Zbigniew2001-07-031-3/+23
| | | | | | | | | * libnautilus/nautilus-view-standard-main.c (struct CallbackData, delayed_quit_timeout_callback, object_destroyed, make_object, nautilus_view_standard_main_multi): Changed behaviour of view processes, now every process using nautilus_view_standard_main/nautilus_view_standard_main_multi will be destroyed after 30 seconds of inactivity, not immediately.
* Fix bug 8105 - GConf error getting font for icon view and textRamiro Estrugo2001-04-201-6/+8
| | | | | | | | | | | | | view. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Move the post initialization callback to before the component's factory creation. Otherwise bad things can happen if the component assumes that its post init function has already been called while in its factory code. For example, if the post init function initialized nautilus preferences and the component factory executes code that uses nautilus preferences.
* Add support for gettext. Add a post initialize callback so that callersRamiro Estrugo2001-04-131-30/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus/nautilus-view-standard-main.h: * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi), (nautilus_view_standard_main): Add support for gettext. Add a post initialize callback so that callers can initialize any component specific stuff before the main even loop begins (nautilus preferences for example) Update for standard main changes. Add documentation for these functions. Also add criticals to make the code a little bit more robust. * components/help/hyperbola-main.c: (main): * components/history/nautilus-history-view.c: (main): * components/music/main.c: (main): * components/notes/nautilus-notes.c: (main): * components/sample/main.c: (main): * components/text/main.c: (main): * components/tree/main.c: (main): Update for standard main changes. Make these a little simpler by putting gettext support in standard main itself. Also, make sure that components that use preferences initialize them. * src/nautilus-main.c: (main): Dont do the preferences initialization if we are about to kill the nautilus shell.
* reviewed by: Gene Z. Ragan <gzr@eazel.com>Maciej Stachowiak2001-02-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added auto-prelighting feature to NautilusClickableImage, and fixed a major bug that occurs for clickable images in scrolled areas. * libnautilus-extensions/nautilus-clickable-image.h, libnautilus-extensions/nautilus-clickable-image.c: (nautilus_clickable_image_set_prelight): New public API call that allows for automatic prelight handling direct in NautilusClickableImage; made it settable because some users of this code want to manually prelight with an alternate image. (nautilus_clickable_image_set_up_pixbufs): helper function for the above that keeps track of the normal and prelit buffers. (label_enter, label_leave): When in prelight mode, switch images on enter and leave. Also, remove unnecessary queue_draw calls. (adjust_coordinates_for_window, ancestor_enter_notify_event, ancestor_leave_notify_event, ancestor_motion_notify_event): Do some coordinate adjustments so that if the NautilusClickableImage is in a scrolled area with NO_WINDOW widgets all the way in between, we do an appropriate coordinate adjustment. This should also handle other containers that put their children in a different window than their own. This was breaking for the summary view when I set it to use clickable images for the service icons. * libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): Do a g_thread_init to make views that use gnome-vfs happy.
* reviewed by: Darin Adler <darin@eazel.com> andMaciej Stachowiak2001-02-021-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Robey Pointer <robey@eazel.com> Fix bugs 5528 (oaf command-line options show up in main program section, not a separate section) and 5510 (descriptions of OAF-specific options in --help are not translated). To do this I had to change the way the oaf popt options are processed in all the places that do so. * components/adapter/main.c: (main): * components/hardware/main.c: (main): * components/help/hyperbola-main.c: (main): * components/image-viewer/Nautilus_View_image.oaf.in: * components/image-viewer/nautilus-image-view.c: (init_server_factory): * components/loser/content/main.c: (main): * components/loser/sidebar/main.c: (main): * components/mozilla/main.c: (main): * components/music/main.c: (main): * components/notes/nautilus-notes.c: (main): * components/rpmview/main.c: (main): * components/services/install/command-line/eazel-alt-install-corba. c: (main): * components/services/install/nautilus-view/main.c: (main): * components/services/login/nautilus-view/main.c: (main): * components/services/summary/nautilus-view/main.c: (main): * components/services/time/command-line/main.c: (main): * components/services/time/nautilus-view/main.c: (main): * components/services/trilobite/libtrilobite/trilobite-core-utils.c : (trilobite_init): * components/shell/shell.c: * components/text/Nautilus_View_text.oaf.in: * components/text/main.c: (main): * components/throbber/main.c: (main): * components/tree/main.c: (main): * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): * src/Nautilus_shell.oaf.in: * src/nautilus-main.c: (main): * test/test-nautilus-mime-actions-set.c: (main): * test/test-nautilus-mime-actions.c: (main): Register oaf options with gnomelib_register_popt_options and move oaf_init call to before gnome_init to fix the aforementioned bugs.
* Holy piss sprinkled on this by Arik <arik@eazel.com>Seth Nickell2001-01-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Jan 26 23:58:42 2001 George Lebl <jirka@5z.com> Holy piss sprinkled on this by Arik <arik@eazel.com> * components/adapter/main.c (main) components/help/hyperbola-main.c (main) components/image-viewer/nautilus-image-view.c (init_server_factory) components/mozilla/main.c (main) components/music/main.c (main) components/notes/nautilus-notes.c (main) components/services/install/nautilus-view/main.c (main) components/services/inventory/main.c (main) components/services/login/nautilus-view/main.c (main) components/services/summary/nautilus-view/main.c (main) components/shell/shell.c (init_bonobo) components/text/main.c (main) components/throbber/main.c (main) components/tree/main.c (main) libnautilus/nautilus-view-standard-main.c (nautilus_view_standard_main_multi): Add gnome_client_disable_master_connection call to all out of process component main functions since they should not register with the session manager. Fixes bug #6051 2001-01-26 Seth Nickell <seth@eazel.com>
* reviewed by: Pavel Cisler <pavel@eazel.com>Maciej Stachowiak2001-01-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Fixed bug 5943 (Throbber crashes on nautilus startup (crashing Nautilus) with some themes and configurations) * components/help/hyperbola-main.c: (main): * components/image-viewer/nautilus-image-view.c: (init_server_factory): * components/mozilla/main.c: (main): * components/music/main.c: (main): * components/notes/nautilus-notes.c: (main): * components/services/install/nautilus-view/main.c: (main): * components/services/login/nautilus-view/main.c: (main): * components/services/summary/nautilus-view/main.c: (main): * components/shell/shell.c: * components/text/main.c: (main): * components/throbber/main.c: (main): * components/tree/main.c: (main): * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): * nautilus-installer/src/main.c: (main): * src/nautilus-main.c: (main): Added gdk_rgb_init calls. The throbber one was causing a real 100% reproducible crash for me on Nautilus startup, the rest are pre-emptive.
* reviewed by: Rebecca Schulman <rebecka@eazel.com>Pavel Cisler2001-01-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-04 Pavel Cisler <pavel@eazel.com> reviewed by: Rebecca Schulman <rebecka@eazel.com> Fix 5451 - GnomeVFS-WARNING received at startup. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): New standard module initialization call was not initializing or shutting down gnome_vfs. * components/adapter/main.c: (main): * components/hardware/main.c: (main): * components/html/ntl-web-browser.c: (main): * components/mozilla/main.c: (main): * components/music/main.c: (main): * components/notes/nautilus-notes.c: (main): * components/rpmview/main.c: (main): * components/text/main.c: (main): * components/tree/main.c: (main): All of the above modules were initializing gnome_vfs but never shutting it down. Add proper gnome_vfs_shutdown call. This very likely fixes a problem with the notes module, etc. sticking around after Nautilus quits.
* reviewed by: Darin Adler <darin@eazel.com>Maciej Stachowiak2000-12-211-0/+175
* libnautilus/nautilus-view.c, libnautilus/nautilus-view.h (nautilus_view_construct, nautilus_view_construct_from_bonobo_control): New construct functions so it's possible for view implementations to be subclasses of NautilusView. (nautilus_view_new_from_bonobo_control): Implement in terms of construct function. * libnautilus/nautilus-view-standard-main.h, libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi, nautilus_view_standard_main, nautilus_view_create_from_get_type): New convenience functions that encapsulate and librarify most of the cut and pasted main.c code that is in every nautilus view. (object_destroyed, make_object): Helper functions. * libnautilus/Makefile.am: Add nautilus-view-standard-main.[ch] to build. * libnautilus/nautilus-view-component.idl: Add license header comment. * libnautilus-extensions/nautilus-gtk-macros.h: Lined up the backslashes to make it easier to read and edit the multi-line macros. * components/sample/README: Explain that all files in this directory have "WHAT YOU NEED TO CHANGE" comments. * components/sample/main.c (main): Implement in terms of `nautilus_view_standard_main' and removed most of the rest of this file. Now all you have to change when writing your own view is an include and some defines at the top of the file. Added "WHAT YOU NEED TO CHANGE" comment. * components/sample/nautilus-sample-content-view.h, components/sample/nautilus-sample-content-view.c: Added "WHAT YOU NEED TO CHANGE" comments. (nautilus_sample_content_view_get_type, nautilus_sample_content_view_initialize, nautilus_sample_content_view_destroy, load_location, sample_load_location_callback, bonobo_sample_callback, sample_merge_bonobo_items_callback): Changed everything around so NautilusSampleContentView inherits from Nautilus view, not GtkLabel (the widget that happens to be in the main content area). This makes a lot more sense. Also fix bug 2410 but including alternative code to nautilus-only macros. * components/sample/nautilus-sample-content-view.oafinfo: Added "WHAT YOU NEED TO CHANGE" comment. * components/sample/Makefile.am: Added "WHAT YOU NEED TO CHANGE" comment.