~ubuntu-branches/debian/sid/pcmanfm/sid

« back to all changes in this revision

Viewing changes to src/tab-page.h

  • Committer: Package Import Robot
  • Author(s): Andriy Grytsenko
  • Date: 2014-02-25 04:07:51 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140225040751-oo835klpwl58mcy4
Tags: 1.2.0-1
* Bump Standards-Version to actual one (fixes lintian warning, see QA page).
* Adding files NEWS to pcmanfm documentation.
* Bump Standards-Version to 3.9.5.
* Updating watch file to support XZ tarball format and non-numeric versions.
* Merging upstream version 1.2.0. (Closes: #656298, #731549)
* Use single docs directory for all packages.
* Raising version of libfm required to >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <gtk/gtk.h>
25
25
#include <libfm/fm.h>
26
26
 
 
27
#include "pcmanfm.h"
 
28
 
27
29
G_BEGIN_DECLS
28
30
 
29
31
 
54
56
    GtkHPaned parent;
55
57
    FmSidePane* side_pane;
56
58
    FmFolderView* folder_view;
 
59
    GtkBox *views;
57
60
    FmTabLabel* tab_label;
58
61
    FmNavHistory* nav_history;
59
62
    char* status_text[FM_STATUS_TEXT_NUM];
60
63
    FmFolder* folder;
 
64
    FmDndDest *dd; /* handler for drop on label */
 
65
#if FM_CHECK_VERSION(1, 2, 0)
 
66
    FmPath *want_focus;
 
67
#endif
 
68
    /* Use sort_type, sort_by, show_hidden to setup model after folder loading */
 
69
#if FM_CHECK_VERSION(1, 0, 2)
 
70
    FmSortMode sort_type;
 
71
    FmFolderModelCol sort_by;
 
72
    char **columns; /* NULL if own_config is FALSE */
 
73
    char *filter_pattern;
 
74
#else
 
75
    GtkSortType sort_type;
 
76
    int sort_by;
 
77
#endif
 
78
    guint view_mode;
 
79
    gboolean show_hidden : 1;
 
80
    gboolean own_config : 1;
61
81
    gboolean busy : 1;
 
82
    guint update_scroll_id;
62
83
};
63
84
 
64
85
struct _FmTabPageClass
67
88
    void (*chdir)(FmTabPage* page, FmPath* path);
68
89
    //void (*open_dir)(FmTabPage* page, guint where, FmPath* path);
69
90
    void (*status)(FmTabPage* page, guint type, const char* status_text);
 
91
    void (*got_focus)(FmTabPage* page);
70
92
};
71
93
 
72
94
/* Side Pane mode extensions */
100
122
void fm_tab_page_back(FmTabPage* page);
101
123
 
102
124
/* jump to specified history item */
 
125
#if FM_CHECK_VERSION(1, 0, 2)
 
126
void fm_tab_page_history(FmTabPage* page, guint history_item);
 
127
#else
103
128
void fm_tab_page_history(FmTabPage* page, GList* history_item_link);
 
129
#endif
104
130
 
105
131
/* get window title of this page */
106
132
const char* fm_tab_page_get_title(FmTabPage* page);
108
134
/* get normal status text */
109
135
const char* fm_tab_page_get_status_text(FmTabPage* page, FmStatusTextType type);
110
136
 
 
137
/* passive view panel management */
 
138
gboolean fm_tab_page_take_view_back(FmTabPage *page);
 
139
gboolean fm_tab_page_set_passive_view(FmTabPage *page, FmFolderView *view, gboolean on_right);
 
140
FmFolderView *fm_tab_page_get_passive_view(FmTabPage *page);
 
141
 
 
142
#if FM_CHECK_VERSION(1, 0, 2)
 
143
void fm_tab_page_set_filter_pattern(FmTabPage *page, const char *pattern);
 
144
#endif
 
145
 
 
146
#if FM_CHECK_VERSION(1, 2, 0)
 
147
#include "pcmanfm-modules.h"
 
148
 
 
149
GList *_tab_page_modules; /* in pcmanfm.c */
 
150
#endif
 
151
 
111
152
G_END_DECLS
112
153
 
113
154
#endif /* __FM_TAB_PAGE_H__ */