summaryrefslogtreecommitdiff
path: root/src/nautilus-window-private.h
blob: 32f2950819d2888c59603936536b646913373529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef NAUTILUS_WINDOW_PRIVATE_H
#define NAUTILUS_WINDOW_PRIVATE_H

#include "nautilus-window.h"
#include <libnautilus/libnautilus.h>
#include <libnautilus-extensions/nautilus-undo-manager.h>
#include <gtk/gtk.h>

typedef enum {
  CV_PROGRESS_INITIAL = 1,
  CV_PROGRESS_DONE,
  CV_PROGRESS_ERROR,
  VIEW_ERROR,
  RESET_TO_IDLE, /* Not a real item - a command */
  NAVINFO_RECEIVED,
  NEW_CONTENT_VIEW_ACTIVATED,
  NEW_SIDEBAR_PANEL_ACTIVATED,
  SYNC_STATE /* Not a real item - a flag */
} NautilusWindowStateItem;

/* FIXME: Need to migrate window fields into here. */
struct NautilusWindowDetails
{
	guint refresh_bookmarks_menu_idle_id;
	guint refresh_go_menu_idle_id;
};


void                 nautilus_window_set_state_info                    (NautilusWindow             *window,
									... /* things to set, plus optional parameters */);
void                 nautilus_window_set_status                        (NautilusWindow             *window,
									const char                 *status);
void                 nautilus_window_back_or_forward                   (NautilusWindow             *window,
									gboolean                    back,
									guint                       distance);
void                 nautilus_window_load_content_view_menu            (NautilusWindow             *window);
void                 nautilus_window_synch_content_view_menu           (NautilusWindow             *window);
void                 nautilus_window_connect_view                      (NautilusWindow             *window,
									NautilusViewFrame          *view);
void		     nautilus_window_disconnect_view		       (NautilusWindow		   *window,
									NautilusViewFrame	   *view);
void                 nautilus_window_view_failed                       (NautilusWindow             *window,
									NautilusViewFrame          *view);
void                 nautilus_send_history_list_changed                (void);
void                 nautilus_add_to_history_list                      (NautilusBookmark           *bookmark);
GSList *             nautilus_get_history_list                         (void);
void                 nautilus_window_add_bookmark_for_current_location (NautilusWindow             *window);
void                 nautilus_window_initialize_menus                  (NautilusWindow             *window);
void                 nautilus_window_initialize_toolbars               (NautilusWindow             *window);
void                 nautilus_window_go_back                           (NautilusWindow             *window);
void                 nautilus_window_go_forward                        (NautilusWindow             *window);
void                 nautilus_window_go_up                             (NautilusWindow             *window);
void                 nautilus_window_toolbar_remove_theme_callback     (void);
NautilusUndoManager *nautilus_window_get_undo_manager                  (NautilusWindow             *window);
void                 nautilus_window_begin_location_change             (NautilusWindow             *window,
									const char                 *location,
									NautilusViewFrame          *requesting_view,
									NautilusLocationChangeType  type,
									guint                       distance);
void		     nautilus_window_remove_bookmarks_menu_callback    (NautilusWindow 		   *window);
void		     nautilus_window_remove_go_menu_callback 	       (NautilusWindow 		   *window);

#endif /* NAUTILUS_WINDOW_PRIVATE_H */