/usr/include/libgnomeui-2.0/libgnomeui/gnome-file-entry.h is in libgnomeui-dev 2.24.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 1998, 1999, 2000 Free Software Foundation
* All rights reserved.
*
* This file is part of the Gnome Library.
*
* The Gnome Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* The Gnome Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
@NOTATION@
*/
/* GnomeFileEntry widget - Combo box with "Browse" button for files
*
*
* Author: Federico Mena <federico@nuclecu.unam.mx>
*/
#ifndef GNOME_FILE_ENTRY_H
#define GNOME_FILE_ENTRY_H
#include <libgnomeui/gnome-entry.h>
#include <gtk/gtk.h>
#ifndef GNOME_DISABLE_DEPRECATED
G_BEGIN_DECLS
#define GNOME_TYPE_FILE_ENTRY (gnome_file_entry_get_type ())
#define GNOME_FILE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_FILE_ENTRY, GnomeFileEntry))
#define GNOME_FILE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_FILE_ENTRY, GnomeFileEntryClass))
#define GNOME_IS_FILE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_FILE_ENTRY))
#define GNOME_IS_FILE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_FILE_ENTRY))
#define GNOME_FILE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_TYPE_FILE_ENTRY, GnomeFileEntryClass))
/* Note: This supports GtkEditable interface */
typedef struct _GnomeFileEntry GnomeFileEntry;
typedef struct _GnomeFileEntryPrivate GnomeFileEntryPrivate;
typedef struct _GnomeFileEntryClass GnomeFileEntryClass;
struct _GnomeFileEntry {
GtkVBox hbox;
/*the file dialog widget*/
/* For now we depend on this being public, as
* some apps bind it and mess with the file selector.
* this is evil, but can't be helped unless we provide
* alternatives. */
GtkWidget *fsw;
/* gnome-icon-entry needs to access this, but it's
* not for public consumption, think of it as protected */
/*< private >*/
char *default_path;
GnomeFileEntryPrivate *_priv;
};
struct _GnomeFileEntryClass {
GtkVBoxClass parent_class;
/*if you want to modify the browse dialog, bind this with
connect_after and modify object->fsw, or you could just
create your own and set it to object->fsw in a normally
connected handler, it has to be a gtk_file_selection though*/
void (* browse_clicked) (GnomeFileEntry *fentry);
/* Like in GtkEntry */
void (* activate) (GnomeFileEntry *fentry);
gpointer reserved1, reserved2; /* Reserved for future use,
we'll need to proxy insert_text
and delete_text signals */
};
GType gnome_file_entry_get_type (void) G_GNUC_CONST;
GtkWidget *gnome_file_entry_new (const char *history_id,
const char *browse_dialog_title);
void gnome_file_entry_construct (GnomeFileEntry *fentry,
const char *history_id,
const char *browse_dialog_title);
GtkWidget *gnome_file_entry_gnome_entry (GnomeFileEntry *fentry);
GtkWidget *gnome_file_entry_gtk_entry (GnomeFileEntry *fentry);
void gnome_file_entry_set_title (GnomeFileEntry *fentry,
const char *browse_dialog_title);
/*set default path for the browse dialog*/
void gnome_file_entry_set_default_path(GnomeFileEntry *fentry,
const char *path);
/*sets up the file entry to be a directory picker rather then a file picker*/
void gnome_file_entry_set_directory_entry(GnomeFileEntry *fentry,
gboolean directory_entry);
gboolean gnome_file_entry_get_directory_entry(GnomeFileEntry *fentry);
/*returns a filename which is a full path with WD or the default
directory prepended if it's not an absolute path, returns
NULL on empty entry or if the file doesn't exist and that was
a requirement*/
char *gnome_file_entry_get_full_path(GnomeFileEntry *fentry,
gboolean file_must_exist);
/* set the filename to something, this is like setting the internal
* GtkEntry */
void gnome_file_entry_set_filename(GnomeFileEntry *fentry,
const char *filename);
/*set modality of the file browse dialog, only applies for the
next time a dialog is created*/
void gnome_file_entry_set_modal (GnomeFileEntry *fentry,
gboolean is_modal);
gboolean gnome_file_entry_get_modal (GnomeFileEntry *fentry);
#ifndef GNOME_DISABLE_DEPRECATED
/* DEPRECATED, use gnome_file_entry_set_directory_entry */
void gnome_file_entry_set_directory(GnomeFileEntry *fentry,
gboolean directory_entry);
#endif /* GNOME_DISABLE_DEPRECATED */
G_END_DECLS
#endif
#endif /* GNOME_DISABLE_DEPRECATED */
|