Commit ab5fb6c7 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson
Browse files

Remove preferences calback in ::finalize.

2002-01-08  Anders Carlsson  <andersca@gnu.org>

	* src/nautilus-zoom-control.c (nautilus_zoom_control_finalize): Remove
	preferences calback in ::finalize.
	(nautilus_zoom_control_unload_images): Set image pointers to NULL after
	unloading images.

	* src/nautilus-window-menus.c: Remove some userlevel #defines.

	* src/nautilus-switchable-search-bar.c
	(nautilus_switchable_search_bar_finalize): Remove the preferences callback
	in ::finalize instead of ::destroy.

	* src/nautilus-switchable-navigation-bar.c: Create the search bar lazily.
	Creating the search bar came up high on the profile when creating new windows,
	and doing it lazily helps, especially when we don't have medusa support yet.
	(nautilus_switchable_navigation_bar_finalize): Free details in ::finalize.

	* src/nautilus-simple-search-bar.c (nautilus_simple_search_bar_finalize):
	Free details in ::finalize.
	(nautilus_simple_search_bar_destroy): Disable the undo stuff. Perhaps we could
	call connect to "destroy" in nautilus_undo_set_up_nautilus_entry_for_undo
	and call nautilus_undo_tear_down_nautilus_entry_for_undo there instead.

	* src/nautilus-sidebar.c (nautilus_sidebar_init): Ref and sink the title tab.
	(nautilus_sidebar_finalize): Move things from ::finalize to ::destroy.

	* src/nautilus-preferences-dialog.c
	(preferences_dialog_populate_themes_group): The image chooser isn't
	broken anymore so we can enable it now.

	* src/nautilus-main.c (main): Call gtk_main instead of bonobo_main
	since bonobo_main is for non-gui apps and won't be affected by
	gtk_main_quit.

	* src/nautilus-location-bar.c: Destroy things in ::finalize
	instead of in ::destroy.

	* src/nautilus-profiler.c: Port to GtkTextView.

	* src/nautilus-application.c (nautilus_application_new):
	Call bonobo_generic_factory_construct_noreg so that we set
	the IID.
	(nautilus_application_destroy): Unref the undo manager
	in ::destroy instead.

	* libnautilus-private/nautilus-icon-container.c:
	Use g_list_sort_with_data when sorting icons so we can get rid
	of the hack_icon_container hack.

	* libnautilus-private/nautilus-entry.c: Free details struct
	in ::finalize instead of in ::destroy

	* libnautilus-private/nautilus-icon-dnd.c
	(confirm_switch_to_manual_layout): Compare with GTK_RESPONSE_YES.

	* libnautilus-private/nautilus-file-operations.c
	(confirm_empty_trash): Compare with GTK_RESPONSE_YES.

