1999-12-20 Havoc Pennington * src/file-manager/fm-icon-cache.c: Add inline RGB data for default icon. (fm_icon_cache_load_icon): only ref the pixbuf if it exists (fm_icon_cache_new): add a new fallback special icon set (fm_icon_cache_load_icon): load fallback if the icon name is "" 1999-12-20 Havoc Pennington * libnautilus/gnome-icon-container.c (set_kbd_current): return if the icon being set is NULL. This may be fixing a symptom rather than a problem. 1999-12-20 Elliot Lee * src/ntl-*.[ch]: Support multiple view types (Nautilus/View, GNOME/Control, GNOME/Embeddable) * src/ntl-window.[ch]: Add nautilus_window_get_uih() * idl/*.idl: Reindent. 1999-12-19 Havoc Pennington * src/file-manager/desktop-window.c (desktop_window_realize): turn on window decorations for debugging (desktop_window_init): debug comment-out the no-resize policy * src/file-manager/desktop-layout.c (desktop_layout_arrange): fool with layout routines * src/file-manager/desktop-canvas.c (desktop_canvas_size_allocate): debugging border to detect layout screwups * src/file-manager/desktop-item.c (icon_realize): set the canvas item, oops. 1999-12-19 Havoc Pennington * src/file-manager/desktop-layout.c: don't do an arrangement on every change * src/file-manager/desktop-canvas.c (desktop_canvas_load_desktop_icons): connect to finished_load and arrange the icons when we get it. This is a temporary hack, because the DesktopLayout engine isn't progressive yet. * src/file-manager/fm-directory-list.c (fm_directory_list_class_init): add a finished_load signal * src/file-manager/desktop-window.c (desktop_window_init): for now, don't fill the whole screen so we can see gdb. * src/file-manager/desktop-item.c: Move user data accessors into the .c file, these are private. 1999-12-17 Havoc Pennington * src/file-manager/desktop-item.h: New module, for items on the desktop * src/file-manager/fm-directory-view.c: Change to use get_current_icon_cache() (it wasn't ever freeing the icon cache anyway) * src/file-manager/fm-icon-cache.c (fm_get_current_icon_cache): function to get a global icon cache, we will share this throughout the program. 1999-12-19 Havoc Pennington * src/file-manager/desktop-canvas.c (desktop_canvas_load_desktop_icons): new function, loads icons from a given directory - don't get too excited, it doesn't yet _display_ any icons! * src/file-manager/desktop-canvas.h: Add directory list field. * src/file-manager/Makefile.am (gnome_desktop_SOURCES): Add fm-directory-list.[hc] (libntl_file_manager_la_SOURCES): add fm_directory_list.[hc] * src/file-manager/fm-directory-list.h, fm-directory-list.c: New files, the non-GUI portion of a directory listing. Handles loading the dir listing and the icons. 1999-12-17 Maciej Stachowiak * src/ntl-window.c, src/ntl-window-msgs.c: Added up, reload, home, stop toolbar buttons. Stop is not implemented yet. Up needs more thought with respect to various protocols. * src/ntl-window.c, src/ntl-window.h: Added calls to allow/disallow some of the toolbar operations. 1999-12-17 Havoc Pennington * src/file-manager/fm-directory-view.c: Change to use get_current_icon_cache() (it wasn't ever freeing the icon cache anyway) * src/file-manager/fm-icon-cache.c (fm_get_current_icon_cache): function to get a global icon cache, we will share this throughout the program. 1999-12-17 Havoc Pennington * src/ntl-window.c (nautilus_window_realize): set the mini icon. (nautilus_window_class_init): init parent_class and install realize method * src/ntl-miniicon.c: new files, to set mini icon 1999-12-16 Elliot Lee * libnautilus/{gdk-extensions.c,gnome-icon-container.c}: Fix warnings * libnautilus/gnome-icon-container.c: Try (unsuccessfully) to get proper icon reflow by calling icon_grid_resize() instead of icon_grid_set_visible_width(), in size_allocate(). * src/*.*: Add ntl-app.[ch]. * src/file-manager/desktop-*.c: Fix warnings. * src/file-manager/fm-directory-view.c: Remove incorrect warning, allow turning off use of icon_layout altogether. 1999-12-16 John Sullivan * src/ntl-window.c: * src/ntl-main.c: * src/file-manager/fm-directory-view.c: Changed evil // comments to /* */. Sorry about that! * src/ntl-window.c: added insensitive rudimentary Bookmark menu 1999-12-16 Havoc Pennington * src/ntl-window-state.c (nautilus_window_save_state): lookup signum before it's first used. * src/file-manager/desktop-layout.c: new layout module, not yet done * src/file-manager/desktop-canvas.c (desktop_canvas_init): Create the right-click menu. * src/file-manager/desktop-menu.c (desktop_menu_new): New module to stick the right-click menu code in 1999-12-16 Maciej Stachowiak * src/ntl-window.c: Put meta-views on the right. * src/ntl-window.c, src/ntl-main.c, src/ntl-window.h, src/ntl-window-msgs.c, src/ntl-window-state.c: Enabled multiple main windows and new window menu entry. In the process replaced url with uri where appropriate and added nautilus_window_get_requested_uri accessor. 1999-12-16 Darin Adler * libnautilus/.cvsignore: Ignore all *.lo instead of listing each. * libnautilus/Makefile.am: Added gdk-extensions.c and $(WERROR). * libnautilus/gdk-extensions.[ch]: Added functions for filling with a gradient. Currently they are named gdk_fill_rectangle_with_gradient and gdk_interpolate_color, but perhaps the gdk_ prefix should be replaced with another one. These functions are not yet tested, but they compile and I want to get them in here before I leave for vacation. * src/ntl-uri-map.c: (nautilus_navinfo_new): Some null checks in the "click on an item" hack. This was a halfhearted attempt to get the program to not segfault when you open icons. * src/ntl-window-msgs.c: (nautilus_window_load_content_view): Some g_return_if_fail in here. I'll add a ton more at some point. These were part of the halfhearted attempt to get the program to not segfault when you open icons. * src/file-manager/.cvsignore: Igore all *.lo instead of listing each. 1999-12-16 Elliot Lee * components/history/ntl-history-view.c: Now works. * src/ntl-uri-map.c: Duplicate the URI being requested, since we don't know what the lifetime of the original value will be. * src/ntl-window.c: Use the paned instead of hbox, use create_menus_with_data instead. * src/file-manager: Misc warning fixes. * src/gtkscrollframe.c: Try to get rid of scrollbar chopping. 1999-12-16 John Sullivan * src/ntl-window.c (file_menu_new_window_cb): New, currently empty callback. * src/ntl-window.c (file_menu_info[]): Added New Window item. * src/ntl-window.c (edit_menu_info[]): Added standard menu items, all unimplemented as of now. * src/ntl-window.c (help_menu_info[]): Added About item, unimplemented as of now. * src/ntl-window.c (main_menu[]): Now includes edit and help menus. * src/ntl-window.c (nautilus_window_constructed): Changed the way the toolbar is created, to fix bug where Back failed because data parameter was NULL. Also desensitized all the new unimplemented menu items. 1999-12-16 Maciej Stachowiak * src/file-manager/gnome-desktop.c (main): Quiet some warnings. >>>>>>> 1.33 1999-12-16 Havoc Pennington * src/file-manager/gnome-desktop.c (main): warning fixes * src/file-manager/desktop-canvas.c (desktop_canvas_update_background): start actually honoring background settings. * src/file-manager/fm-icon-cache.c: add copyright and Emacs magic. * src/file-manager/fm-icon-cache.h (fm_icon_cache_get_icon): Run egtk-format-protos on these prototypes, add copyright and Emacs magic 1999-12-16 Havoc Pennington * src/file-manager/desktop-canvas.h: Added API for controlling the background, so we can connect that to the IDL interface. * src/file-manager/desktop-canvas.h: New file * src/file-manager/desktop-window.h: tweaks * idl/gnome-desktop.idl: Change BackgroundInfo to not be a union. 1999-12-16 John Sullivan * src/file-manager/fm-directory-view.c (directory_load_cb): changed assert to warning 1999-12-16 Elliot Lee * components/help/hyperbola-nav-tree.c: Translate strings. * components/history/ntl-history-view.c: Bug fixes, use API function for setting meta-view label. * libnautilus/ntl-meta-view-client.[ch]: s/meta_view_set_label/meta_view_client_set_label/ * src/ntl-uri-map.c: Use history view instead of help view as the default meta view for now. * src/ntl-window.c: As per the comment that was removed from ntl-window.c, gnome_app_install_menu_hints() needs to be called _after_ statusbar creation * src/file-manager/fm-directory-view.c: Add more debugging assertions and messages. 1999-12-15 John Sullivan * src/ntl-window.c: (nautilus_window_constructed): Added beginnings of a menu bar, and reorganized toolbar a little. There's a rudimentary File menu now. The View As option menu moved down to the location bar line. This is by no means a complete or final organization, but it's a start. * (file_menu_close_cb): new callback for File/Close menu item * (file_menu_exit_cb): new callback for File/Quit menu item * file_menu_info[]: new GNOMEUIINFO struct for File menu * toolbar_info[]: new GNOMEUIINFO struct for toolbar 1999-12-15 Elliot Lee * Warning fixes throughout. * Use $(WERROR) in Makefiles to get -Werror. 1999-12-15 Darin Adler * components/help/.cvsignore: Ignore more generated files. * components/help/hyperbols-filefmt.c: Fix warnings. * components/help/hyperbols-main.c: Fix warnings. * components/help/hyperbols-nav-tree.c: Fix warnings. 1999-12-15 Elliot Lee * components/Makefile.am: Turn on compilation of hyperbola component. * components/help/*: Compile and run. * libnautilus/ntl-meta-view-client.c: Create & set the property bag if it doesn't exist. * src/ntl-uri-map.c: Load the hyperbola nav tree component as a test meta view. * src/ntl-view.c: Fill in NULL fields with empty strings, so that ORBit doesn't segfault. * src/ntl-window-msgs.c: When creating new meta views, they should be meta views and not content views (cut & paste error). * src/file-manager/fm-directory-view.c: Don't redisplay every time a new entry comes in. 1999-12-15 Darin Adler * configure.in: Turned "-Wshadow" and "-Wundef" off for now, since they fire in some existing code. * gnome-icon-container.c: (handle_icon_button_press): Null out the drag variables before sending the activate signal. This makes activating an icon with a double-click work without crashing. * ntl-main.c: (main): Make critical and warning messages fatal if NAUTILUS_DEBUG is set in the environment. Make sure you have a new gnome-vfs that doesn't use g_warning for status messages. * ntl-window-msgs.c: (nautilus_window_change_location_internal): Made the history store away the current position as the new "previous" instead of storing away the new position. This makes the forward and back buttons work better. * ntl-window.c: (nautilus_window_back, nautilus_window_fwd): Had to make a corresponding change here after the change to the history mechanism. * fm-directory-view.c: (display_selection_info): Some fixes to the selection info display: "file"/"files" was backwards, text said "in" before the file size, and the display was not cleared when the selection was made empty. I still see problems where the selection info gets cleared when the window is lowered and then raised. 1999-12-15 Andy Hertzfeld * my first change: changed ntl-window-state.c (nautilus_window_set_initial_state): changed initial path to be the user's home directory, getting rid of confusing "localhost" 1999-12-15 Elliot Lee * configure.in: Add --enable-more-warnings and --enable-fatal-warnings switches. * src/ntl-uri-map.c: Add comment about functionality-in-waiting. 1999-12-15 Darin Adler * libnautilus/gtkscrollframe.c (gtk_scroll_frame_size_allocate): Rolled out my change. I was confused. Elliot had this fixed already but I forgot to "make install". 1999-12-15 Darin Adler * libnautilus/gtkscrollframe.c (gtk_scroll_frame_size_allocate): Fixed overflow problem caused by gint16 local variable. 1999-12-15 Darin Adler * src/ntl-window.c (nautilus_window_constructed): Fixed signal handler to point to nautilus_window_goto_url_cb instead of nautilus_window_goto_url. This was causing a bad cast when a new URL was typed. 1999-12-15 Darin Adler * src/ntl-uri-map.c (nautilus_navinfo_new): Changed back to const gchar*. To compile, you need to install the latest gnome-vfs. 1999-12-15 Elliot Lee * libnautilus/gtkscrollframe.c: Fix size_allocate. 1999-12-14 Maciej Stachowiak * src/ntl-uri-map.c (nautilus_navinfo_new): a const char* can't be passed where a gchar* is expected. 1999-12-14 Darin Adler * configure.in: Turned on more warnings, including -Werror. I found one or two real bugs, and made some minor changes to quiet the compiler so I could turn on some useful warnings that triggered on the existing code. * src/file-manager/dfos-xfer.c: (handle_xfer_vfs_error): Fixed a place where it was calling the gnome error(), but using the parameters from the old gnome-fm error() function. * libnautilus/ntl-meta-view-client.c: (nautilus_meta_view_set_label): Fixed a place where we were passing in string literals to code that will free them. We need to call g_strdup before passing them to gnome_property_bag_add. * libnautilus/gnome-icon-container.c: Fixed a warning. * libnautilus/gtkscrollframe.c: Fixed a warning. * libnautilus/ntl-content-view-client.c: Fixed a warning. * libnautilus/ntl-view-client.c: Fixed a warning. * libnautilus/ntl-content-view.c: Fixed a warning. * src/ntl-main.c: Fixed a warning. * src/ntl-meta-view.c: Fixed a warning. * src/ntl-types.h: Fixed a warning. * src/ntl-view.c: Fixed a warning. * src/ntl-window.c: Fixed a warning. * src/file-manager/dfos-xfer-progress-dialog.c: Fixed a warning. * src/file-manager/fm-icon-cache.c: Fixed a warning. 1999-12-14 Elliot Lee * src/*.c: Restructure the whole NautilusWindow code for sanity's sake. * src/ntl-uri-map.[ch]: Instead of just passing in various pieces of information about the old URL, pass in the Nautilus_NavigationInfo that has to be kept around anyways. * idl/nautilus.idl: Allow a selection to be multiple URI's. 1999-12-14 Darin Adler * src/ntl-window.c: (nautilus-window-constructed): Forward-button signal was connected with NULL parameter instead of window. Fixed that so it has a chance of working. * .cvsignore: Ignore more generated files. * components/.cvsignore: Ignore more generated files. * help/.cvsignore: Ignore more generated files. * history/.cvsignore: Ignore more generated files. * icons/.cvsignore: Ignore more generated files. * idl/.cvsignore: Ignore more generated files. * libnautilus/.cvsignore: Ignore more generated files. * src/.cvsignore: Ignore more generated files. * src/file-manager/.cvsignore: Ignore more generated files. 1999-12-14 John Sullivan * src/ntl-window.c: (nautilus-window-constructed): Reordered option menu creation code to fix bug where it wasn't sizing itself properly. Changed label of placeholder item and desensitized it to make it more obvious that it's a non-working placeholder. 1999-12-14 Elliot Lee * configure.in, Makefile.am, icons/: Add icons * src/file-manager/fm-directory-view.c: Everything goes inside the scroll-frame, not the view itself. 1999-12-13 Elliot Lee * libnautils/g*.[ch]: Switch from imlib to pixbuf. * src/file-manager: Import from gnome-fm. * idl/nautilus.idl: Add a 'main_window' attribute on a ViewFrame, so that views can talk to the main window. 1999-12-10 Elliot Lee * libnautilus/ntl-meta-view.[ch]: Add a convenience function for setting the label. * Throughout: Rename the meta view "description" property to "label", which more accurately describes its use. * components/help: Start turning hyperbola into component. 1999-12-09 Elliot Lee * Start migration from gnome-fm. src/explorer-location-bar.[ch]: Copy over from gnome-fm, change signal to include new URI. src/ntl-window.c: Make NautilusWindow use it.