GtkFileChooser search fixes and recent files support. (#435342)
2007-05-11 Emmanuele Bassi <ebassi@gnome.org> GtkFileChooser search fixes and recent files support. (#435342) * gtk/gtkfilechooserprivate.h: * gtk/gtkfilechooserdefault.c: Add support for showing the recently used files list as a special shortcut item. svn path=/trunk/; revision=17824
This commit is contained in:

committed by
Emmanuele Bassi

parent
b5d60d48e8
commit
4078ef567b
@ -1,3 +1,11 @@
|
|||||||
|
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
|
||||||
|
GtkFileChooser search fixes and recent files support. (#435342)
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserprivate.h:
|
||||||
|
* gtk/gtkfilechooserdefault.c: Add support for showing the
|
||||||
|
recently used files list as a special shortcut item.
|
||||||
|
|
||||||
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
|
2007-05-11 Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
|
||||||
GtkFileChooser search fixes and recent files support. (#435342)
|
GtkFileChooser search fixes and recent files support. (#435342)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -25,6 +25,7 @@
|
|||||||
#include "gtkfilesystem.h"
|
#include "gtkfilesystem.h"
|
||||||
#include "gtkfilesystemmodel.h"
|
#include "gtkfilesystemmodel.h"
|
||||||
#include "gtkliststore.h"
|
#include "gtkliststore.h"
|
||||||
|
#include "gtkrecentmanager.h"
|
||||||
#include "gtksearchengine.h"
|
#include "gtksearchengine.h"
|
||||||
#include "gtkquery.h"
|
#include "gtkquery.h"
|
||||||
#include "gtktooltips.h"
|
#include "gtktooltips.h"
|
||||||
@ -151,7 +152,8 @@ typedef enum {
|
|||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
OPERATION_MODE_BROWSE,
|
OPERATION_MODE_BROWSE,
|
||||||
OPERATION_MODE_SEARCH
|
OPERATION_MODE_SEARCH,
|
||||||
|
OPERATION_MODE_RECENT
|
||||||
} OperationMode;
|
} OperationMode;
|
||||||
|
|
||||||
struct _GtkFileChooserDefault
|
struct _GtkFileChooserDefault
|
||||||
@ -188,13 +190,18 @@ struct _GtkFileChooserDefault
|
|||||||
GtkFileSystemModel *browse_files_model;
|
GtkFileSystemModel *browse_files_model;
|
||||||
char *browse_files_last_selected_name;
|
char *browse_files_last_selected_name;
|
||||||
|
|
||||||
/* Widgets for searching */
|
/* Search */
|
||||||
GtkWidget *search_hbox;
|
GtkWidget *search_hbox;
|
||||||
GtkWidget *search_entry;
|
GtkWidget *search_entry;
|
||||||
GtkSearchEngine *search_engine;
|
GtkSearchEngine *search_engine;
|
||||||
GtkQuery *search_query;
|
GtkQuery *search_query;
|
||||||
GtkListStore *search_model;
|
GtkListStore *search_model;
|
||||||
|
|
||||||
|
/* Recently Used */
|
||||||
|
GtkRecentManager *recent_manager;
|
||||||
|
GtkListStore *recent_model;
|
||||||
|
guint load_recent_id;
|
||||||
|
|
||||||
GtkWidget *filter_combo_hbox;
|
GtkWidget *filter_combo_hbox;
|
||||||
GtkWidget *filter_combo;
|
GtkWidget *filter_combo;
|
||||||
GtkWidget *preview_box;
|
GtkWidget *preview_box;
|
||||||
@ -293,6 +300,7 @@ struct _GtkFileChooserDefault
|
|||||||
guint has_home : 1;
|
guint has_home : 1;
|
||||||
guint has_desktop : 1;
|
guint has_desktop : 1;
|
||||||
guint has_search : 1;
|
guint has_search : 1;
|
||||||
|
guint has_recent : 1;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
guint shortcuts_drag_outside : 1;
|
guint shortcuts_drag_outside : 1;
|
||||||
|
Reference in New Issue
Block a user