mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
a93b99aba5
* components/hardware/nautilus-hardware-view.c: (nautilus_hardware_view_destroy): * components/loser/content/nautilus-content-loser.c: (nautilus_content_loser_destroy): * components/loser/sidebar/nautilus-sidebar-loser.c: (nautilus_sidebar_loser_destroy): * components/mozilla/nautilus-mozilla-content-view.c: (nautilus_mozilla_content_view_destroy): * components/music/nautilus-music-view.c: (nautilus_music_view_destroy): * components/rpmview/nautilus-rpm-view.c: (nautilus_rpm_view_destroy): * components/sample/nautilus-sample-content-view.c: (nautilus_sample_content_view_destroy): * components/services/time/nautilus-view/trilobite-eazel-time-view.c: (trilobite_eazel_time_view_destroy): * components/tree/nautilus-tree-view.c: (nautilus_tree_view_destroy): Removed a bunch of incorrect calls to bonobo_object_unref. An error in the sample can be an insidious thing. * components/tree/main.c: (tree_object_destroyed), (tree_make_object), (main): Removed some stray debugging stuff. * libnautilus-extensions/Makefile.am: Got rid of the grid * libnautilus-extensions/nautilus-icon-private.h: Got rid of the grid. * libnautilus-extensions/nautilus-icon-container.c: (keyboard_icon_reveal_timeout_callback): Took out unneeded use of thread locking macros. Maybe someday I'll regret this, but we can add them back then. (get_all_icon_bounds): Added shared function. (update_scroll_region): Renamed set_scroll_region and made it use the shared function. Also got rid of grid code. (resort): Got rid of grid code. (lay_down_icons): Got rid of grid code. (relayout): Made it lay down new icons before doing any layout work. Also made sure it doesn't do the resort while stretching. (reload_icon_positions): Got rid of grid code. (rubberband_select): Got rid of grid code. This was the one place that it might have made things a little faster but probably not due to the complexity of what it was doing. (rubberband_timeout_callback): Took out unneeded use of thread locking macros. Maybe someday I'll regret this, but we can add them back then. (destroy): Got rid of grid code. (world_width_changed): Got rid of grid code. (nautilus_icon_container_initialize): Got rid of grid code and an extra idle cycle that wasn't needed. (nautilus_icon_container_clear): Got rid of grid code and added code to update the scroll region on clear. (icon_destroy): Got rid of grid code. (assign_icon_position), (finish_adding_icon), (finish_adding_new_icons), (finish_adding_new_icons_callback), (nautilus_icon_container_add): Replaced old idle code with something specific to adding new icons. This does the proper layout for manual as well as automatic layout cases. * libnautilus-extensions/nautilus-background.h: * libnautilus-extensions/nautilus-background.c: (nautilus_background_initialize_class): Made two signals instead of one. One for when the background's settings change and another for when the appearance changes. (nautilus_background_set_color): Emit both signals. (load_image_callback): Emit only the appearance change signal. (nautilus_background_set_tile_image_uri): Emit both signals. (nautilus_get_widget_background): Connect to the appearance_changed signal. * libnautilus-extensions/nautilus-directory-background.c: (nautilus_connect_background_to_directory_metadata): Connect to the settings_changed signal. * src/file-manager/fm-directory-view.c: (fm_directory_view_real_merge_menus): Connect to the settings_changed signal. * src/nautilus-sidebar.c: (nautilus_sidebar_update_info): Connect to the appearance_changed signal. * components/music/nautilus-music-view.c: (nautilus_music_view_set_up_background): Connect to the settings_changed signal. * HACKING: Gratuitious reformatting. * RENAMING: Added notes about how we do renaming, at the request of one of the hackers. * nautilus-clean.sh: Added nautilus-tree-view to the things that are killed, and made gratuitous changes to the script.
99 lines
1.7 KiB
Bash
Executable file
99 lines
1.7 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
# This is a quick hack to check if any nautilus auxiliary processes
|
|
# are running, and if so, list them and kill them. It is not
|
|
# portable, and should be be expected to be used in any kind of
|
|
# production capacity.
|
|
|
|
quiet=no
|
|
extreme=no
|
|
|
|
if [ $# -gt 0 ]
|
|
then
|
|
arg=$1
|
|
|
|
if [ "$arg" = "-q" ]
|
|
then
|
|
quiet=yes
|
|
elif [ "$arg" = "-x" ]
|
|
then
|
|
extreme=yes
|
|
fi
|
|
fi
|
|
|
|
if [ $# -gt 1 ]
|
|
then
|
|
arg=$2
|
|
|
|
if [ "$arg" = "-q" ]
|
|
then
|
|
quiet=yes
|
|
elif [ "$arg" = "-x" ]
|
|
then
|
|
extreme=yes
|
|
fi
|
|
fi
|
|
|
|
|
|
echo_unless_quiet ()
|
|
{
|
|
if [ "$quiet" != "yes" ]
|
|
then
|
|
echo "$*"
|
|
fi
|
|
}
|
|
|
|
# Add any new auxiliary programs here.
|
|
AUX_PROGS="\
|
|
bonobo-application-x-pdf \
|
|
bonobo-image-generic \
|
|
bonobo-text-plain \
|
|
gnome-vfs-slave \
|
|
hyperbola \
|
|
nautilus-history-view \
|
|
nautilus-content-loser \
|
|
nautilus-hardware-view \
|
|
nautilus-mozilla-content-view \
|
|
nautilus-notes \
|
|
nautilus-rpm-view \
|
|
nautilus-sample-content-view \
|
|
nautilus-service-startup-view \
|
|
nautilus-sidebar-loser \
|
|
nautilus-tree=voew \
|
|
ntl-history-view \
|
|
ntl-notes \
|
|
ntl-web-search \
|
|
ntl-web-browser \
|
|
"
|
|
|
|
if [ "$extreme" = "yes" ]
|
|
then
|
|
AUX_PROGS="oafd gconfd $AUX_PROGS"
|
|
fi
|
|
|
|
unset FOUND_ANY
|
|
|
|
for NAME in $AUX_PROGS; do
|
|
EGREP_PATTERN=`echo $NAME | sed -e 's/\(.\)\(.*\)/[\1]\2/' | sed -e 's/\[\\\^\]/\[\\^\]/'`
|
|
COUNT=`ps auxww | egrep $EGREP_PATTERN | grep -v emacs | wc -l`
|
|
|
|
if [ $COUNT -gt 0 ]; then
|
|
if [ -z $FOUND_ANY ]; then
|
|
echo_unless_quiet "nautilus-clean: Stale processes found."
|
|
FOUND_ANY=true
|
|
fi
|
|
echo_unless_quiet "$NAME: $COUNT"
|
|
|
|
if [ "$quiet" != "yes" ]
|
|
then
|
|
killall "$NAME"
|
|
else
|
|
killall "$NAME" > /dev/null 2>&1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
|
|
if [ -z $FOUND_ANY ]; then
|
|
echo_unless_quiet "nautilus-clean: No stale processes found."
|
|
fi
|