Blame src/nautilus-location-entry.h

Packit a189e0
Packit a189e0
/*
Packit a189e0
 * Nautilus
Packit a189e0
 *
Packit a189e0
 * Copyright (C) 2000 Eazel, Inc.
Packit a189e0
 *
Packit a189e0
 * Nautilus is free software; you can redistribute it and/or
Packit a189e0
 * modify it under the terms of the GNU General Public License as
Packit a189e0
 * published by the Free Software Foundation; either version 2 of the
Packit a189e0
 * License, or (at your option) any later version.
Packit a189e0
 *
Packit a189e0
 * Nautilus is distributed in the hope that it will be useful,
Packit a189e0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a189e0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit a189e0
 * General Public License for more details.
Packit a189e0
 *
Packit a189e0
 * You should have received a copy of the GNU General Public
Packit a189e0
 * License along with this program; see the file COPYING.  If not,
Packit a189e0
 * see <http://www.gnu.org/licenses/>.
Packit a189e0
 *
Packit a189e0
 * Author: Maciej Stachowiak <mjs@eazel.com>
Packit a189e0
 *         Ettore Perazzoli <ettore@gnu.org>
Packit a189e0
 */
Packit a189e0
Packit a189e0
#ifndef NAUTILUS_LOCATION_ENTRY_H
Packit a189e0
#define NAUTILUS_LOCATION_ENTRY_H
Packit a189e0
Packit a189e0
#include <gtk/gtk.h>
Packit a189e0
Packit a189e0
#define NAUTILUS_TYPE_LOCATION_ENTRY nautilus_location_entry_get_type()
Packit a189e0
G_DECLARE_DERIVABLE_TYPE (NautilusLocationEntry, nautilus_location_entry,
Packit a189e0
                          NAUTILUS, LOCATION_ENTRY,
Packit a189e0
                          GtkEntry)
Packit a189e0
Packit a189e0
typedef struct _NautilusLocationEntryClass {
Packit a189e0
	GtkEntryClass parent_class;
Packit a189e0
	/* for GtkBindingSet */
Packit a189e0
	void         (* cancel)           (NautilusLocationEntry *entry);
Packit a189e0
} NautilusLocationEntryClass;
Packit a189e0
Packit a189e0
typedef enum {
Packit a189e0
	NAUTILUS_LOCATION_ENTRY_ACTION_GOTO,
Packit a189e0
	NAUTILUS_LOCATION_ENTRY_ACTION_CLEAR
Packit a189e0
} NautilusLocationEntryAction;
Packit a189e0
Packit a189e0
GtkWidget* nautilus_location_entry_new          	(void);
Packit a189e0
void       nautilus_location_entry_set_special_text     (NautilusLocationEntry *entry,
Packit a189e0
							 const char            *special_text);
Packit a189e0
void       nautilus_location_entry_set_secondary_action (NautilusLocationEntry *entry,
Packit a189e0
							 NautilusLocationEntryAction secondary_action);
Packit a189e0
void       nautilus_location_entry_set_location         (NautilusLocationEntry *entry,
Packit a189e0
							 GFile                 *location);
Packit a189e0
Packit a189e0
#endif /* NAUTILUS_LOCATION_ENTRY_H */