diff options
author | Darin Adler <darin@src.gnome.org> | 2000-06-21 19:20:48 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-06-21 19:20:48 +0000 |
commit | 06d1b0e42d15b4dfc6de1859d26e5d7183465a41 (patch) | |
tree | 0469b33f463204e73558abe554e132a60feb58eb /src/nautilus-desktop-window.c | |
parent | 6dea2dce89ad5cd916ba2a2e09db3e037dbc0b17 (diff) | |
download | nautilus-06d1b0e42d15b4dfc6de1859d26e5d7183465a41.tar.gz |
Updated callers of the gnome-vfs calls that I just changed. In some cases
* components/hardware/nautilus-hardware-view.c:
(get_RAM_description):
* components/music/nautilus-music-view.c:
(nautilus_music_view_update_from_uri):
* components/rpmview/nautilus-rpm-view.c:
(nautilus_rpm_view_update_from_uri):
* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
(gather_config_button_cb), (register_button_cb),
(nautilus_service_startup_view_destroy):
* libnautilus-extensions/nautilus-directory-async.c:
(set_up_request_by_file_attributes):
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_format_uri_for_display),
(nautilus_get_uri_from_local_path):
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_get_size_as_string):
* libnautilus-extensions/nautilus-link-set.c: (link_set_path_name),
(expand_uri):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_display_selection_info):
* src/nautilus-desktop-window.c:
(nautilus_desktop_window_initialize),
(nautilus_desktop_window_new), (realize):
Updated callers of the gnome-vfs calls that I just changed.
In some cases I made them use higher-level nautilus utility
functions instead.
Diffstat (limited to 'src/nautilus-desktop-window.c')
-rw-r--r-- | src/nautilus-desktop-window.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c index 619a093f1..db1ab84a1 100644 --- a/src/nautilus-desktop-window.c +++ b/src/nautilus-desktop-window.c @@ -58,8 +58,7 @@ nautilus_desktop_window_initialize (NautilusDesktopWindow *window) /* FIXME bugzilla.eazel.com 1251: * Although Havoc had this call to set_default_size in * his code, it seems to have no effect for me. But the - * gdk_window_move_resize below does seem to work. Not sure if - * this should stay or not. + * set_usize below does seem to work. */ gtk_window_set_default_size (GTK_WINDOW (window), gdk_screen_width (), @@ -87,7 +86,6 @@ nautilus_desktop_window_new (NautilusApplication *application) { NautilusDesktopWindow *window; const char *desktop_directory_path; - char *desktop_directory_path_in_uri_format; char *desktop_directory_uri; window = NAUTILUS_DESKTOP_WINDOW @@ -104,20 +102,11 @@ nautilus_desktop_window_new (NautilusApplication *application) */ nautilus_link_set_install (desktop_directory_path, "desktop"); - /* FIXME bugzilla.eazel.com 1252: - * This little ditty is just the way you convert a - * local path to a file: URI. Should be a utility somewhere - * to do the two steps at once. - */ - desktop_directory_path_in_uri_format = gnome_vfs_escape_string - (desktop_directory_path, GNOME_VFS_URI_UNSAFE_PATH); - desktop_directory_uri = g_strconcat - ("file://", desktop_directory_path_in_uri_format, NULL); - g_free (desktop_directory_path_in_uri_format); - /* Point window at the desktop folder. * Note that nautilus_desktop_window_initialize is too early to do this. */ + desktop_directory_uri = nautilus_get_uri_from_local_path + (desktop_directory_path); nautilus_window_goto_uri (NAUTILUS_WINDOW (window), desktop_directory_uri); g_free (desktop_directory_uri); @@ -207,15 +196,13 @@ realize (GtkWidget *widget) | WIN_HINTS_SKIP_TASKBAR); /* FIXME bugzilla.eazel.com 1255: - * Should we do a gdk_window_set_hints or a - * gdk_window_move_resize here too? + * Should we do a gdk_window_move_resize here, in addition to + * the calls in initialize above that set the size? */ -#if 0 gdk_window_move_resize (widget->window, 0, 0, gdk_screen_width (), gdk_screen_height ()); -#endif /* Get rid of the things that window managers add to resize * and otherwise manipulate the window. |