So now you know what I've been doing during christmas...
parent 81054a09
2002-01-08 Anders Carlsson <andersca@gnu.org>
* src/nautilus-zoom-control.c (nautilus_zoom_control_finalize): Remove
preferences calback in ::finalize.
(nautilus_zoom_control_unload_images): Set image pointers to NULL after
unloading images.
* src/nautilus-window-menus.c: Remove some userlevel #defines.
* src/nautilus-switchable-search-bar.c
(nautilus_switchable_search_bar_finalize): Remove the preferences callback
in ::finalize instead of ::destroy.
* src/nautilus-switchable-navigation-bar.c: Create the search bar lazily.
Creating the search bar came up high on the profile when creating new windows,
and doing it lazily helps, especially when we don't have medusa support yet.
(nautilus_switchable_navigation_bar_finalize): Free details in ::finalize.
* src/nautilus-simple-search-bar.c (nautilus_simple_search_bar_finalize):
Free details in ::finalize.
(nautilus_simple_search_bar_destroy): Disable the undo stuff. Perhaps we could
call connect to "destroy" in nautilus_undo_set_up_nautilus_entry_for_undo
and call nautilus_undo_tear_down_nautilus_entry_for_undo there instead.
* src/nautilus-sidebar.c (nautilus_sidebar_init): Ref and sink the title tab.
(nautilus_sidebar_finalize): Move things from ::finalize to ::destroy.
* src/nautilus-preferences-dialog.c
(preferences_dialog_populate_themes_group): The image chooser isn't
broken anymore so we can enable it now.
* src/nautilus-main.c (main): Call gtk_main instead of bonobo_main
since bonobo_main is for non-gui apps and won't be affected by
gtk_main_quit.
* src/nautilus-location-bar.c: Destroy things in ::finalize
instead of in ::destroy.
* src/nautilus-profiler.c: Port to GtkTextView.
* src/nautilus-application.c (nautilus_application_new):
Call bonobo_generic_factory_construct_noreg so that we set
the IID.
(nautilus_application_destroy): Unref the undo manager
in ::destroy instead.
* libnautilus-private/nautilus-icon-container.c:
Use g_list_sort_with_data when sorting icons so we can get rid
of the hack_icon_container hack.
* libnautilus-private/nautilus-entry.c: Free details struct
in ::finalize instead of in ::destroy
* libnautilus-private/nautilus-icon-dnd.c
(confirm_switch_to_manual_layout): Compare with GTK_RESPONSE_YES.
* libnautilus-private/nautilus-file-operations.c
(confirm_empty_trash): Compare with GTK_RESPONSE_YES.
2002-01-07 Darin Adler <darin@bentspoon.com> 2002-01-07 Darin Adler <darin@bentspoon.com>
* libnautilus-private/nautilus-desktop-file-loader.c: * libnautilus-private/nautilus-desktop-file-loader.c:
......
...@@ -107,8 +107,8 @@ nautilus_entry_new_with_max_length (guint16 max) ...@@ -107,8 +107,8 @@ nautilus_entry_new_with_max_length (guint16 max)
return widget; return widget;
} }
static void static void
nautilus_entry_destroy (GtkObject *object) nautilus_entry_finalize (GObject *object)
{ {
NautilusEntry *entry; NautilusEntry *entry;
...@@ -120,7 +120,7 @@ nautilus_entry_destroy (GtkObject *object) ...@@ -120,7 +120,7 @@ nautilus_entry_destroy (GtkObject *object)
g_free (entry->details); g_free (entry->details);
EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object)); EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
} }
static void static void
...@@ -439,11 +439,14 @@ nautilus_entry_class_init (NautilusEntryClass *class) ...@@ -439,11 +439,14 @@ nautilus_entry_class_init (NautilusEntryClass *class)
{ {
GtkWidgetClass *widget_class; GtkWidgetClass *widget_class;
GtkObjectClass *object_class; GtkObjectClass *object_class;
GObjectClass *gobject_class;
#if GNOME2_CONVERSION_COMPLETE #if GNOME2_CONVERSION_COMPLETE
GtkEditableClass *editable_class; GtkEditableClass *editable_class;
#endif #endif
widget_class = GTK_WIDGET_CLASS (class); widget_class = GTK_WIDGET_CLASS (class);
gobject_class = G_OBJECT_CLASS (class);
object_class = GTK_OBJECT_CLASS (class); object_class = GTK_OBJECT_CLASS (class);
#if GNOME2_CONVERSION_COMPLETE #if GNOME2_CONVERSION_COMPLETE
editable_class = GTK_EDITABLE_CLASS (class); editable_class = GTK_EDITABLE_CLASS (class);
...@@ -455,7 +458,7 @@ nautilus_entry_class_init (NautilusEntryClass *class) ...@@ -455,7 +458,7 @@ nautilus_entry_class_init (NautilusEntryClass *class)
widget_class->motion_notify_event = nautilus_entry_motion_notify; widget_class->motion_notify_event = nautilus_entry_motion_notify;
widget_class->selection_clear_event = nautilus_entry_selection_clear; widget_class->selection_clear_event = nautilus_entry_selection_clear;
object_class->destroy = nautilus_entry_destroy; gobject_class->finalize = nautilus_entry_finalize;
#if GNOME2_CONVERSION_COMPLETE #if GNOME2_CONVERSION_COMPLETE
editable_class->insert_text = nautilus_entry_insert_text; editable_class->insert_text = nautilus_entry_insert_text;
......
...@@ -2297,7 +2297,7 @@ confirm_empty_trash (GtkWidget *parent_view) ...@@ -2297,7 +2297,7 @@ confirm_empty_trash (GtkWidget *parent_view)
gtk_object_destroy (GTK_OBJECT (dialog)); gtk_object_destroy (GTK_OBJECT (dialog));
return response == GTK_RESPONSE_OK; return response == GTK_RESPONSE_YES;
} }
void void
......
...@@ -693,10 +693,8 @@ nautilus_icon_container_update_scroll_region (NautilusIconContainer *container) ...@@ -693,10 +693,8 @@ nautilus_icon_container_update_scroll_region (NautilusIconContainer *container)
eel_gtk_adjustment_clamp_value (vadj); eel_gtk_adjustment_clamp_value (vadj);
} }
static NautilusIconContainer *sort_hack_container;
static int static int
compare_icons (gconstpointer a, gconstpointer b) compare_icons (gconstpointer a, gconstpointer b, gpointer icon_container)
{ {
const NautilusIcon *icon_a, *icon_b; const NautilusIcon *icon_a, *icon_b;
int result; int result;
...@@ -705,7 +703,7 @@ compare_icons (gconstpointer a, gconstpointer b) ...@@ -705,7 +703,7 @@ compare_icons (gconstpointer a, gconstpointer b)
icon_b = b; icon_b = b;
result = 0; result = 0;
g_signal_emit (sort_hack_container, g_signal_emit (icon_container,
signals[COMPARE_ICONS], 0, signals[COMPARE_ICONS], 0,
icon_a->data, icon_a->data,
icon_b->data, icon_b->data,
...@@ -717,12 +715,11 @@ static void ...@@ -717,12 +715,11 @@ static void
sort_icons (NautilusIconContainer *container, sort_icons (NautilusIconContainer *container,
GList **icons) GList **icons)
{ {
sort_hack_container = container; *icons = g_list_sort_with_data (*icons, compare_icons, container);
*icons = g_list_sort (*icons, compare_icons);
} }
static int static int
compare_icons_by_name (gconstpointer a, gconstpointer b) compare_icons_by_name (gconstpointer a, gconstpointer b, gpointer icon_container)
{ {
const NautilusIcon *icon_a, *icon_b; const NautilusIcon *icon_a, *icon_b;
int result; int result;
...@@ -731,7 +728,7 @@ compare_icons_by_name (gconstpointer a, gconstpointer b) ...@@ -731,7 +728,7 @@ compare_icons_by_name (gconstpointer a, gconstpointer b)
icon_b = b; icon_b = b;
result = 0; result = 0;
g_signal_emit (sort_hack_container, g_signal_emit (icon_container,
signals[COMPARE_ICONS_BY_NAME], 0, signals[COMPARE_ICONS_BY_NAME], 0,
icon_a->data, icon_a->data,
icon_b->data, icon_b->data,
...@@ -743,8 +740,7 @@ static void ...@@ -743,8 +740,7 @@ static void
sort_icons_by_name (NautilusIconContainer *container, sort_icons_by_name (NautilusIconContainer *container,
GList **icons) GList **icons)
{ {
sort_hack_container = container; *icons = g_list_sort_with_data (*icons, compare_icons_by_name, container);
*icons = g_list_sort (*icons, compare_icons_by_name);
} }
......
...@@ -796,7 +796,7 @@ confirm_switch_to_manual_layout (NautilusIconContainer *container) ...@@ -796,7 +796,7 @@ confirm_switch_to_manual_layout (NautilusIconContainer *container)
response = gtk_dialog_run (dialog); response = gtk_dialog_run (dialog);
gtk_object_destroy (GTK_OBJECT (dialog)); gtk_object_destroy (GTK_OBJECT (dialog));
return response == GTK_RESPONSE_OK; return response == GTK_RESPONSE_YES;
} }
static void static void
......
...@@ -161,11 +161,19 @@ nautilus_application_init (NautilusApplication *application) ...@@ -161,11 +161,19 @@ nautilus_application_init (NautilusApplication *application)
NautilusApplication * NautilusApplication *
nautilus_application_new (void) nautilus_application_new (void)
{ {
return NAUTILUS_APPLICATION (g_object_new (nautilus_application_get_type (), NULL)); NautilusApplication *application;
application = g_object_new (NAUTILUS_TYPE_APPLICATION, NULL);
bonobo_generic_factory_construct_noreg (BONOBO_GENERIC_FACTORY (application),
FACTORY_IID,
NULL);
return application;
} }
static void static void
nautilus_application_finalize (GObject *object) nautilus_application_destroy (BonoboObject *object)
{ {
NautilusApplication *application; NautilusApplication *application;
...@@ -175,7 +183,7 @@ nautilus_application_finalize (GObject *object) ...@@ -175,7 +183,7 @@ nautilus_application_finalize (GObject *object)
bonobo_object_unref (BONOBO_OBJECT (application->undo_manager)); bonobo_object_unref (BONOBO_OBJECT (application->undo_manager));
EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object)); EEL_CALL_PARENT (BONOBO_OBJECT_CLASS, destroy, (object));
} }
static gboolean static gboolean
...@@ -1042,7 +1050,7 @@ is_kdesktop_present (void) ...@@ -1042,7 +1050,7 @@ is_kdesktop_present (void)
static void static void
nautilus_application_class_init (NautilusApplicationClass *klass) nautilus_application_class_init (NautilusApplicationClass *klass)
{ {
G_OBJECT_CLASS (klass)->finalize = nautilus_application_finalize; BONOBO_OBJECT_CLASS (klass)->destroy = nautilus_application_destroy;
BONOBO_GENERIC_FACTORY_CLASS (klass)->epv.createObject = create_object; BONOBO_GENERIC_FACTORY_CLASS (klass)->epv.createObject = create_object;
} }
...@@ -105,6 +105,7 @@ static gboolean nautilus_sidebar_leave_event (GtkWidget *widget ...@@ -105,6 +105,7 @@ static gboolean nautilus_sidebar_leave_event (GtkWidget *widget
static gboolean nautilus_sidebar_motion_event (GtkWidget *widget, static gboolean nautilus_sidebar_motion_event (GtkWidget *widget,
GdkEventMotion *event); GdkEventMotion *event);
static void nautilus_sidebar_destroy (GtkObject *object); static void nautilus_sidebar_destroy (GtkObject *object);
static void nautilus_sidebar_finalize (GObject *object);
static void nautilus_sidebar_drag_data_received (GtkWidget *widget, static void nautilus_sidebar_drag_data_received (GtkWidget *widget,
GdkDragContext *context, GdkDragContext *context,
int x, int x,
...@@ -175,14 +176,18 @@ static void ...@@ -175,14 +176,18 @@ static void
nautilus_sidebar_class_init (GtkObjectClass *object_klass) nautilus_sidebar_class_init (GtkObjectClass *object_klass)
{ {
GtkWidgetClass *widget_class; GtkWidgetClass *widget_class;
GObjectClass *gobject_class;
NautilusSidebarClass *klass; NautilusSidebarClass *klass;
widget_class = GTK_WIDGET_CLASS (object_klass); widget_class = GTK_WIDGET_CLASS (object_klass);
klass = NAUTILUS_SIDEBAR_CLASS (object_klass); klass = NAUTILUS_SIDEBAR_CLASS (object_klass);
gobject_class = G_OBJECT_CLASS (object_klass);
gobject_class->finalize = nautilus_sidebar_finalize;
object_klass->destroy = nautilus_sidebar_destroy; object_klass->destroy = nautilus_sidebar_destroy;
widget_class->drag_data_received = nautilus_sidebar_drag_data_received; widget_class->drag_data_received = nautilus_sidebar_drag_data_received;
widget_class->motion_notify_event = nautilus_sidebar_motion_event; widget_class->motion_notify_event = nautilus_sidebar_motion_event;
widget_class->leave_notify_event = nautilus_sidebar_leave_event; widget_class->leave_notify_event = nautilus_sidebar_leave_event;
...@@ -265,6 +270,9 @@ nautilus_sidebar_init (GtkObject *object) ...@@ -265,6 +270,9 @@ nautilus_sidebar_init (GtkObject *object)
/* also, allocate the title tab */ /* also, allocate the title tab */
sidebar->details->title_tab = NAUTILUS_SIDEBAR_TABS (nautilus_sidebar_tabs_new ()); sidebar->details->title_tab = NAUTILUS_SIDEBAR_TABS (nautilus_sidebar_tabs_new ());
g_object_ref (sidebar->details->title_tab);
gtk_object_sink (GTK_OBJECT (sidebar->details->title_tab));
nautilus_sidebar_tabs_set_title_mode (sidebar->details->title_tab, TRUE); nautilus_sidebar_tabs_set_title_mode (sidebar->details->title_tab, TRUE);
gtk_widget_show (GTK_WIDGET (sidebar->details->sidebar_tabs)); gtk_widget_show (GTK_WIDGET (sidebar->details->sidebar_tabs));
...@@ -304,35 +312,47 @@ nautilus_sidebar_destroy (GtkObject *object) ...@@ -304,35 +312,47 @@ nautilus_sidebar_destroy (GtkObject *object)
sidebar = NAUTILUS_SIDEBAR (object); sidebar = NAUTILUS_SIDEBAR (object);
if (sidebar->details) { if (sidebar->details->notebook != NULL) {
g_object_unref (sidebar->details->notebook); g_object_unref (sidebar->details->notebook);
sidebar->details->notebook = NULL;
}
if (sidebar->details->title_tab != NULL) {
g_object_unref (sidebar->details->title_tab);
sidebar->details->title_tab = NULL;
}
EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object));
}
if (sidebar->details->file != NULL) { static void
gtk_signal_disconnect (GTK_OBJECT (sidebar->details->file), nautilus_sidebar_finalize (GObject *object)
sidebar->details->file_changed_connection); {
nautilus_file_monitor_remove (sidebar->details->file, sidebar); NautilusSidebar *sidebar;
nautilus_file_unref (sidebar->details->file);
} sidebar = NAUTILUS_SIDEBAR (object);
gtk_object_sink (GTK_OBJECT (sidebar->details->title_tab)); if (sidebar->details->file != NULL) {
gtk_signal_disconnect (GTK_OBJECT (sidebar->details->file),
g_free (sidebar->details->uri); sidebar->details->file_changed_connection);
g_free (sidebar->details->default_background_color); nautilus_file_monitor_remove (sidebar->details->file, sidebar);
g_free (sidebar->details->default_background_image); nautilus_file_unref (sidebar->details->file);
g_free (sidebar->details);
sidebar->details = NULL;
eel_preferences_remove_callback (NAUTILUS_PREFERENCES_THEME,
nautilus_sidebar_theme_changed,
sidebar);
eel_preferences_remove_callback (NAUTILUS_PREFERENCES_CONFIRM_TRASH,
nautilus_sidebar_confirm_trash_changed,
sidebar);
} }
g_free (sidebar->details->uri);
g_free (sidebar->details->default_background_color);
g_free (sidebar->details->default_background_image);
g_free (sidebar->details);
eel_preferences_remove_callback (NAUTILUS_PREFERENCES_THEME,
nautilus_sidebar_theme_changed,
sidebar);
EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object)); eel_preferences_remove_callback (NAUTILUS_PREFERENCES_CONFIRM_TRASH,
nautilus_sidebar_confirm_trash_changed,
sidebar);
EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
} }
/* callback to handle resetting the background */ /* callback to handle resetting the background */
......
...@@ -583,6 +583,18 @@ real_activate (NautilusNavigationBar *navigation_bar) ...@@ -583,6 +583,18 @@ real_activate (NautilusNavigationBar *navigation_bar)
nautilus_entry_select_all (bar->details->entry); nautilus_entry_select_all (bar->details->entry);
} }
static void
finalize (GObject *object)
{
NautilusLocationBar *bar;
bar = NAUTILUS_LOCATION_BAR (object);
g_free (bar->details);
EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
}
static void static void
destroy (GtkObject *object) destroy (GtkObject *object)
{ {
...@@ -593,17 +605,19 @@ destroy (GtkObject *object) ...@@ -593,17 +605,19 @@ destroy (GtkObject *object)
/* cancel the pending idle call, if any */ /* cancel the pending idle call, if any */
if (bar->details->idle_id != 0) { if (bar->details->idle_id != 0) {
gtk_idle_remove (bar->details->idle_id); gtk_idle_remove (bar->details->idle_id);
bar->details->idle_id = 0;
} }
if (bar->details->file_info_list) { if (bar->details->file_info_list) {
gnome_vfs_file_info_list_free (bar->details->file_info_list); gnome_vfs_file_info_list_free (bar->details->file_info_list);
bar->details->file_info_list = NULL;
} }
g_free (bar->details->current_directory); g_free (bar->details->current_directory);
bar->details->current_directory = NULL;
g_free (bar->details->last_location); g_free (bar->details->last_location);
g_free (bar->details); bar->details->last_location = NULL;
EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object)); EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object));
} }
...@@ -611,8 +625,12 @@ destroy (GtkObject *object) ...@@ -611,8 +625,12 @@ destroy (GtkObject *object)
static void static void
nautilus_location_bar_class_init (NautilusLocationBarClass *class) nautilus_location_bar_class_init (NautilusLocationBarClass *class)
{ {
GObjectClass *gobject_class;
GtkObjectClass *object_class; GtkObjectClass *object_class;
NautilusNavigationBarClass *navigation_bar_class; NautilusNavigationBarClass *navigation_bar_class;
gobject_class = G_OBJECT_CLASS (class);
gobject_class->finalize = finalize;
object_class = GTK_OBJECT_CLASS (class); object_class = GTK_OBJECT_CLASS (class);
object_class->destroy = destroy; object_class->destroy = destroy;
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <bonobo-activation/bonobo-activation.h> #include <bonobo-activation/bonobo-activation.h>
#include <bonobo/bonobo-main.h> #include <bonobo/bonobo-main.h>
#include <bonobo/bonobo-ui-main.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <eel/eel-debug.h> #include <eel/eel-debug.h>
#include <eel/eel-glib-extensions.h> #include <eel/eel-glib-extensions.h>
...@@ -196,11 +197,6 @@ main (int argc, char *argv[]) ...@@ -196,11 +197,6 @@ main (int argc, char *argv[])
popt_context = g_value_get_pointer (&context_as_value); popt_context = g_value_get_pointer (&context_as_value);
#if GNOME2_CONVERSION_COMPLETE
gnomelib_register_popt_table (bonobo_activation_popt_options,
bonobo_activation_get_popt_table_name ());
#endif
eel_setenv ("DISPLAY", DisplayString (GDK_DISPLAY ()), TRUE); eel_setenv ("DISPLAY", DisplayString (GDK_DISPLAY ()), TRUE);
/* Check for argument consistency. */ /* Check for argument consistency. */
...@@ -274,7 +270,7 @@ main (int argc, char *argv[]) ...@@ -274,7 +270,7 @@ main (int argc, char *argv[])
geometry, geometry,
args); args);
if (is_event_loop_needed ()) { if (is_event_loop_needed ()) {
bonobo_main (); gtk_main ();
} }
bonobo_object_unref (BONOBO_OBJECT (application)); bonobo_object_unref (BONOBO_OBJECT (application));
} }
...@@ -302,5 +298,5 @@ main (int argc, char *argv[]) ...@@ -302,5 +298,5 @@ main (int argc, char *argv[])
execvp (argv[0], argv_copy); execvp (argv[0], argv_copy);
} }
return bonobo_debug_shutdown (); return bonobo_ui_debug_shutdown ();
} }
...@@ -92,11 +92,6 @@ ...@@ -92,11 +92,6 @@
#define COMMAND_PATH_CLOSE_WINDOW "/commands/Close" #define COMMAND_PATH_CLOSE_WINDOW "/commands/Close"
#define SWITCH_TO_BEGINNER_VERB "Switch to Beginner Level"
#define SWITCH_TO_INTERMEDIATE_VERB "Switch to Intermediate Level"
#define SWITCH_TO_ADVANCED_VERB "Switch to Advanced Level"
#define USER_MANUAL_URI "help:nautilus-user-manual" #define USER_MANUAL_URI "help:nautilus-user-manual"
#define QUICK_REFERENCE_URI "help:nautilus-quick-reference" #define QUICK_REFERENCE_URI "help:nautilus-quick-reference"
#define RELEASE_NOTES_URI "help:nautilus-release-notes" #define RELEASE_NOTES_URI "help:nautilus-release-notes"
...@@ -119,11 +114,6 @@ static void schedule_refresh_bookmarks_menu (Naut ...@@ -119,11 +114,6 @@ static void schedule_refresh_bookmarks_menu (Naut
static void edit_bookmarks (NautilusWindow *window); static void edit_bookmarks (NautilusWindow *window);
static void add_bookmark_for_current_location (NautilusWindow *window); static void add_bookmark_for_current_location (NautilusWindow *window);
#define NAUTILUS_MENU_PATH_NOVICE_ITEM "/menu/Preferences/User Levels Placeholder/Switch to Beginner Level"
#define NAUTILUS_MENU_PATH_INTERMEDIATE_ITEM "/menu/Preferences/User Levels Placeholder/Switch to Intermediate Level"
#define NAUTILUS_MENU_PATH_EXPERT_ITEM "/menu/Preferences/User Levels Placeholder/Switch to Advanced Level"
#define NAUTILUS_MENU_PATH_USER_LEVEL_CUSTOMIZE "/menu/Preferences/User Level Customization"
/* Struct that stores all the info necessary to activate a bookmark. */ /* Struct that stores all the info necessary to activate a bookmark. */
typedef struct { typedef struct {
NautilusBookmark *bookmark; NautilusBookmark *bookmark;
......
...@@ -34,12 +34,15 @@ ...@@ -34,12 +34,15 @@
#include <glib.h> #include <glib.h>
#include <gtk/gtkbutton.h> #include <gtk/gtkbutton.h>
#include <gtk/gtkhbox.h> #include <gtk/gtkhbox.h>
#include <gtk/gtkscrolledwindow.h>
#include <gtk/gtksignal.h> #include <gtk/gtksignal.h>
#include <gtk/gtktext.h> #include <gtk/gtktextbuffer.h>
#include <gtk/gtktextview.h>
#include <gtk/gtkvbox.h> #include <gtk/gtkvbox.h>
#include <gtk/gtkvscrollbar.h> #include <gtk/gtkvscrollbar.h>
#include <gtk/gtkwindow.h> #include <gtk/gtkwindow.h>
#include <libgnome/gnome-i18n.h> #include <libgnome/gnome-i18n.h>
#include <libgnomevfs/gnome-vfs-utils.h>
#include <stdio.h> #include <stdio.h>