Commit 4078ef56 authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

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
parent b5d60d48
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)
......
This diff is collapsed.
...@@ -25,6 +25,7 @@ ...@@ -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 { ...@@ -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 ...@@ -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 ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment