src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
|
|
|
2001-05-04 10:19:35 +00:00
|
|
|
/* nautilus-global-preferences.h - Nautilus specific preference keys and
|
|
|
|
functions.
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
reviewed by: John Sullivan <sullivan@eazel.com>
Fix bug 6613 (no way to delete files without using trash) by
integrating Maciej's patch to add an optional Delete command (with
some fixes to the patch). There may still be some loose ends.
Fix bug 2206 (No way to move or copy a file to a different
directory from keyboard) by implementing Cut, Copy, and Paste for
files, in a way that will be familiar to Windows users. The
positioning of the new files is not right yet (they inherit their
position from the old files), there is no feedback when you have
cut some files (Arlo's idea, which I might implement, is to make
them translucent to show they are "on the way out") or when you
have copied some files, and I think there are some other loose
ends.
Fixed cut, copy, and paste within the file names when you do a
rename. This wasn't working at all.
Got rid of configure-time checks that were looking at the
existence of some special system files.
Fixed a few minor bugs discovered by code inspection.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Add expert preference to add a
Delete command that bypasses the Trash.
* src/file-manager/nautilus-directory-view-ui.xml: Add Delete, Cut
Files, Copy Files, and Paste Files.
* src/file-manager/fm-directory-view.c: (confirm_delete_directly),
(delete_callback): Add delete code.
(bonobo_menu_empty_trash_callback): Get rid of extraneous cast.
(fm_directory_view_initialize): Track the delete preference. Set
the flags properly to indicate we have our own X window. Add a
target so GTK knows that we accept pastes of copied files.
(forget_clipboard_contents): Helper for when we are no longer the
clipboard owner.
(fm_directory_view_destroy): Remove the delete preference
callback. Free the clipboard contents.
(offset_drop_points): Change so it handles NULL for the list of
points.
(trash_or_delete_files_common): Remove unneeded parameters.
(get_current_event_time): New function, placeholder that just
returned GDK_CURRENT_TIME. Perhaps we should get the real event
time here for use in clipboard manipulation calls.
(copy_or_cut_files): New function. Save the selection for later
use in a paste.
(copy_files_callback), (cut_files_callback): Call the new
copy_or_cut_files function.
(paste_files_callback): Do the clipboard convert that results in
the paste operation.
(real_selection_clear_event): Forget the clipboard contents.
(real_selection_get): Convert the selection into the appropriate
format and put it on the clipboard.
(convert_lines_to_str_list): Helper function for decoding incoming
pasted files.
(real_selection_received): Handle pasted files by parsing and then
triggering a file copy operation.
(real_merge_menus): Add verbs for cut, copy, and paste.
(enable_delete_changed_callback): Keep track of delete command
status in a boolean.
(real_update_menus): Show delete command if the preference is on
and we are not showing "Delete from Trash". Update names of the
Cut and Copy command depending on how many files are selected.
Also desensitize them when none are selected.
(fm_directory_view_select_file): Initialize an uninitialized field.
(fm_directory_view_move_copy_items): Allow relative_item_points to
be NULL.
(real_realize): Create our own X window.
(real_size_allocate): Trick GtkScrolledWindow into doing the right
thing despite the fact that we have our own X window.
(fm_directory_view_initialize_class): Moved down to the bottom so
we don't need so many forward declaractions. Added code to set up
some needed atoms and new default handlers.
* libnautilus-extensions/nautilus-icon-text-item.c:
(send_focus_event), (iti_stop_editing), (iti_start_editing): Add
code to send the appropriate focus events to the fake off-screen
GtkEntry. This makes the clipboard code that tracks focus-related
signals work properly with this entry.
(iti_event): Tweak the sequence and simplify the code a bit.
* libnautilus/nautilus-clipboard.c:
(set_paste_sensitive_if_clipboard_contains_data): Add more
FIXMEs. This function is very far from useful, and it's not clear
that it can be implemented efficiently under X.
(nautilus_clipboard_set_up_editable): Get rid of silly
"grab_focus" hack that was an attempt to address the problems with
the NautilusIconTextItem. The real solution was to do focusing for
that item too.
(nautilus_clipboard_set_up_editable_in_control): Fix this so it
works when called on an editable that is already focused.
* src/file-manager/fm-icon-view.c: (renaming_icon_callback): Get
rid of "grab_focus" workaround, which wasn't working.
* acconfig.h:
* configure.in:
Remove all configure checks that were checking the existence of
files.
* libnautilus-extensions/nautilus-medusa-support.c:
(nautilus_medusa_check_cron_is_enabled): Simplify logic so there's
less room for confusion (I did this as a fix for the bug that was
reported on the mailing list, but Rebecka checked in the small
patch first). Also change it so we don't need a configure-time
check for the existence of the process directory and fix it so we
won't get a core dump if the file doesn't have a space character
in it. Also change the logic so we don't leave the directory open
when we do find the cron process.
* libnautilus-extensions/nautilus-volume-monitor.c:
(nautilus_volume_monitor_initialize_class),
(has_removable_mntent_options), (get_removable_volumes),
(volume_is_removable), (volume_is_read_only),
(mount_volume_get_cdrom_name), (mount_volume_activate_cdda),
(mount_volume_activate_cdrom), (build_volume_list_delta),
(get_current_mount_list), (mount_lists_are_identical),
(verify_current_mount_state), (mount_volume_floppy_add),
(get_cdrom_type_solaris), (mount_volume_iso9660_add),
(display_mount_status), (close_error_pipe),
(nautilus_volume_monitor_mount_unmount_removable),
(mount_volume_add_filesystem): Make changes throughout to get rid
of dependence on configure-time file checks and do things at
runtime instead. Also use typedefs to make less code conditional.
Also fix the Solaris CD-ROM code which was casting a GString to
a (char *) before, so it used absurd file names, and failed to open
and returned FALSE all the time.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_start_renaming_selected_item): Send the
renaming signal before setting up the rest of the icon. This
change is not really needed, but it's a better order to do things.
* libnautilus/nautilus-clipboard-ui.xml: Move tips into the
commands instead of the menu items (for style mostly, no practical
implications at the moment).
* src/nautilus-shell-ui.xml: Remove tips from Cut, Copy, and Paste,
since tips from insensitive items aren't used, and if we had tips,
we'd put them on the command, not the menu item, anyway.
2001-03-23 02:34:16 +00:00
|
|
|
Copyright (C) 1999, 2000, 2001 Eazel, Inc.
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
2000-04-27 01:57:48 +00:00
|
|
|
This program is free software; you can redistribute it and/or
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
modify it under the terms of the GNU Library General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
2000-04-27 01:57:48 +00:00
|
|
|
This program is distributed in the hope that it will be useful,
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
2000-04-27 01:57:48 +00:00
|
|
|
License along with this program; see the file COPYING.LIB. If not,
|
2014-01-23 11:51:32 +00:00
|
|
|
see <http://www.gnu.org/licenses/>.
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
|
|
|
Authors: Ramiro Estrugo <ramiro@eazel.com>
|
|
|
|
*/
|
|
|
|
|
Port from EelLabel to GtkLabel.
* components/hardware/nautilus-hardware-view.c:
(update_uptime_text), (setup_overview_form):
* components/music/nautilus-music-view.c:
* src/file-manager/nautilus-indexing-info.c:
(update_progress_display):
* src/nautilus-property-browser.c:
(nautilus_property_browser_init), (labeled_image_configure),
(labeled_image_new), (make_category),
(property_browser_category_button_new),
(nautilus_property_browser_update_contents):
* test/test.h:
* src/nautilus-shell.c:
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
Port from EelLabel to GtkLabel.
* components/news/nautilus-news.c: (do_destroy),
(draw_rss_logo_image), (draw_rss_title), (draw_rss_items),
(nautilus_news_set_title), (free_channel),
(empty_message_size_allocate), (set_up_main_widgets),
(make_news_view):
* libnautilus-private/nautilus-icon-private.h:
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(nautilus_sidebar_tabs_init), (nautilus_sidebar_tabs_destroy),
(draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width),
(nautilus_sidebar_tabs_add_view):
Port to Pango text instead of Eel text.
* libnautilus-private/nautilus-customization-data.c:
(add_reset_text):
* libnautilus-private/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embed_text):
* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
(nautilus_about_draw_info), (nautilus_about_update_authors):
Disable Eel text and ifdef with GNOME2_CONVERSION_COMPLETE.
* libnautilus-private/nautilus-global-preferences.h:
* libnautilus-private/nautilus-global-preferences.c:
Turn off font-related preferences. Maybe delete later or
convert for Pango fonts.
* libnautilus-private/nautilus-icon-canvas-item.h:
* libnautilus-private/nautilus-icon-container.h:
Remove eel-scalable-font.h includes.
* src/nautilus-component-adapter-factory.c:
(nautilus_component_adapter_factory_create_adapter):
Disable the adapter because it was causing problems.
2002-01-03 00:11:12 +00:00
|
|
|
#ifndef NAUTILUS_GLOBAL_PREFERENCES_H
|
|
|
|
#define NAUTILUS_GLOBAL_PREFERENCES_H
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
2010-07-23 09:47:34 +00:00
|
|
|
#include <libnautilus-private/nautilus-global-preferences.h>
|
2010-07-21 13:11:50 +00:00
|
|
|
#include <gio/gio.h>
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
2001-10-24 17:23:35 +00:00
|
|
|
G_BEGIN_DECLS
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
2000-09-15 22:46:21 +00:00
|
|
|
/* Trash options */
|
2010-07-21 14:29:16 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_CONFIRM_TRASH "confirm-trash"
|
2000-09-15 22:46:21 +00:00
|
|
|
|
2000-06-22 17:55:15 +00:00
|
|
|
/* Display */
|
2012-12-03 20:45:48 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES "show-hidden"
|
2004-07-16 12:04:29 +00:00
|
|
|
|
2009-04-22 08:57:05 +00:00
|
|
|
/* Mouse */
|
2010-07-22 11:49:12 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_MOUSE_USE_EXTRA_BUTTONS "mouse-use-extra-buttons"
|
|
|
|
#define NAUTILUS_PREFERENCES_MOUSE_FORWARD_BUTTON "mouse-forward-button"
|
|
|
|
#define NAUTILUS_PREFERENCES_MOUSE_BACK_BUTTON "mouse-back-button"
|
2009-04-22 08:57:05 +00:00
|
|
|
|
2008-07-08 21:05:55 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
NAUTILUS_NEW_TAB_POSITION_AFTER_CURRENT_TAB,
|
|
|
|
NAUTILUS_NEW_TAB_POSITION_END,
|
|
|
|
} NautilusNewTabPosition;
|
|
|
|
|
2000-04-18 14:05:36 +00:00
|
|
|
/* Single/Double click preference */
|
2010-07-22 13:52:44 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_CLICK_POLICY "click-policy"
|
2000-04-18 14:05:36 +00:00
|
|
|
|
2015-09-02 12:34:31 +00:00
|
|
|
/* Drag and drop preferences */
|
|
|
|
#define NAUTILUS_PREFERENCES_OPEN_FOLDER_ON_DND_HOVER "open-folder-on-dnd-hover"
|
|
|
|
|
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 4427 (Should not execute text files by default).
Now it asks whether to run or display executable text files.
Advanced users can set a new preference.
* libnautilus-extensions/nautilus-stock-dialogs.h:
* libnautilus-extensions/nautilus-stock-dialogs.c:
(create_message_box): New bottleneck function, contains former
guts of show_message_box but doesn't call gtk_widget_show.
(show_message_box): Now just a simple wrapper for
calling create_message_box and showing the result.
(nautilus_show_info_dialog), (nautilus_show_warning_dialog),
(nautilus_show_error_dialog), (nautilus_show_yes_no_dialog),
(nautilus_show_error_dialog_with_details):
Renamed to add verb "show" to names.
(nautilus_run_simple_dialog): Renamed to add verb "run" to name.
(nautilus_create_question_dialog): New public function, does
not show the dialog yet so caller can add more buttons or
whatever before showing.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Add new preference for
what to do when an executable text file is activated. It
defaults to "Ask" and is visible only at Advanced level.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.h: Moved
nautilus_file_contains_text into public header.
* src/file-manager/fm-directory-view.c:
(get_executable_text_file_action): New function, uses preference
and dialog (if necessary) to determine how to handle activating
an executable text file.
(activate_callback): Now handles executable text files specially
by using get_executable_text_file_action. Restructured the control
flow a little.
* components/music/nautilus-music-view.c: (set_album_cover),
(play_current_file), (nautilus_music_view_update):
* components/rpmview/nautilus-rpm-view-install.c:
(nautilus_rpm_view_install_done):
* components/services/summary/nautilus-view/nautilus-summary-dialogs.c:
(nautilus_summary_login_failure_dialog),
(generate_error_dialog):
* components/text/nautilus-text-view.c: (file_read_callback):
* libnautilus-extensions/nautilus-file-operations.c:
(confirm_empty_trash),
(handle_transfer_vfs_error), (handle_transfer_overwrite),
(nautilus_file_operations_copy_move),
(handle_new_folder_vfs_error),
(nautilus_file_operations_move_to_trash):
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout):
* libnautilus-extensions/nautilus-program-chooser.c:
(nautilus_program_chooser_show_no_choices_message):
* libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application):
* libnautilus-extensions/nautilus-volume-monitor.c:
(display_mount_status):
* src/file-manager/fm-desktop-icon-view.c:
(icon_view_create_nautilus_links):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_confirm_multiple_windows),
(real_file_limit_reached), (fm_directory_view_confirm_deletion),
(confirm_delete_from_trash), (report_broken_symbolic_link),
* src/file-manager/fm-error-reporting.c:
(fm_report_error_renaming_file), (fm_report_error_setting_group),
(fm_report_error_setting_owner),
(fm_report_error_setting_permissions):
* src/file-manager/fm-properties-window.c: (set_custom_image):
* src/file-manager/fm-search-list-view.c: (load_location_callback),
(load_error_callback), (display_indexed_search_problems_dialog),
(real_file_limit_reached):
* src/file-manager/nautilus-indexing-info.c:
(update_file_index_callback),
(show_search_service_not_available_dialog):
* src/nautilus-application.c: (check_required_directories),
(nautilus_application_startup):
* src/nautilus-location-bar.c: (drag_data_received_callback):
* src/nautilus-property-browser.c: (remove_pattern),
(remove_emblem), (emblem_image_file_changed),
(add_pattern_to_browser), (add_color_to_browser),
(emblem_dialog_clicked):
* src/nautilus-sidebar.c: (receive_dropped_uri_list):
* src/nautilus-theme-selector.c: (add_theme_to_icons),
(theme_select_row_callback):
* src/nautilus-window-manage-views.c: (handle_unreadable_location),
(report_content_view_failure_to_user_internal),
(report_sidebar_panel_failure_to_user),
(nautilus_window_end_location_change_callback):
* src/nautilus-window-menus.c: (forget_history_if_confirmed),
(show_bogus_bookmark_window): Updated for dialog API name changes.
* libnautilus-extensions/nautilus-file.c: (get_description):
Lucky Aaron gets missing mime description complaints now.
2001-01-29 19:29:56 +00:00
|
|
|
/* Activating executable text files */
|
2010-07-22 13:34:18 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION "executable-text-activation"
|
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 4427 (Should not execute text files by default).
Now it asks whether to run or display executable text files.
Advanced users can set a new preference.
* libnautilus-extensions/nautilus-stock-dialogs.h:
* libnautilus-extensions/nautilus-stock-dialogs.c:
(create_message_box): New bottleneck function, contains former
guts of show_message_box but doesn't call gtk_widget_show.
(show_message_box): Now just a simple wrapper for
calling create_message_box and showing the result.
(nautilus_show_info_dialog), (nautilus_show_warning_dialog),
(nautilus_show_error_dialog), (nautilus_show_yes_no_dialog),
(nautilus_show_error_dialog_with_details):
Renamed to add verb "show" to names.
(nautilus_run_simple_dialog): Renamed to add verb "run" to name.
(nautilus_create_question_dialog): New public function, does
not show the dialog yet so caller can add more buttons or
whatever before showing.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Add new preference for
what to do when an executable text file is activated. It
defaults to "Ask" and is visible only at Advanced level.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.h: Moved
nautilus_file_contains_text into public header.
* src/file-manager/fm-directory-view.c:
(get_executable_text_file_action): New function, uses preference
and dialog (if necessary) to determine how to handle activating
an executable text file.
(activate_callback): Now handles executable text files specially
by using get_executable_text_file_action. Restructured the control
flow a little.
* components/music/nautilus-music-view.c: (set_album_cover),
(play_current_file), (nautilus_music_view_update):
* components/rpmview/nautilus-rpm-view-install.c:
(nautilus_rpm_view_install_done):
* components/services/summary/nautilus-view/nautilus-summary-dialogs.c:
(nautilus_summary_login_failure_dialog),
(generate_error_dialog):
* components/text/nautilus-text-view.c: (file_read_callback):
* libnautilus-extensions/nautilus-file-operations.c:
(confirm_empty_trash),
(handle_transfer_vfs_error), (handle_transfer_overwrite),
(nautilus_file_operations_copy_move),
(handle_new_folder_vfs_error),
(nautilus_file_operations_move_to_trash):
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout):
* libnautilus-extensions/nautilus-program-chooser.c:
(nautilus_program_chooser_show_no_choices_message):
* libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application):
* libnautilus-extensions/nautilus-volume-monitor.c:
(display_mount_status):
* src/file-manager/fm-desktop-icon-view.c:
(icon_view_create_nautilus_links):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_confirm_multiple_windows),
(real_file_limit_reached), (fm_directory_view_confirm_deletion),
(confirm_delete_from_trash), (report_broken_symbolic_link),
* src/file-manager/fm-error-reporting.c:
(fm_report_error_renaming_file), (fm_report_error_setting_group),
(fm_report_error_setting_owner),
(fm_report_error_setting_permissions):
* src/file-manager/fm-properties-window.c: (set_custom_image):
* src/file-manager/fm-search-list-view.c: (load_location_callback),
(load_error_callback), (display_indexed_search_problems_dialog),
(real_file_limit_reached):
* src/file-manager/nautilus-indexing-info.c:
(update_file_index_callback),
(show_search_service_not_available_dialog):
* src/nautilus-application.c: (check_required_directories),
(nautilus_application_startup):
* src/nautilus-location-bar.c: (drag_data_received_callback):
* src/nautilus-property-browser.c: (remove_pattern),
(remove_emblem), (emblem_image_file_changed),
(add_pattern_to_browser), (add_color_to_browser),
(emblem_dialog_clicked):
* src/nautilus-sidebar.c: (receive_dropped_uri_list):
* src/nautilus-theme-selector.c: (add_theme_to_icons),
(theme_select_row_callback):
* src/nautilus-window-manage-views.c: (handle_unreadable_location),
(report_content_view_failure_to_user_internal),
(report_sidebar_panel_failure_to_user),
(nautilus_window_end_location_change_callback):
* src/nautilus-window-menus.c: (forget_history_if_confirmed),
(show_bogus_bookmark_window): Updated for dialog API name changes.
* libnautilus-extensions/nautilus-file.c: (get_description):
Lucky Aaron gets missing mime description complaints now.
2001-01-29 19:29:56 +00:00
|
|
|
|
2008-12-10 11:50:43 +00:00
|
|
|
/* Installing new packages when unknown mime type activated */
|
2010-07-22 14:47:25 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_INSTALL_MIME_ACTIVATION "install-mime-activation"
|
2008-12-10 11:50:43 +00:00
|
|
|
|
2004-02-20 10:33:52 +00:00
|
|
|
/* Spatial or browser mode */
|
2010-07-22 14:31:58 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_NEW_TAB_POSITION "tabs-open-position"
|
2004-02-20 10:33:52 +00:00
|
|
|
|
2010-07-22 15:32:57 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_ALWAYS_USE_LOCATION_ENTRY "always-use-location-entry"
|
|
|
|
|
Fixed bug 1653 (new menu layout). View menu now contains
Show/Hide items for tool bar, location bar, sidebar, and
status bar. The preference now controls only what you get
for new windows. Any future "menus aren't quite right"
issues should be filed as new bugs.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog), (global_preferences_register):
Renamed NAUTILUS_PREFERENCES_DISPLAY_SIDEBAR and its ilk to
NAUTILUS_PREFERENCES_START_WITH_SIDEBAR since these preferences
now only affect the initial appearance of new windows. Also,
clarified the text that appears in the preferences window for these.
* src/nautilus-window-menus.c:
Removed a bunch of code #ifdeffed WINDOW_ITEMS_TEST since the
functionality it partly implemented is now implemented for real.
(view_menu_show_hide_sidebar_callback),
(view_menu_show_hide_tool_bar_callback),
(view_menu_show_hide_location_bar_callback),
(view_menu_show_hide_status_bar_callback):
New menu callback functions that toggle the visibility of the
various views.
(nautilus_window_update_show_hide_menu_items): New function,
sets the text in the show/hide menu items based on current
visibility.
(nautilus_window_initialize_menus): Put the Show/Hide menu items
in the menu.
* src/nautilus-window-private.h: Add prototype for
nautilus_window_update_show_hide_menu_items.
* src/nautilus-window.h: Renamed statusbar_ctx -> status_bar_context_id
and statusbar_clear_id -> status_bar_clear_id; renamed show/hide
locationbar/toolbar/statusbar to use location_bar, tool_bar, and
status_bar (GTK bad English usage notwithstanding); added prototypes
for nautilus_window_sidebar_showing and its ilk.
* src/nautilus-window.c:
(nautilus_window_initialize), (nautilus_window_destroy): Removed
monitoring & unmonitoring of DISPLAY_SIDEBAR-type preferences since
changing these preferences now has no dynamic effect.
(nautilus_window_clear_status), (nautilus_window_set_status),
(nautilus_window_constructed): Fixed wordgroupingification of
status_bar et al.
(show_dock_item), (hide_dock_item): New functions to share code of
show/hide location bar & tool bar functions; these call
nautilus_window_update_show_hide_menu_items now also.
(dock_item_showing): New function, tests visibility of named dock item.
(nautilus_window_hide_location_bar),
(nautilus_window_show_location_bar),
(nautilus_window_hide_tool_bar), (nautilus_window_show_tool_bar):
Use new code-sharing functions.
(nautilus_window_location_bar_showing),
(nautilus_window_tool_bar_showing),
(nautilus_window_sidebar_showing),
(nautilus_window_status_bar_showing): New functions to test visibility
(nautilus_window_hide_sidebar),
(nautilus_window_show_sidebar),
(nautilus_window_hide_status_bar),
(nautilus_window_show_status_bar): These call
nautilus_window_update_show_hide_menu_items now.
(nautilus_window_show): Updated for naming changes.
* RENAMING: Noted that the evil one-word "toolbar" phrase
is still rampant in Nautilus.
2000-08-24 18:45:29 +00:00
|
|
|
/* Which views should be displayed for new windows */
|
2012-05-31 14:03:42 +00:00
|
|
|
#define NAUTILUS_WINDOW_STATE_START_WITH_SIDEBAR "start-with-sidebar"
|
2010-07-22 15:32:57 +00:00
|
|
|
#define NAUTILUS_WINDOW_STATE_GEOMETRY "geometry"
|
|
|
|
#define NAUTILUS_WINDOW_STATE_MAXIMIZED "maximized"
|
|
|
|
#define NAUTILUS_WINDOW_STATE_SIDEBAR_WIDTH "sidebar-width"
|
Fixed bug 1021, Should be able to hide toolbar, sidebar and locationbar.
2000-07-17 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 1021, Should be able to hide toolbar, sidebar
and locationbar.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui):
Added new items for showing/hiding window views.
* src/nautilus-window-menus.c: (file_menu_new_window_callback):
* src/nautilus-window.c: (nautilus_window_initialize),
(nautilus_window_constructed), (nautilus_window_destroy),
(sidebar_panels_changed_callback),
(toolbar_visibility_changed_callback),
(locationbar_visibility_changed_callback),
(statusbar_visibility_changed_callback),
(sidebar_visibility_changed_callback):
New callbacks to dynamically respong to user prefs changes when
showing/hiding window views.
* libnautilus-extensions/nautilus-icon-container.c:
(button_press_event):
Added a simple double-click test to fix annoying double open bug
when double clicking an icon in single click mode.
2000-07-18 00:06:27 +00:00
|
|
|
|
2001-03-22 18:08:33 +00:00
|
|
|
/* Sorting order */
|
2010-07-22 15:36:26 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_SORT_DIRECTORIES_FIRST "sort-directories-first"
|
2010-07-23 08:58:56 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_DEFAULT_SORT_ORDER "default-sort-order"
|
|
|
|
#define NAUTILUS_PREFERENCES_DEFAULT_SORT_IN_REVERSE_ORDER "default-sort-in-reverse-order"
|
2001-03-22 18:08:33 +00:00
|
|
|
|
Make the way we deal with enumerations simpler. Add "View Preferences"
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_register_enumerations),
(global_preferences_create_dialog),
(global_preferences_populate_sidebar_panels_callback),
(global_preferences_install_font_defaults),
(global_preferences_populate_pane):
Make the way we deal with enumerations simpler. Add "View
Preferences" pane and all the related defines.
* libnautilus-extensions/nautilus-preferences-group.h:
* libnautilus-extensions/nautilus-preferences-group.c:
(nautilus_preferences_group_initialize_class),
(nautilus_preferences_group_initialize),
(nautilus_preferences_group_destroy),
(nautilus_preferences_group_new),
(nautilus_preferences_group_add_item),
(nautilus_preferences_group_update),
(nautilus_preferences_group_get_num_visible_items),
(nautilus_preferences_group_get_title_label),
(nautilus_preferences_group_get_max_caption_width),
(nautilus_preferences_group_align_captions):
Add support for 2 columns. Add better support for caption
alignment. Some minor style tweaking.
* libnautilus-extensions/nautilus-preferences-item.h:
* libnautilus-extensions/nautilus-preferences-item.c:
(preferences_item_destroy),
(preferences_item_update_enumeration_radio),
(preferences_item_create_enumeration_radio),
(preferences_item_create_boolean),
(preferences_item_create_editable_string),
(preferences_item_create_editable_integer),
(preferences_item_update_enumeration_menu),
(preferences_item_create_enumeration_menu),
(preferences_item_create_font), (preferences_item_create_padding),
(smooth_font_changed_callback),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enumeration_radio_changed_callback), (font_changed_callback),
(enumeration_menu_changed_callback),
(preferences_item_update_displayed_value),
(nautilus_preferences_item_get_child_width),
(nautilus_preferences_item_update_showing):
Add support for padding items. Rename the enumeration items to
better describe their look and function.
No longer need to store the whole enumeration. We just need the
enumeration id to make enumeration queries. Remove the
constrained integer stuff which is replaced by the use of an
enumeration id.
* libnautilus-extensions/nautilus-preferences-pane.h:
* libnautilus-extensions/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_item_to_nth_group),
(preferences_pane_get_max_caption_width),
(nautilus_preferences_pane_update),
(nautilus_preferences_pane_get_num_visible_groups):
Better caption alignment.
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_entry_free), (nautilus_preferences_get_description),
(nautilus_preferences_set_enumeration_id),
(nautilus_preferences_get_enumeration_id):
No longer store the whole enumeration, just an enumeration id.
* src/file-manager/fm-icon-view.c: (fm_icon_view_initialize),
(fm_icon_view_update_icon_container_font_size_table):
* src/file-manager/fm-list-view.c: (fm_list_view_initialize),
(fm_list_view_update_font):
Update for new "View Preferences" preferences. Not hooked up for
real yet.
2001-04-08 10:28:57 +00:00
|
|
|
/* The default folder viewer - one of the two enums below */
|
2010-07-22 15:42:39 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_DEFAULT_FOLDER_VIEWER "default-folder-viewer"
|
Make the way we deal with enumerations simpler. Add "View Preferences"
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_register_enumerations),
(global_preferences_create_dialog),
(global_preferences_populate_sidebar_panels_callback),
(global_preferences_install_font_defaults),
(global_preferences_populate_pane):
Make the way we deal with enumerations simpler. Add "View
Preferences" pane and all the related defines.
* libnautilus-extensions/nautilus-preferences-group.h:
* libnautilus-extensions/nautilus-preferences-group.c:
(nautilus_preferences_group_initialize_class),
(nautilus_preferences_group_initialize),
(nautilus_preferences_group_destroy),
(nautilus_preferences_group_new),
(nautilus_preferences_group_add_item),
(nautilus_preferences_group_update),
(nautilus_preferences_group_get_num_visible_items),
(nautilus_preferences_group_get_title_label),
(nautilus_preferences_group_get_max_caption_width),
(nautilus_preferences_group_align_captions):
Add support for 2 columns. Add better support for caption
alignment. Some minor style tweaking.
* libnautilus-extensions/nautilus-preferences-item.h:
* libnautilus-extensions/nautilus-preferences-item.c:
(preferences_item_destroy),
(preferences_item_update_enumeration_radio),
(preferences_item_create_enumeration_radio),
(preferences_item_create_boolean),
(preferences_item_create_editable_string),
(preferences_item_create_editable_integer),
(preferences_item_update_enumeration_menu),
(preferences_item_create_enumeration_menu),
(preferences_item_create_font), (preferences_item_create_padding),
(smooth_font_changed_callback),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enumeration_radio_changed_callback), (font_changed_callback),
(enumeration_menu_changed_callback),
(preferences_item_update_displayed_value),
(nautilus_preferences_item_get_child_width),
(nautilus_preferences_item_update_showing):
Add support for padding items. Rename the enumeration items to
better describe their look and function.
No longer need to store the whole enumeration. We just need the
enumeration id to make enumeration queries. Remove the
constrained integer stuff which is replaced by the use of an
enumeration id.
* libnautilus-extensions/nautilus-preferences-pane.h:
* libnautilus-extensions/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_item_to_nth_group),
(preferences_pane_get_max_caption_width),
(nautilus_preferences_pane_update),
(nautilus_preferences_pane_get_num_visible_groups):
Better caption alignment.
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_entry_free), (nautilus_preferences_get_description),
(nautilus_preferences_set_enumeration_id),
(nautilus_preferences_get_enumeration_id):
No longer store the whole enumeration, just an enumeration id.
* src/file-manager/fm-icon-view.c: (fm_icon_view_initialize),
(fm_icon_view_update_icon_container_font_size_table):
* src/file-manager/fm-list-view.c: (fm_list_view_initialize),
(fm_list_view_update_font):
Update for new "View Preferences" preferences. Not hooked up for
real yet.
2001-04-08 10:28:57 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NAUTILUS_DEFAULT_FOLDER_VIEWER_ICON_VIEW,
|
2001-04-23 23:03:32 +00:00
|
|
|
NAUTILUS_DEFAULT_FOLDER_VIEWER_LIST_VIEW,
|
|
|
|
NAUTILUS_DEFAULT_FOLDER_VIEWER_OTHER
|
Make the way we deal with enumerations simpler. Add "View Preferences"
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_register_enumerations),
(global_preferences_create_dialog),
(global_preferences_populate_sidebar_panels_callback),
(global_preferences_install_font_defaults),
(global_preferences_populate_pane):
Make the way we deal with enumerations simpler. Add "View
Preferences" pane and all the related defines.
* libnautilus-extensions/nautilus-preferences-group.h:
* libnautilus-extensions/nautilus-preferences-group.c:
(nautilus_preferences_group_initialize_class),
(nautilus_preferences_group_initialize),
(nautilus_preferences_group_destroy),
(nautilus_preferences_group_new),
(nautilus_preferences_group_add_item),
(nautilus_preferences_group_update),
(nautilus_preferences_group_get_num_visible_items),
(nautilus_preferences_group_get_title_label),
(nautilus_preferences_group_get_max_caption_width),
(nautilus_preferences_group_align_captions):
Add support for 2 columns. Add better support for caption
alignment. Some minor style tweaking.
* libnautilus-extensions/nautilus-preferences-item.h:
* libnautilus-extensions/nautilus-preferences-item.c:
(preferences_item_destroy),
(preferences_item_update_enumeration_radio),
(preferences_item_create_enumeration_radio),
(preferences_item_create_boolean),
(preferences_item_create_editable_string),
(preferences_item_create_editable_integer),
(preferences_item_update_enumeration_menu),
(preferences_item_create_enumeration_menu),
(preferences_item_create_font), (preferences_item_create_padding),
(smooth_font_changed_callback),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enumeration_radio_changed_callback), (font_changed_callback),
(enumeration_menu_changed_callback),
(preferences_item_update_displayed_value),
(nautilus_preferences_item_get_child_width),
(nautilus_preferences_item_update_showing):
Add support for padding items. Rename the enumeration items to
better describe their look and function.
No longer need to store the whole enumeration. We just need the
enumeration id to make enumeration queries. Remove the
constrained integer stuff which is replaced by the use of an
enumeration id.
* libnautilus-extensions/nautilus-preferences-pane.h:
* libnautilus-extensions/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_item_to_nth_group),
(preferences_pane_get_max_caption_width),
(nautilus_preferences_pane_update),
(nautilus_preferences_pane_get_num_visible_groups):
Better caption alignment.
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_entry_free), (nautilus_preferences_get_description),
(nautilus_preferences_set_enumeration_id),
(nautilus_preferences_get_enumeration_id):
No longer store the whole enumeration, just an enumeration id.
* src/file-manager/fm-icon-view.c: (fm_icon_view_initialize),
(fm_icon_view_update_icon_container_font_size_table):
* src/file-manager/fm-list-view.c: (fm_list_view_initialize),
(fm_list_view_update_font):
Update for new "View Preferences" preferences. Not hooked up for
real yet.
2001-04-08 10:28:57 +00:00
|
|
|
};
|
|
|
|
|
Fix bugs:
7343 - Fonts checks should work even when nautilus has not
undergone 'make install'
7703 - index status dialog is mixing gnome dialog font and
nautilus custom font
7204 - Need a better way to pick a fallback font
1102 - Embedded text should use preferences to determine the font
it uses
7357 - Preferences dialog spews critical in the ja_JP locale
7344 - NautilusScalable should not be doing any preferences
peeking
7345 - Default font "helvetica" hard coded and marked for
translatation in many places
7834 - Should mark selected style in font picker menu
5239 - Please make the text viewer use a fixed-width font
7401 - Non smooth font family picker should have a "GTK System
Font" entry
Work in progress for related bugs:
5101 - font sizes hard-coded in icon view
5456 - Sidebar tabs use hard coded font families
7670 - Font size is small in list view.
reviewed by: Glynn Foster <glynn.foster@ireland.sun.com>
* components/notes/nautilus-notes.c: (make_notes_view):
Dont translate the font name.
* components/text/nautilus-text-view-ui.xml:
Add default and fixed entries.
* components/text/nautilus-text-view.c:
(nautilus_text_view_initialize_class),
(nautilus_text_view_initialize), (nautilus_text_view_destroy),
(nautilus_text_view_update_font), (handle_ui_event),
(merge_bonobo_menu_items), (nautilus_text_view_zoom_to_level),
(zoomable_zoom_to_fit_callback), (font_changed_callback):
Dont store the font name and size. Compute these as needed. Use
deltas instead of hard coded font sizes to compute the font size
for a given zoom level. Store the font changes in preferences.
* libnautilus-extensions/nautilus-caption.c:
(nautilus_caption_initialize), (nautilus_caption_set_title_label),
(nautilus_caption_get_title_label),
(nautilus_caption_get_title_label_width),
(nautilus_caption_set_child), (nautilus_caption_set_spacing):
* libnautilus-extensions/nautilus-caption.h:
Add support for nice caption alignments.
* libnautilus-extensions/nautilus-directory.c:
(add_preferences_callbacks), (remove_preferences_callbacks):
A bit of a hack. Keep track of changes in the default smooth font
so that embedded icon text previews can be updated as needed.
* libnautilus-extensions/nautilus-font-factory.c:
(nautilus_font_factory_get_font_by_family),
A temporary hack for default system font usage. In a future
checkin this will not be needed anymore.
(nautilus_font_factory_get_font_from_preferences):
Dont translate font names anymore.
* libnautilus-extensions/nautilus-font-manager.c:
(font_description_new), (font_description_free),
(font_description_get_char_set), (font_description_table_for_each),
(font_list_find_bold_callback), (get_test_font_dir),
(nautilus_self_check_font_manager):
* libnautilus-extensions/nautilus-font-manager.h:
Merge char_set_registry and char_set_encoding into one string
'char_set.' Make the font checks work even if nautilus has not
undergone 'make install'
* libnautilus-extensions/nautilus-font-picker.c:
(nautilus_font_picker_initialize), (nautilus_font_picker_destroy),
(font_picker_populate), (font_make_style_name),
(font_style_entry_new), (compare_style),
(global_font_list_populate_callback):
* libnautilus-extensions/nautilus-font-picker.h:
Sublcass the font picker from NautilusCaption so that it will
nicely align in the preferences dialog.
Mark selected style in font picker menus by using radio buttons.
Fix a storage leak on destruction.
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_compare_integer), (nautilus_self_check_glib_extensions):
* libnautilus-extensions/nautilus-glib-extensions.h:
New GCompare function for integers.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_defaults),
(global_preferences_create_dialog),
(global_preferences_create_search_pane),
(global_preferences_create_sidebar_panels_pane),
(global_preferences_pane_update_callback),
(global_preferences_get_dialog),
(global_preferences_install_sidebar_panel_defaults),
(global_preferences_make_sidebar_panel_key),
(global_preferences_is_sidebar_panel_enabled),
(global_preferences_install_home_location_defaults),
(global_preferences_install_font_defaults),
(global_preferences_install_medusa_defaults),
(global_preferences_populate_pane),
(global_preferences_get_smooth_font),
(global_preferences_get_smooth_bold_font),
(nautilus_global_preferences_get_icon_view_smooth_font),
(nautilus_global_preferences_get_default_smooth_font),
(nautilus_global_preferences_get_default_smooth_bold_font),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-global-preferences.h:
Simplify the creation of preferences by using structures to
describe both preferences and preference fialog entries.
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_get_system_font):
* libnautilus-extensions/nautilus-gtk-extensions.h:
New function to obtain the "Gtk System Font."
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize_class),
(nautilus_icon_canvas_item_set_arg),
(nautilus_icon_canvas_item_get_arg),
(nautilus_icon_canvas_item_set_smooth_font_size):
* libnautilus-extensions/nautilus-icon-canvas-item.h:
Use signed integers for the font dimensions.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_initialize),
(nautilus_icon_container_update_icon),
(nautilus_icon_container_theme_changed),
(nautilus_icon_container_set_font_size_table):
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-private.h:
Dont translate the font names. Rename the font size table to
better reflect its purpose. Use signed integers for font sizes.
* libnautilus-extensions/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embedded_text_font_free),
(embed_text):
Keep track of changes in the smooth font used for embedded text so
that the icon text previews will update as needed.
* libnautilus-extensions/nautilus-preferences-box.c:
(nautilus_preferences_box_find_pane):
* libnautilus-extensions/nautilus-preferences-box.h:
New function to find a named pane.
* libnautilus-extensions/nautilus-preferences-group.c:
(preferences_group_align_captions),
(nautilus_preferences_group_update),
(nautilus_preferences_group_get_title_label):
* libnautilus-extensions/nautilus-preferences-group.h:
Add support for aligning captions.
* libnautilus-extensions/nautilus-preferences-item.c:
(nautilus_preferences_item_initialize),
(preferences_item_construct), (preferences_item_update_enum),
(preferences_item_create_enum),
(preferences_item_update_short_enum),
(preferences_item_create_short_enum),
(preferences_item_update_boolean),
(preferences_item_create_boolean),
(preferences_item_update_editable_string),
(preferences_item_create_editable_string),
(preferences_item_update_editable_integer),
(preferences_item_create_editable_integer),
(preferences_item_update_constrained_integer),
(preferences_item_create_constrained_integer),
(preferences_item_update_font), (preferences_item_create_font),
(preferences_item_update_smooth_font),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enum_radio_group_changed_callback),
(boolean_button_toggled_callback), (font_item_changed_callback),
(editable_string_changed_callback),
(editable_integer_changed_callback),
(constrained_integer_changed_callback),
(nautilus_preferences_item_update_displayed_value),
(preferences_item_update_editable_integer_settings_at_idle),
(nautilus_preferences_item_get_control_showing),
(nautilus_preferences_item_set_constrained_integer_paramaters),
(nautilus_preferences_item_child_is_caption),
(nautilus_preferences_item_get_caption_title_label_width),
(nautilus_preferences_item_set_caption_spacing):
* libnautilus-extensions/nautilus-preferences-item.h:
Add a new CONSTRAINED INTEGER item type. Add support for aligning
captions.
Dont translate font names.
* libnautilus-extensions/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_group),
(nautilus_preferences_pane_add_item_to_nth_group),
(nautilus_preferences_pane_get_num_visible_groups),
(nautilus_preferences_pane_get_num_groups),
(nautilus_preferences_pane_find_group):
* libnautilus-extensions/nautilus-preferences-pane.h:
Add a function for finding a named group.
* libnautilus-extensions/nautilus-scalable-font.c:
(nautilus_scalable_font_get_default_font),
(nautilus_scalable_font_get_default_bold_font):
Dont peek preferences for the default fonts. These are now
handled in nautilus-global-preferences.
* libnautilus-extensions/nautilus-smooth-text-layout.c:
(smooth_text_layout_line_list_new),
(smooth_text_layout_line_list_new_wrapped),
(nautilus_smooth_text_layout_new),
(nautilus_smooth_text_layout_set_font_size):
Use signed integers for font sizes.
* libnautilus-extensions/nautilus-string-picker.c:
(nautilus_string_picker_initialize),
(nautilus_string_picker_set_string_list):
Update for Caption superclass changes. Dont make singleton
choices insensitive.
* libnautilus-extensions/nautilus-text-caption.c:
(nautilus_text_caption_initialize):
* libnautilus-extensions/nautilus-text-caption.h:
Update for Caption superclass changes. Fix errors in header comments.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize), (fm_directory_view_destroy):
* src/file-manager/fm-directory-view.h:
Remove knowledge of font stuff. The fonts for icon and list view
are now handled separately so each subclass will have to do its
own preferences listening.
* src/file-manager/fm-icon-view.c: (set_sort_criterion_by_id),
(font_changed_callback), (smooth_font_changed_callback),
(standard_font_size_changed_callback),
(fm_icon_view_initialize_class), (fm_icon_view_initialize),
(fm_icon_view_update_icon_container_font_size_table),
(fm_icon_view_update_icon_container_smooth_font),
(create_icon_container):
Keep track of icon view font changes. Use deltas to compute the
font sizes instead of hard coded point sizes.
* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
(fm_list_view_initialize), (fm_list_view_update_font),
(font_or_font_size_changed_callback),
(fm_list_view_image_display_policy_changed):
Keep track of list view font changes. Use deltas to compute the
font sizes instead of hard coded point sizes.
* src/file-manager/nautilus-indexing-info.c:
(last_index_time_and_reindex_button_dialog_new),
(index_progress_dialog_new):
Dont use smooth labels mixed in with regular gtk labels.
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(smooth_font_changed_callback), (nautilus_sidebar_tabs_initialize),
(nautilus_sidebar_tabs_destroy):
Add macros and FIXME for hard coded font size. NULL out the tab_font
when its unreffed, otherwise all hell breaks lose when user level
changes. Update for default font changes.
* src/nautilus-sidebar-title.c: (smooth_font_changed_callback),
(nautilus_sidebar_title_initialize),
(nautilus_sidebar_title_destroy), (update_font):
Keep track of smooth font changes. Update for default font changes.
* test/test-nautilus-font-manager.c: (font_iterator_callback):
* test/test-nautilus-font-picker.c: (update_font),
(print_selected_font_callback), (main):
* test/test-nautilus-label-simple.c: (use_system_font_callback),
(use_system_font_bold_callback), (main):
Update for font picker and font manager changes.
2001-03-28 10:10:29 +00:00
|
|
|
/* Icon View */
|
2010-07-22 19:45:02 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL "default-zoom-level"
|
Fix bugs:
7343 - Fonts checks should work even when nautilus has not
undergone 'make install'
7703 - index status dialog is mixing gnome dialog font and
nautilus custom font
7204 - Need a better way to pick a fallback font
1102 - Embedded text should use preferences to determine the font
it uses
7357 - Preferences dialog spews critical in the ja_JP locale
7344 - NautilusScalable should not be doing any preferences
peeking
7345 - Default font "helvetica" hard coded and marked for
translatation in many places
7834 - Should mark selected style in font picker menu
5239 - Please make the text viewer use a fixed-width font
7401 - Non smooth font family picker should have a "GTK System
Font" entry
Work in progress for related bugs:
5101 - font sizes hard-coded in icon view
5456 - Sidebar tabs use hard coded font families
7670 - Font size is small in list view.
reviewed by: Glynn Foster <glynn.foster@ireland.sun.com>
* components/notes/nautilus-notes.c: (make_notes_view):
Dont translate the font name.
* components/text/nautilus-text-view-ui.xml:
Add default and fixed entries.
* components/text/nautilus-text-view.c:
(nautilus_text_view_initialize_class),
(nautilus_text_view_initialize), (nautilus_text_view_destroy),
(nautilus_text_view_update_font), (handle_ui_event),
(merge_bonobo_menu_items), (nautilus_text_view_zoom_to_level),
(zoomable_zoom_to_fit_callback), (font_changed_callback):
Dont store the font name and size. Compute these as needed. Use
deltas instead of hard coded font sizes to compute the font size
for a given zoom level. Store the font changes in preferences.
* libnautilus-extensions/nautilus-caption.c:
(nautilus_caption_initialize), (nautilus_caption_set_title_label),
(nautilus_caption_get_title_label),
(nautilus_caption_get_title_label_width),
(nautilus_caption_set_child), (nautilus_caption_set_spacing):
* libnautilus-extensions/nautilus-caption.h:
Add support for nice caption alignments.
* libnautilus-extensions/nautilus-directory.c:
(add_preferences_callbacks), (remove_preferences_callbacks):
A bit of a hack. Keep track of changes in the default smooth font
so that embedded icon text previews can be updated as needed.
* libnautilus-extensions/nautilus-font-factory.c:
(nautilus_font_factory_get_font_by_family),
A temporary hack for default system font usage. In a future
checkin this will not be needed anymore.
(nautilus_font_factory_get_font_from_preferences):
Dont translate font names anymore.
* libnautilus-extensions/nautilus-font-manager.c:
(font_description_new), (font_description_free),
(font_description_get_char_set), (font_description_table_for_each),
(font_list_find_bold_callback), (get_test_font_dir),
(nautilus_self_check_font_manager):
* libnautilus-extensions/nautilus-font-manager.h:
Merge char_set_registry and char_set_encoding into one string
'char_set.' Make the font checks work even if nautilus has not
undergone 'make install'
* libnautilus-extensions/nautilus-font-picker.c:
(nautilus_font_picker_initialize), (nautilus_font_picker_destroy),
(font_picker_populate), (font_make_style_name),
(font_style_entry_new), (compare_style),
(global_font_list_populate_callback):
* libnautilus-extensions/nautilus-font-picker.h:
Sublcass the font picker from NautilusCaption so that it will
nicely align in the preferences dialog.
Mark selected style in font picker menus by using radio buttons.
Fix a storage leak on destruction.
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_compare_integer), (nautilus_self_check_glib_extensions):
* libnautilus-extensions/nautilus-glib-extensions.h:
New GCompare function for integers.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_defaults),
(global_preferences_create_dialog),
(global_preferences_create_search_pane),
(global_preferences_create_sidebar_panels_pane),
(global_preferences_pane_update_callback),
(global_preferences_get_dialog),
(global_preferences_install_sidebar_panel_defaults),
(global_preferences_make_sidebar_panel_key),
(global_preferences_is_sidebar_panel_enabled),
(global_preferences_install_home_location_defaults),
(global_preferences_install_font_defaults),
(global_preferences_install_medusa_defaults),
(global_preferences_populate_pane),
(global_preferences_get_smooth_font),
(global_preferences_get_smooth_bold_font),
(nautilus_global_preferences_get_icon_view_smooth_font),
(nautilus_global_preferences_get_default_smooth_font),
(nautilus_global_preferences_get_default_smooth_bold_font),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-global-preferences.h:
Simplify the creation of preferences by using structures to
describe both preferences and preference fialog entries.
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_get_system_font):
* libnautilus-extensions/nautilus-gtk-extensions.h:
New function to obtain the "Gtk System Font."
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize_class),
(nautilus_icon_canvas_item_set_arg),
(nautilus_icon_canvas_item_get_arg),
(nautilus_icon_canvas_item_set_smooth_font_size):
* libnautilus-extensions/nautilus-icon-canvas-item.h:
Use signed integers for the font dimensions.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_initialize),
(nautilus_icon_container_update_icon),
(nautilus_icon_container_theme_changed),
(nautilus_icon_container_set_font_size_table):
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-private.h:
Dont translate the font names. Rename the font size table to
better reflect its purpose. Use signed integers for font sizes.
* libnautilus-extensions/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embedded_text_font_free),
(embed_text):
Keep track of changes in the smooth font used for embedded text so
that the icon text previews will update as needed.
* libnautilus-extensions/nautilus-preferences-box.c:
(nautilus_preferences_box_find_pane):
* libnautilus-extensions/nautilus-preferences-box.h:
New function to find a named pane.
* libnautilus-extensions/nautilus-preferences-group.c:
(preferences_group_align_captions),
(nautilus_preferences_group_update),
(nautilus_preferences_group_get_title_label):
* libnautilus-extensions/nautilus-preferences-group.h:
Add support for aligning captions.
* libnautilus-extensions/nautilus-preferences-item.c:
(nautilus_preferences_item_initialize),
(preferences_item_construct), (preferences_item_update_enum),
(preferences_item_create_enum),
(preferences_item_update_short_enum),
(preferences_item_create_short_enum),
(preferences_item_update_boolean),
(preferences_item_create_boolean),
(preferences_item_update_editable_string),
(preferences_item_create_editable_string),
(preferences_item_update_editable_integer),
(preferences_item_create_editable_integer),
(preferences_item_update_constrained_integer),
(preferences_item_create_constrained_integer),
(preferences_item_update_font), (preferences_item_create_font),
(preferences_item_update_smooth_font),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enum_radio_group_changed_callback),
(boolean_button_toggled_callback), (font_item_changed_callback),
(editable_string_changed_callback),
(editable_integer_changed_callback),
(constrained_integer_changed_callback),
(nautilus_preferences_item_update_displayed_value),
(preferences_item_update_editable_integer_settings_at_idle),
(nautilus_preferences_item_get_control_showing),
(nautilus_preferences_item_set_constrained_integer_paramaters),
(nautilus_preferences_item_child_is_caption),
(nautilus_preferences_item_get_caption_title_label_width),
(nautilus_preferences_item_set_caption_spacing):
* libnautilus-extensions/nautilus-preferences-item.h:
Add a new CONSTRAINED INTEGER item type. Add support for aligning
captions.
Dont translate font names.
* libnautilus-extensions/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_group),
(nautilus_preferences_pane_add_item_to_nth_group),
(nautilus_preferences_pane_get_num_visible_groups),
(nautilus_preferences_pane_get_num_groups),
(nautilus_preferences_pane_find_group):
* libnautilus-extensions/nautilus-preferences-pane.h:
Add a function for finding a named group.
* libnautilus-extensions/nautilus-scalable-font.c:
(nautilus_scalable_font_get_default_font),
(nautilus_scalable_font_get_default_bold_font):
Dont peek preferences for the default fonts. These are now
handled in nautilus-global-preferences.
* libnautilus-extensions/nautilus-smooth-text-layout.c:
(smooth_text_layout_line_list_new),
(smooth_text_layout_line_list_new_wrapped),
(nautilus_smooth_text_layout_new),
(nautilus_smooth_text_layout_set_font_size):
Use signed integers for font sizes.
* libnautilus-extensions/nautilus-string-picker.c:
(nautilus_string_picker_initialize),
(nautilus_string_picker_set_string_list):
Update for Caption superclass changes. Dont make singleton
choices insensitive.
* libnautilus-extensions/nautilus-text-caption.c:
(nautilus_text_caption_initialize):
* libnautilus-extensions/nautilus-text-caption.h:
Update for Caption superclass changes. Fix errors in header comments.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize), (fm_directory_view_destroy):
* src/file-manager/fm-directory-view.h:
Remove knowledge of font stuff. The fonts for icon and list view
are now handled separately so each subclass will have to do its
own preferences listening.
* src/file-manager/fm-icon-view.c: (set_sort_criterion_by_id),
(font_changed_callback), (smooth_font_changed_callback),
(standard_font_size_changed_callback),
(fm_icon_view_initialize_class), (fm_icon_view_initialize),
(fm_icon_view_update_icon_container_font_size_table),
(fm_icon_view_update_icon_container_smooth_font),
(create_icon_container):
Keep track of icon view font changes. Use deltas to compute the
font sizes instead of hard coded point sizes.
* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
(fm_list_view_initialize), (fm_list_view_update_font),
(font_or_font_size_changed_callback),
(fm_list_view_image_display_policy_changed):
Keep track of list view font changes. Use deltas to compute the
font sizes instead of hard coded point sizes.
* src/file-manager/nautilus-indexing-info.c:
(last_index_time_and_reindex_button_dialog_new),
(index_progress_dialog_new):
Dont use smooth labels mixed in with regular gtk labels.
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(smooth_font_changed_callback), (nautilus_sidebar_tabs_initialize),
(nautilus_sidebar_tabs_destroy):
Add macros and FIXME for hard coded font size. NULL out the tab_font
when its unreffed, otherwise all hell breaks lose when user level
changes. Update for default font changes.
* src/nautilus-sidebar-title.c: (smooth_font_changed_callback),
(nautilus_sidebar_title_initialize),
(nautilus_sidebar_title_destroy), (update_font):
Keep track of smooth font changes. Update for default font changes.
* test/test-nautilus-font-manager.c: (font_iterator_callback):
* test/test-nautilus-font-picker.c: (update_font),
(print_selected_font_callback), (main):
* test/test-nautilus-label-simple.c: (use_system_font_callback),
(use_system_font_bold_callback), (main):
Update for font picker and font manager changes.
2001-03-28 10:10:29 +00:00
|
|
|
|
Implement the missing GconfValue comparison for lists.
* libnautilus-extensions/nautilus-gconf-extensions.c:
(simple_value_is_equal), (nautilus_gconf_value_is_equal):
Implement the missing GconfValue comparison for lists.
* libnautilus-extensions/nautilus-global-preferences.h:
More consistent name for the icon captions preference.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_register_enumerations): Allow enumeration ids
to be installed for string lists. A bit of a hack to let
enumeration lists work in the NautilusPreferencesItem object.
(global_preferences_install_one_default): Add support for string
lists.
(global_preferences_create_dialog):
Move the icon captions widgetry from its own lonesome dialog into
the preferences dialog.
* libnautilus-extensions/nautilus-preferences-box.h:
* libnautilus-extensions/nautilus-preferences-box.c:
(nautilus_preferences_box_new):
Remove unused parameter from constructor. Remove some crufty
unused code. Match the Nautilus style more.
* libnautilus-extensions/nautilus-preferences-dialog.h:
* libnautilus-extensions/nautilus-preferences-dialog.c:
(nautilus_preferences_dialog_construct):
Remove some crufty unused signals, defines and code. Match the
Nautilus style more. Dont hard code the default size. Let Gtk do
that work for us. Remove unused dialog_destroy callback.
* libnautilus-extensions/nautilus-preferences-item.h:
* libnautilus-extensions/nautilus-preferences-item.c:
(preferences_item_destroy),
(preferences_item_update_enumeration_list),
(preferences_item_set_main_child),
(preferences_item_add_connection_child),
(preferences_item_create_enumeration_radio),
(preferences_item_create_enumeration_list),
(preferences_item_create_boolean),
(preferences_item_update_editable_string),
(preferences_item_create_editable_string),
(preferences_item_create_editable_integer),
(preferences_item_create_enumeration_menu),
(preferences_item_create_font), (preferences_item_create_padding),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enumeration_list_changed_callback),
(preferences_item_update_displayed_value):
Add support for enumerations lists.
Cleanup the way children are added to the main box. Allow for
more than one child (for enum list support). Keep a list of
widgets and their respective changed signal ids, so they can all
be blocked and unblocked when needed.
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(update_auto_string_list), (preferences_entry_update_auto_storage),
(preferences_entry_remove_auto_storage),
(nautilus_preferences_add_auto_string_list),
(nautilus_preferences_remove_auto_string),
(nautilus_preferences_remove_auto_string_list):
Add support for auto storage of string lists.
* src/nautilus-application.c: (check_required_directories): Update
for EelStringList _as_string changes.
2001-04-17 20:07:20 +00:00
|
|
|
/* Which text attributes appear beneath icon names */
|
2010-07-22 19:45:02 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_ICON_VIEW_CAPTIONS "captions"
|
Implement the missing GconfValue comparison for lists.
* libnautilus-extensions/nautilus-gconf-extensions.c:
(simple_value_is_equal), (nautilus_gconf_value_is_equal):
Implement the missing GconfValue comparison for lists.
* libnautilus-extensions/nautilus-global-preferences.h:
More consistent name for the icon captions preference.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_register_enumerations): Allow enumeration ids
to be installed for string lists. A bit of a hack to let
enumeration lists work in the NautilusPreferencesItem object.
(global_preferences_install_one_default): Add support for string
lists.
(global_preferences_create_dialog):
Move the icon captions widgetry from its own lonesome dialog into
the preferences dialog.
* libnautilus-extensions/nautilus-preferences-box.h:
* libnautilus-extensions/nautilus-preferences-box.c:
(nautilus_preferences_box_new):
Remove unused parameter from constructor. Remove some crufty
unused code. Match the Nautilus style more.
* libnautilus-extensions/nautilus-preferences-dialog.h:
* libnautilus-extensions/nautilus-preferences-dialog.c:
(nautilus_preferences_dialog_construct):
Remove some crufty unused signals, defines and code. Match the
Nautilus style more. Dont hard code the default size. Let Gtk do
that work for us. Remove unused dialog_destroy callback.
* libnautilus-extensions/nautilus-preferences-item.h:
* libnautilus-extensions/nautilus-preferences-item.c:
(preferences_item_destroy),
(preferences_item_update_enumeration_list),
(preferences_item_set_main_child),
(preferences_item_add_connection_child),
(preferences_item_create_enumeration_radio),
(preferences_item_create_enumeration_list),
(preferences_item_create_boolean),
(preferences_item_update_editable_string),
(preferences_item_create_editable_string),
(preferences_item_create_editable_integer),
(preferences_item_create_enumeration_menu),
(preferences_item_create_font), (preferences_item_create_padding),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enumeration_list_changed_callback),
(preferences_item_update_displayed_value):
Add support for enumerations lists.
Cleanup the way children are added to the main box. Allow for
more than one child (for enum list support). Keep a list of
widgets and their respective changed signal ids, so they can all
be blocked and unblocked when needed.
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(update_auto_string_list), (preferences_entry_update_auto_storage),
(preferences_entry_remove_auto_storage),
(nautilus_preferences_add_auto_string_list),
(nautilus_preferences_remove_auto_string),
(nautilus_preferences_remove_auto_string_list):
Add support for auto storage of string lists.
* src/nautilus-application.c: (check_required_directories): Update
for EelStringList _as_string changes.
2001-04-17 20:07:20 +00:00
|
|
|
|
2007-04-12 13:05:04 +00:00
|
|
|
/* The default size for thumbnail icons */
|
2010-07-22 19:45:02 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_ICON_VIEW_THUMBNAIL_SIZE "thumbnail-size"
|
2007-04-12 13:05:04 +00:00
|
|
|
|
2008-08-18 20:47:18 +00:00
|
|
|
/* ellipsization preferences */
|
2010-07-22 19:45:02 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_ICON_VIEW_TEXT_ELLIPSIS_LIMIT "text-ellipsis-limit"
|
2010-07-22 20:29:50 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_TEXT_ELLIPSIS_LIMIT "text-ellipsis-limit"
|
2008-08-18 20:47:18 +00:00
|
|
|
|
Fix bugs:
7343 - Fonts checks should work even when nautilus has not
undergone 'make install'
7703 - index status dialog is mixing gnome dialog font and
nautilus custom font
7204 - Need a better way to pick a fallback font
1102 - Embedded text should use preferences to determine the font
it uses
7357 - Preferences dialog spews critical in the ja_JP locale
7344 - NautilusScalable should not be doing any preferences
peeking
7345 - Default font "helvetica" hard coded and marked for
translatation in many places
7834 - Should mark selected style in font picker menu
5239 - Please make the text viewer use a fixed-width font
7401 - Non smooth font family picker should have a "GTK System
Font" entry
Work in progress for related bugs:
5101 - font sizes hard-coded in icon view
5456 - Sidebar tabs use hard coded font families
7670 - Font size is small in list view.
reviewed by: Glynn Foster <glynn.foster@ireland.sun.com>
* components/notes/nautilus-notes.c: (make_notes_view):
Dont translate the font name.
* components/text/nautilus-text-view-ui.xml:
Add default and fixed entries.
* components/text/nautilus-text-view.c:
(nautilus_text_view_initialize_class),
(nautilus_text_view_initialize), (nautilus_text_view_destroy),
(nautilus_text_view_update_font), (handle_ui_event),
(merge_bonobo_menu_items), (nautilus_text_view_zoom_to_level),
(zoomable_zoom_to_fit_callback), (font_changed_callback):
Dont store the font name and size. Compute these as needed. Use
deltas instead of hard coded font sizes to compute the font size
for a given zoom level. Store the font changes in preferences.
* libnautilus-extensions/nautilus-caption.c:
(nautilus_caption_initialize), (nautilus_caption_set_title_label),
(nautilus_caption_get_title_label),
(nautilus_caption_get_title_label_width),
(nautilus_caption_set_child), (nautilus_caption_set_spacing):
* libnautilus-extensions/nautilus-caption.h:
Add support for nice caption alignments.
* libnautilus-extensions/nautilus-directory.c:
(add_preferences_callbacks), (remove_preferences_callbacks):
A bit of a hack. Keep track of changes in the default smooth font
so that embedded icon text previews can be updated as needed.
* libnautilus-extensions/nautilus-font-factory.c:
(nautilus_font_factory_get_font_by_family),
A temporary hack for default system font usage. In a future
checkin this will not be needed anymore.
(nautilus_font_factory_get_font_from_preferences):
Dont translate font names anymore.
* libnautilus-extensions/nautilus-font-manager.c:
(font_description_new), (font_description_free),
(font_description_get_char_set), (font_description_table_for_each),
(font_list_find_bold_callback), (get_test_font_dir),
(nautilus_self_check_font_manager):
* libnautilus-extensions/nautilus-font-manager.h:
Merge char_set_registry and char_set_encoding into one string
'char_set.' Make the font checks work even if nautilus has not
undergone 'make install'
* libnautilus-extensions/nautilus-font-picker.c:
(nautilus_font_picker_initialize), (nautilus_font_picker_destroy),
(font_picker_populate), (font_make_style_name),
(font_style_entry_new), (compare_style),
(global_font_list_populate_callback):
* libnautilus-extensions/nautilus-font-picker.h:
Sublcass the font picker from NautilusCaption so that it will
nicely align in the preferences dialog.
Mark selected style in font picker menus by using radio buttons.
Fix a storage leak on destruction.
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_compare_integer), (nautilus_self_check_glib_extensions):
* libnautilus-extensions/nautilus-glib-extensions.h:
New GCompare function for integers.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_defaults),
(global_preferences_create_dialog),
(global_preferences_create_search_pane),
(global_preferences_create_sidebar_panels_pane),
(global_preferences_pane_update_callback),
(global_preferences_get_dialog),
(global_preferences_install_sidebar_panel_defaults),
(global_preferences_make_sidebar_panel_key),
(global_preferences_is_sidebar_panel_enabled),
(global_preferences_install_home_location_defaults),
(global_preferences_install_font_defaults),
(global_preferences_install_medusa_defaults),
(global_preferences_populate_pane),
(global_preferences_get_smooth_font),
(global_preferences_get_smooth_bold_font),
(nautilus_global_preferences_get_icon_view_smooth_font),
(nautilus_global_preferences_get_default_smooth_font),
(nautilus_global_preferences_get_default_smooth_bold_font),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-global-preferences.h:
Simplify the creation of preferences by using structures to
describe both preferences and preference fialog entries.
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_get_system_font):
* libnautilus-extensions/nautilus-gtk-extensions.h:
New function to obtain the "Gtk System Font."
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_initialize_class),
(nautilus_icon_canvas_item_set_arg),
(nautilus_icon_canvas_item_get_arg),
(nautilus_icon_canvas_item_set_smooth_font_size):
* libnautilus-extensions/nautilus-icon-canvas-item.h:
Use signed integers for the font dimensions.
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_initialize),
(nautilus_icon_container_update_icon),
(nautilus_icon_container_theme_changed),
(nautilus_icon_container_set_font_size_table):
* libnautilus-extensions/nautilus-icon-container.h:
* libnautilus-extensions/nautilus-icon-private.h:
Dont translate the font names. Rename the font size table to
better reflect its purpose. Use signed integers for font sizes.
* libnautilus-extensions/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embedded_text_font_free),
(embed_text):
Keep track of changes in the smooth font used for embedded text so
that the icon text previews will update as needed.
* libnautilus-extensions/nautilus-preferences-box.c:
(nautilus_preferences_box_find_pane):
* libnautilus-extensions/nautilus-preferences-box.h:
New function to find a named pane.
* libnautilus-extensions/nautilus-preferences-group.c:
(preferences_group_align_captions),
(nautilus_preferences_group_update),
(nautilus_preferences_group_get_title_label):
* libnautilus-extensions/nautilus-preferences-group.h:
Add support for aligning captions.
* libnautilus-extensions/nautilus-preferences-item.c:
(nautilus_preferences_item_initialize),
(preferences_item_construct), (preferences_item_update_enum),
(preferences_item_create_enum),
(preferences_item_update_short_enum),
(preferences_item_create_short_enum),
(preferences_item_update_boolean),
(preferences_item_create_boolean),
(preferences_item_update_editable_string),
(preferences_item_create_editable_string),
(preferences_item_update_editable_integer),
(preferences_item_create_editable_integer),
(preferences_item_update_constrained_integer),
(preferences_item_create_constrained_integer),
(preferences_item_update_font), (preferences_item_create_font),
(preferences_item_update_smooth_font),
(preferences_item_create_smooth_font),
(nautilus_preferences_item_new),
(enum_radio_group_changed_callback),
(boolean_button_toggled_callback), (font_item_changed_callback),
(editable_string_changed_callback),
(editable_integer_changed_callback),
(constrained_integer_changed_callback),
(nautilus_preferences_item_update_displayed_value),
(preferences_item_update_editable_integer_settings_at_idle),
(nautilus_preferences_item_get_control_showing),
(nautilus_preferences_item_set_constrained_integer_paramaters),
(nautilus_preferences_item_child_is_caption),
(nautilus_preferences_item_get_caption_title_label_width),
(nautilus_preferences_item_set_caption_spacing):
* libnautilus-extensions/nautilus-preferences-item.h:
Add a new CONSTRAINED INTEGER item type. Add support for aligning
captions.
Dont translate font names.
* libnautilus-extensions/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_group),
(nautilus_preferences_pane_add_item_to_nth_group),
(nautilus_preferences_pane_get_num_visible_groups),
(nautilus_preferences_pane_get_num_groups),
(nautilus_preferences_pane_find_group):
* libnautilus-extensions/nautilus-preferences-pane.h:
Add a function for finding a named group.
* libnautilus-extensions/nautilus-scalable-font.c:
(nautilus_scalable_font_get_default_font),
(nautilus_scalable_font_get_default_bold_font):
Dont peek preferences for the default fonts. These are now
handled in nautilus-global-preferences.
* libnautilus-extensions/nautilus-smooth-text-layout.c:
(smooth_text_layout_line_list_new),
(smooth_text_layout_line_list_new_wrapped),
(nautilus_smooth_text_layout_new),
(nautilus_smooth_text_layout_set_font_size):
Use signed integers for font sizes.
* libnautilus-extensions/nautilus-string-picker.c:
(nautilus_string_picker_initialize),
(nautilus_string_picker_set_string_list):
Update for Caption superclass changes. Dont make singleton
choices insensitive.
* libnautilus-extensions/nautilus-text-caption.c:
(nautilus_text_caption_initialize):
* libnautilus-extensions/nautilus-text-caption.h:
Update for Caption superclass changes. Fix errors in header comments.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize), (fm_directory_view_destroy):
* src/file-manager/fm-directory-view.h:
Remove knowledge of font stuff. The fonts for icon and list view
are now handled separately so each subclass will have to do its
own preferences listening.
* src/file-manager/fm-icon-view.c: (set_sort_criterion_by_id),
(font_changed_callback), (smooth_font_changed_callback),
(standard_font_size_changed_callback),
(fm_icon_view_initialize_class), (fm_icon_view_initialize),
(fm_icon_view_update_icon_container_font_size_table),
(fm_icon_view_update_icon_container_smooth_font),
(create_icon_container):
Keep track of icon view font changes. Use deltas to compute the
font sizes instead of hard coded point sizes.
* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
(fm_list_view_initialize), (fm_list_view_update_font),
(font_or_font_size_changed_callback),
(fm_list_view_image_display_policy_changed):
Keep track of list view font changes. Use deltas to compute the
font sizes instead of hard coded point sizes.
* src/file-manager/nautilus-indexing-info.c:
(last_index_time_and_reindex_button_dialog_new),
(index_progress_dialog_new):
Dont use smooth labels mixed in with regular gtk labels.
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(smooth_font_changed_callback), (nautilus_sidebar_tabs_initialize),
(nautilus_sidebar_tabs_destroy):
Add macros and FIXME for hard coded font size. NULL out the tab_font
when its unreffed, otherwise all hell breaks lose when user level
changes. Update for default font changes.
* src/nautilus-sidebar-title.c: (smooth_font_changed_callback),
(nautilus_sidebar_title_initialize),
(nautilus_sidebar_title_destroy), (update_font):
Keep track of smooth font changes. Update for default font changes.
* test/test-nautilus-font-manager.c: (font_iterator_callback):
* test/test-nautilus-font-picker.c: (update_font),
(print_selected_font_callback), (main):
* test/test-nautilus-label-simple.c: (use_system_font_callback),
(use_system_font_bold_callback), (main):
Update for font picker and font manager changes.
2001-03-28 10:10:29 +00:00
|
|
|
/* List View */
|
2010-07-23 08:58:56 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_LIST_VIEW_DEFAULT_ZOOM_LEVEL "default-zoom-level"
|
|
|
|
#define NAUTILUS_PREFERENCES_LIST_VIEW_DEFAULT_VISIBLE_COLUMNS "default-visible-columns"
|
|
|
|
#define NAUTILUS_PREFERENCES_LIST_VIEW_DEFAULT_COLUMN_ORDER "default-column-order"
|
2013-02-11 23:58:09 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_LIST_VIEW_USE_TREE "use-tree-view"
|
Add preference for filename fonts. Not wired up to anything yet.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui):
* libnautilus-extensions/nautilus-global-preferences.h:
Add preference for filename fonts. Not wired up to anything yet.
* nautilus-widgets/nautilus-preferences-item.c,
(preferences_item_construct),
(preferences_item_create_font_family),
(enum_radio_group_changed_callback),
(boolean_button_toggled_callback), (font_family_changed_callback):
* nautilus-widgets/nautilus-preferences-item.h:
Add UI support for choosing a font family via preferences.
* nautilus-widgets/nautilus-string-picker.c:
(nautilus_string_picker_initialize),
(nautilus_string_picker_destroy),
(nautilus_string_picker_set_string_list),
(nautilus_string_picker_get_text),
(nautilus_string_picker_set_text):
* nautilus-widgets/nautilus-string-picker.h:
Add methods to set/get the current text. Keep track of the string
list ourselves so that we dont have to peek/poke into internal
stuff in the gtkcombo.
2000-05-29 11:45:14 +00:00
|
|
|
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
enum
|
|
|
|
{
|
2000-04-18 14:59:26 +00:00
|
|
|
NAUTILUS_CLICK_POLICY_SINGLE,
|
|
|
|
NAUTILUS_CLICK_POLICY_DOUBLE
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
};
|
|
|
|
|
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 4427 (Should not execute text files by default).
Now it asks whether to run or display executable text files.
Advanced users can set a new preference.
* libnautilus-extensions/nautilus-stock-dialogs.h:
* libnautilus-extensions/nautilus-stock-dialogs.c:
(create_message_box): New bottleneck function, contains former
guts of show_message_box but doesn't call gtk_widget_show.
(show_message_box): Now just a simple wrapper for
calling create_message_box and showing the result.
(nautilus_show_info_dialog), (nautilus_show_warning_dialog),
(nautilus_show_error_dialog), (nautilus_show_yes_no_dialog),
(nautilus_show_error_dialog_with_details):
Renamed to add verb "show" to names.
(nautilus_run_simple_dialog): Renamed to add verb "run" to name.
(nautilus_create_question_dialog): New public function, does
not show the dialog yet so caller can add more buttons or
whatever before showing.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_install_descriptions),
(global_preferences_install_defaults),
(global_preferences_install_visibility),
(global_preferences_create_dialog): Add new preference for
what to do when an executable text file is activated. It
defaults to "Ask" and is visible only at Advanced level.
* libnautilus-extensions/nautilus-file-private.h:
* libnautilus-extensions/nautilus-file.h: Moved
nautilus_file_contains_text into public header.
* src/file-manager/fm-directory-view.c:
(get_executable_text_file_action): New function, uses preference
and dialog (if necessary) to determine how to handle activating
an executable text file.
(activate_callback): Now handles executable text files specially
by using get_executable_text_file_action. Restructured the control
flow a little.
* components/music/nautilus-music-view.c: (set_album_cover),
(play_current_file), (nautilus_music_view_update):
* components/rpmview/nautilus-rpm-view-install.c:
(nautilus_rpm_view_install_done):
* components/services/summary/nautilus-view/nautilus-summary-dialogs.c:
(nautilus_summary_login_failure_dialog),
(generate_error_dialog):
* components/text/nautilus-text-view.c: (file_read_callback):
* libnautilus-extensions/nautilus-file-operations.c:
(confirm_empty_trash),
(handle_transfer_vfs_error), (handle_transfer_overwrite),
(nautilus_file_operations_copy_move),
(handle_new_folder_vfs_error),
(nautilus_file_operations_move_to_trash):
* libnautilus-extensions/nautilus-icon-dnd.c:
(confirm_switch_to_manual_layout):
* libnautilus-extensions/nautilus-program-chooser.c:
(nautilus_program_chooser_show_no_choices_message):
* libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application):
* libnautilus-extensions/nautilus-volume-monitor.c:
(display_mount_status):
* src/file-manager/fm-desktop-icon-view.c:
(icon_view_create_nautilus_links):
* src/file-manager/fm-directory-view.c:
(fm_directory_view_confirm_multiple_windows),
(real_file_limit_reached), (fm_directory_view_confirm_deletion),
(confirm_delete_from_trash), (report_broken_symbolic_link),
* src/file-manager/fm-error-reporting.c:
(fm_report_error_renaming_file), (fm_report_error_setting_group),
(fm_report_error_setting_owner),
(fm_report_error_setting_permissions):
* src/file-manager/fm-properties-window.c: (set_custom_image):
* src/file-manager/fm-search-list-view.c: (load_location_callback),
(load_error_callback), (display_indexed_search_problems_dialog),
(real_file_limit_reached):
* src/file-manager/nautilus-indexing-info.c:
(update_file_index_callback),
(show_search_service_not_available_dialog):
* src/nautilus-application.c: (check_required_directories),
(nautilus_application_startup):
* src/nautilus-location-bar.c: (drag_data_received_callback):
* src/nautilus-property-browser.c: (remove_pattern),
(remove_emblem), (emblem_image_file_changed),
(add_pattern_to_browser), (add_color_to_browser),
(emblem_dialog_clicked):
* src/nautilus-sidebar.c: (receive_dropped_uri_list):
* src/nautilus-theme-selector.c: (add_theme_to_icons),
(theme_select_row_callback):
* src/nautilus-window-manage-views.c: (handle_unreadable_location),
(report_content_view_failure_to_user_internal),
(report_sidebar_panel_failure_to_user),
(nautilus_window_end_location_change_callback):
* src/nautilus-window-menus.c: (forget_history_if_confirmed),
(show_bogus_bookmark_window): Updated for dialog API name changes.
* libnautilus-extensions/nautilus-file.c: (get_description):
Lucky Aaron gets missing mime description complaints now.
2001-01-29 19:29:56 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NAUTILUS_EXECUTABLE_TEXT_LAUNCH,
|
|
|
|
NAUTILUS_EXECUTABLE_TEXT_DISPLAY,
|
|
|
|
NAUTILUS_EXECUTABLE_TEXT_ASK
|
|
|
|
};
|
|
|
|
|
2000-08-01 21:21:00 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
NAUTILUS_SPEED_TRADEOFF_ALWAYS,
|
|
|
|
NAUTILUS_SPEED_TRADEOFF_LOCAL_ONLY,
|
|
|
|
NAUTILUS_SPEED_TRADEOFF_NEVER
|
|
|
|
} NautilusSpeedTradeoffValue;
|
|
|
|
|
2010-07-22 15:57:13 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS "show-directory-item-counts"
|
2012-08-16 00:10:39 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_FILE_THUMBNAILS "show-image-thumbnails"
|
|
|
|
#define NAUTILUS_PREFERENCES_FILE_THUMBNAIL_LIMIT "thumbnail-limit"
|
2000-08-01 21:21:00 +00:00
|
|
|
|
2000-06-21 02:25:54 +00:00
|
|
|
typedef enum
|
2000-06-16 20:34:21 +00:00
|
|
|
{
|
2000-06-21 02:25:54 +00:00
|
|
|
NAUTILUS_COMPLEX_SEARCH_BAR,
|
|
|
|
NAUTILUS_SIMPLE_SEARCH_BAR
|
|
|
|
} NautilusSearchBarMode;
|
2000-06-16 20:34:21 +00:00
|
|
|
|
2010-07-23 09:05:40 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_FONT "font"
|
2010-07-22 20:29:50 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_HOME_VISIBLE "home-icon-visible"
|
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_HOME_NAME "home-icon-name"
|
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_TRASH_VISIBLE "trash-icon-visible"
|
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_TRASH_NAME "trash-icon-name"
|
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_VOLUMES_VISIBLE "volumes-visible"
|
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_NETWORK_VISIBLE "network-icon-visible"
|
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_NETWORK_NAME "network-icon-name"
|
2010-10-13 15:57:05 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_DESKTOP_BACKGROUND_FADE "background-fade"
|
Added new files.
2003-05-15 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/Makefile.am:
Added new files.
* libnautilus-private/apps_nautilus_preferences.schemas.in:
* libnautilus-private/nautilus-global-preferences.[ch]:
New prefs for home and trash links.
* libnautilus-private/nautilus-desktop-directory.[ch]:
New files. Implements the NautilusDesktop object for the
virtual x-nautilus-desktop: uri. The directory merges the contents
of the directory with the real desktop directory.
* libnautilus-private/nautilus-desktop-directory-file.[ch]:
New files. Implements the Nautilusfile corresponding to
NautilusDestkopDirectory.
* libnautilus-private/nautilus-desktop-icon-file.[ch]:
New files.
Implement NautilusFile for a virtual file in a NautilusDesktopDirectory.
Gets all the actual file data from a NautilusDesktopLink.
* libnautilus-private/nautilus-desktop-link-monitor.[ch]:
New files.
Keep track of home and trash visibility prefs and mounted volumes and
create/destroy corresponding NautilusDesktopLink object.
* libnautilus-private/nautilus-desktop-link.[ch]:
New files.
Keeps track of all the real information in a desktop icon link.
These are home, trash and volume links at the moment.
* libnautilus-private/nautilus-directory-async.c:
Indentation correction.
* libnautilus-private/nautilus-directory.c:
(nautilus_directory_new):
Create NautilusDesktopDirectory objects for x-nautilus-desktop: uris
* libnautilus-private/nautilus-dnd.c: (nautilus_drag_items_local):
Handle NULL GnomeVFSURIs.
(nautilus_drag_items_on_desktop): New function to check if items
are on the desktop.
(nautilus_drag_default_drop_action_for_icons):
Special case desktop uris.
(nautilus_drag_selection_includes_special_link):
Convert from old-style special links to current.
* libnautilus-private/nautilus-dnd.h:
New function nautilus_drag_items_on_desktop.
* libnautilus-private/nautilus-file-operations.c:
(is_special_link), (nautilus_file_operations_copy_move):
Convert from old-style special links to current.
(nautilus_file_operations_delete):
Special case desktop links
* libnautilus-private/nautilus-file-utilities.[ch]:
(nautilus_get_desktop_directory):
(nautilus_get_gmc_desktop_directory):
Change desktop dir to ~/Desktop
(nautilus_get_desktop_directory_uri):
New function to return desktop dir as a uri.
* libnautilus-private/nautilus-file.c:
(nautilus_file_new_from_relative_uri),
(nautilus_file_get_internal):
Handle creation of desktop icon files.
(nautilus_file_can_rename), (rename_guts),
(nautilus_file_get_drop_target_uri):
Update for new special links.
(nautilus_file_is_in_desktop):
Update for new desktop dir.
(nautilus_file_get_uri):
Fix uris for self owned files. This changed due to
the new canonicalization rules for foo:
* libnautilus-private/nautilus-icon-dnd.c:
(nautilus_icon_container_selection_items_local),
(handle_nonlocal_move):
Handle desktop uri.
* src/Nautilus_shell.server.in:
icon view handles x-nautilus-desktop: uris
* src/nautilus-application.c: (finish_startup):
Initialize the desktop link monitor
* src/nautilus-desktop-window.c:
(nautilus_desktop_window_update_directory):
Show x-nautilus-desktop:
* src/file-manager/fm-desktop-icon-view.c:
(fm_desktop_icon_view_finalize), (fm_desktop_icon_view_init),
(volume_ops_callback), (trash_link_is_selection),
(volume_link_is_selection), (volume_link_device_type),
(real_supports_zooming):
* src/file-manager/fm-directory-view.c:
Remove lots of old support for desktop icon.
Reimplement some of it with the new desktop icon support.
* src/file-manager/fm-directory-view.h:
New function fm_directory_view_get_backing_uri
* src/file-manager/fm-icon-container.c:
(fm_icon_container_get_icon_text):
Don't show extra text for desktop icons
(get_sort_category): Update for new desktop icons
* src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list):
Use get_backing_uri()
* src/file-manager/fm-properties-window.c: (get_target_file):
Use the new desktop icon support.
* libnautilus-private/nautilus-icon-container.c:
(lay_down_icons_tblr):
Don't loop forever if icon doesn't in the height of the container.
2003-05-15 17:19:27 +00:00
|
|
|
|
2010-10-05 20:01:02 +00:00
|
|
|
/* bulk rename utility */
|
|
|
|
#define NAUTILUS_PREFERENCES_BULK_RENAME_TOOL "bulk-rename-tool"
|
|
|
|
|
2009-07-28 15:27:57 +00:00
|
|
|
/* Lockdown */
|
2010-08-05 14:12:39 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_LOCKDOWN_COMMAND_LINE "disable-command-line"
|
2009-07-28 15:27:57 +00:00
|
|
|
|
2010-10-19 13:47:50 +00:00
|
|
|
/* Desktop background */
|
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_DESKTOP "show-desktop-icons"
|
|
|
|
|
2013-02-13 16:12:48 +00:00
|
|
|
/* Recent files */
|
|
|
|
#define NAUTILUS_PREFERENCES_RECENT_FILES_ENABLED "remember-recent-files"
|
|
|
|
|
2015-02-16 16:58:47 +00:00
|
|
|
/* Move to trash shorcut changed dialog */
|
2015-02-16 18:55:52 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_MOVE_TO_TRASH_SHORTCUT_CHANGED_DIALOG "show-move-to-trash-shortcut-changed-dialog"
|
2015-02-16 16:58:47 +00:00
|
|
|
|
2015-07-20 15:56:30 +00:00
|
|
|
/* Switch to list view while searching */
|
|
|
|
#define NAUTILUS_PREFERENCES_LIST_VIEW_ON_SEARCH "list-view-on-search"
|
|
|
|
|
2015-11-25 22:21:22 +00:00
|
|
|
/* Context menu options */
|
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_DELETE_PERMANENTLY "show-delete-permanently"
|
2015-12-22 12:58:43 +00:00
|
|
|
#define NAUTILUS_PREFERENCES_SHOW_CREATE_LINK "show-create-link"
|
2015-11-25 22:21:22 +00:00
|
|
|
|
Port from EelLabel to GtkLabel.
* components/hardware/nautilus-hardware-view.c:
(update_uptime_text), (setup_overview_form):
* components/music/nautilus-music-view.c:
* src/file-manager/nautilus-indexing-info.c:
(update_progress_display):
* src/nautilus-property-browser.c:
(nautilus_property_browser_init), (labeled_image_configure),
(labeled_image_new), (make_category),
(property_browser_category_button_new),
(nautilus_property_browser_update_contents):
* test/test.h:
* src/nautilus-shell.c:
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
Port from EelLabel to GtkLabel.
* components/news/nautilus-news.c: (do_destroy),
(draw_rss_logo_image), (draw_rss_title), (draw_rss_items),
(nautilus_news_set_title), (free_channel),
(empty_message_size_allocate), (set_up_main_widgets),
(make_news_view):
* libnautilus-private/nautilus-icon-private.h:
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(nautilus_sidebar_tabs_init), (nautilus_sidebar_tabs_destroy),
(draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width),
(nautilus_sidebar_tabs_add_view):
Port to Pango text instead of Eel text.
* libnautilus-private/nautilus-customization-data.c:
(add_reset_text):
* libnautilus-private/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embed_text):
* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
(nautilus_about_draw_info), (nautilus_about_update_authors):
Disable Eel text and ifdef with GNOME2_CONVERSION_COMPLETE.
* libnautilus-private/nautilus-global-preferences.h:
* libnautilus-private/nautilus-global-preferences.c:
Turn off font-related preferences. Maybe delete later or
convert for Pango fonts.
* libnautilus-private/nautilus-icon-canvas-item.h:
* libnautilus-private/nautilus-icon-container.h:
Remove eel-scalable-font.h includes.
* src/nautilus-component-adapter-factory.c:
(nautilus_component_adapter_factory_create_adapter):
Disable the adapter because it was causing problems.
2002-01-03 00:11:12 +00:00
|
|
|
void nautilus_global_preferences_init (void);
|
2004-08-23 17:11:15 +00:00
|
|
|
char *nautilus_global_preferences_get_default_folder_viewer_preference_as_iid (void);
|
2010-07-21 13:11:50 +00:00
|
|
|
|
2013-07-12 16:43:57 +00:00
|
|
|
extern GSettings *nautilus_preferences;
|
|
|
|
extern GSettings *nautilus_icon_view_preferences;
|
|
|
|
extern GSettings *nautilus_list_view_preferences;
|
|
|
|
extern GSettings *nautilus_desktop_preferences;
|
|
|
|
extern GSettings *nautilus_window_state;
|
|
|
|
extern GSettings *gtk_filechooser_preferences;
|
|
|
|
extern GSettings *gnome_lockdown_preferences;
|
|
|
|
extern GSettings *gnome_background_preferences;
|
|
|
|
extern GSettings *gnome_interface_preferences;
|
|
|
|
extern GSettings *gnome_privacy_preferences;
|
2010-07-21 13:11:50 +00:00
|
|
|
|
2001-10-24 17:23:35 +00:00
|
|
|
G_END_DECLS
|
src/Makefile.am Moved prefs things to nautilus-widgets. Use
* src/Makefile.am
Moved prefs things to nautilus-widgets.
Use alphabetization technology on the source list.
* src/nautilus-global-preferences.c,
src/nautilus-global-preferences.h:
New files that to deal with preferences that are
global to nautilus.
* src/nautilus-window-menus.c:
Use the new preferences dialog.
* src/ntl-window-state.c:
Go to a different home directory based on the user level.
Commented off until andy makes a nice default home directory
for novice users.
* src/nautilus-prefs-box.c
src/nautilus-prefs-box.h,
src/nautilus-prefs-dialog.c,
src/nautilus-prefs-dialog.h,
src/nautilus-prefs-group-check.c,
src/nautilus-prefs-group-check.h,
src/nautilus-prefs-group-radio.c,
src/nautilus-prefs-group-radio.h,
src/nautilus-prefs-group.c,
src/nautilus-prefs-group.h,
src/nautilus-prefs-pane.c,
src/nautilus-prefs-pane.h,
src/ntl-prefs.c,
src/ntl-prefs.h:
Moved prefs widegtry things to nautilus-widgets.
2000-03-11 00:18:22 +00:00
|
|
|
|
Port from EelLabel to GtkLabel.
* components/hardware/nautilus-hardware-view.c:
(update_uptime_text), (setup_overview_form):
* components/music/nautilus-music-view.c:
* src/file-manager/nautilus-indexing-info.c:
(update_progress_display):
* src/nautilus-property-browser.c:
(nautilus_property_browser_init), (labeled_image_configure),
(labeled_image_new), (make_category),
(property_browser_category_button_new),
(nautilus_property_browser_update_contents):
* test/test.h:
* src/nautilus-shell.c:
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
Port from EelLabel to GtkLabel.
* components/news/nautilus-news.c: (do_destroy),
(draw_rss_logo_image), (draw_rss_title), (draw_rss_items),
(nautilus_news_set_title), (free_channel),
(empty_message_size_allocate), (set_up_main_widgets),
(make_news_view):
* libnautilus-private/nautilus-icon-private.h:
* src/nautilus-sidebar-tabs.c:
(nautilus_sidebar_tabs_load_theme_data),
(nautilus_sidebar_tabs_init), (nautilus_sidebar_tabs_destroy),
(draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width),
(nautilus_sidebar_tabs_add_view):
Port to Pango text instead of Eel text.
* libnautilus-private/nautilus-customization-data.c:
(add_reset_text):
* libnautilus-private/nautilus-icon-factory.c:
(embedded_text_font_changed_callback), (embed_text):
* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
(nautilus_about_draw_info), (nautilus_about_update_authors):
Disable Eel text and ifdef with GNOME2_CONVERSION_COMPLETE.
* libnautilus-private/nautilus-global-preferences.h:
* libnautilus-private/nautilus-global-preferences.c:
Turn off font-related preferences. Maybe delete later or
convert for Pango fonts.
* libnautilus-private/nautilus-icon-canvas-item.h:
* libnautilus-private/nautilus-icon-container.h:
Remove eel-scalable-font.h includes.
* src/nautilus-component-adapter-factory.c:
(nautilus_component_adapter_factory_create_adapter):
Disable the adapter because it was causing problems.
2002-01-03 00:11:12 +00:00
|
|
|
#endif /* NAUTILUS_GLOBAL_PREFERENCES_H */
|