summaryrefslogtreecommitdiff
path: root/src/nautilus-search-bar.c
diff options
context:
space:
mode:
authorRebecka Schulman <rebecka@eazel.com>2000-06-23 02:15:28 +0000
committerRebecca Schulman <rebecka@src.gnome.org>2000-06-23 02:15:28 +0000
commitea181123be7578a015e785933ee302bd2161537d (patch)
treed7afcf050ec1e7a8436d015f000b26628b1d583e /src/nautilus-search-bar.c
parent610c3c77eec164f87267287915c186cb8cf6579c (diff)
downloadnautilus-ea181123be7578a015e785933ee302bd2161537d.tar.gz
(nautilus_simple_search_bar_set_search_controls): Extended search uri api;
2000-06-22 Rebecka Schulman <rebecka@eazel.com> * libnautilus-extensions/nautilus-search-uri.c: * libnautilus-extensions/nautilus-search-uri.h: (nautilus_search_uri_to_simple_search_criteria), (nautilus_search_uri_to_search_bar_mode), (nautilus_search_uri_is_displayable_by_mode), (other_search_mode): * src/nautilus-simple-search-bar.c: * src/nautilus-switchable-search-bar.c: (nautilus_switchable_search_bar_set_mode), (nautilus_switchable_search_bar_set_search_controls): * src/nautilus-switchable-search-bar.h: (nautilus_simple_search_bar_set_search_controls): Extended search uri api; Some functions came from nautilus-switchable-search-bar.c * src/nautilus-complex-search-bar.c: (nautilus_complex_search_bar_initialize): fixed it so the containers work right * src/nautilus-search-bar-criterion.c: * src/nautilus-search-bar-criterion.h: (nautilus_search_bar_criterion_initialize), (nautilus_search_bar_criterion_initialize_class), (destroy), (nautilus_search_bar_criterion_new), (nautilus_search_bar_criterion_file_type_new), (nautilus_search_bar_criterion_file_name_new), (nautilus_search_bar_criterion_add_to_search_bar): added file name and type, and new functions to aid in displaying * src/nautilus-search-bar.c: (nautilus_search_bar_new): * src/nautilus-search-bar.h: added nautilus_search_bar_new
Diffstat (limited to 'src/nautilus-search-bar.c')
-rw-r--r--src/nautilus-search-bar.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nautilus-search-bar.c b/src/nautilus-search-bar.c
index 28a66f175..5b398543c 100644
--- a/src/nautilus-search-bar.c
+++ b/src/nautilus-search-bar.c
@@ -25,7 +25,6 @@
#include <config.h>
#include "nautilus-search-bar.h"
-#include "nautilus-search-bar-private.h"
#include "nautilus-simple-search-bar.h"
#include "nautilus-complex-search-bar.h"
#include "nautilus-search-bar-criterion.h"
@@ -61,6 +60,14 @@ destroy (GtkObject *object)
NAUTILUS_CALL_PARENT_CLASS (GTK_OBJECT_CLASS, destroy, (object));
}
+
+GtkWidget *
+nautilus_search_bar_new (void)
+{
+ return gtk_widget_new (NAUTILUS_TYPE_SEARCH_BAR, NULL);
+}
+
+
static void
nautilus_search_bar_initialize_class (NautilusSearchBarClass *klass)
{