/usr/include/libgnomeui-2.0/libgnomeui/gnome-font-picker.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 | /* GNOME font picker button.
* Copyright (C) 1998 David Abilleira Freijeiro <odaf@nexo.es>
* All rights reserved
* Based on gnome-color-picker by Federico Mena <federico@nuclecu.unam.mx>
*
* This 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.
*
* This 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 this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA.
*/
#ifndef GNOME_FONT_PICKER_H
#define GNOME_FONT_PICKER_H
#ifndef GNOME_DISABLE_DEPRECATED
#include <gtk/gtk.h>
G_BEGIN_DECLS
/* GnomeFontPicker is a button widget that allow user to select a font.
*/
/* Button Mode or What to show */
typedef enum {
GNOME_FONT_PICKER_MODE_PIXMAP,
GNOME_FONT_PICKER_MODE_FONT_INFO,
GNOME_FONT_PICKER_MODE_USER_WIDGET,
GNOME_FONT_PICKER_MODE_UNKNOWN
} GnomeFontPickerMode;
#define GNOME_TYPE_FONT_PICKER (gnome_font_picker_get_type ())
#define GNOME_FONT_PICKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_FONT_PICKER, GnomeFontPicker))
#define GNOME_FONT_PICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_FONT_PICKER, GnomeFontPickerClass))
#define GNOME_IS_FONT_PICKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_FONT_PICKER))
#define GNOME_IS_FONT_PICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_FONT_PICKER))
#define GNOME_FONT_PICKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_TYPE_FONT_PICKER, GnomeFontPickerClass))
typedef struct _GnomeFontPicker GnomeFontPicker;
typedef struct _GnomeFontPickerPrivate GnomeFontPickerPrivate;
typedef struct _GnomeFontPickerClass GnomeFontPickerClass;
struct _GnomeFontPicker {
GtkButton button;
/*< private >*/
GnomeFontPickerPrivate *_priv;
};
struct _GnomeFontPickerClass {
GtkButtonClass parent_class;
/* font_set signal is emitted when font is chosen */
void (* font_set) (GnomeFontPicker *gfp, const gchar *font_name);
/* It is possible we may need more signals */
gpointer padding1;
gpointer padding2;
};
/* Standard Gtk function */
GType gnome_font_picker_get_type (void) G_GNUC_CONST;
/* Creates a new font picker widget */
GtkWidget *gnome_font_picker_new (void);
/* Sets the title for the font selection dialog */
void gnome_font_picker_set_title (GnomeFontPicker *gfp,
const gchar *title);
const gchar * gnome_font_picker_get_title (GnomeFontPicker *gfp);
/* Button mode */
GnomeFontPickerMode
gnome_font_picker_get_mode (GnomeFontPicker *gfp);
void gnome_font_picker_set_mode (GnomeFontPicker *gfp,
GnomeFontPickerMode mode);
/* With GNOME_FONT_PICKER_MODE_FONT_INFO */
/* If use_font_in_label is true, font name will be written using font chosen by user and
using size passed to this function*/
void gnome_font_picker_fi_set_use_font_in_label (GnomeFontPicker *gfp,
gboolean use_font_in_label,
gint size);
void gnome_font_picker_fi_set_show_size (GnomeFontPicker *gfp,
gboolean show_size);
/* With GNOME_FONT_PICKER_MODE_USER_WIDGET */
void gnome_font_picker_uw_set_widget (GnomeFontPicker *gfp,
GtkWidget *widget);
GtkWidget * gnome_font_picker_uw_get_widget (GnomeFontPicker *gfp);
/* Functions to interface with GtkFontSelectionDialog */
const gchar* gnome_font_picker_get_font_name (GnomeFontPicker *gfp);
GdkFont* gnome_font_picker_get_font (GnomeFontPicker *gfp);
gboolean gnome_font_picker_set_font_name (GnomeFontPicker *gfp,
const gchar *fontname);
const gchar* gnome_font_picker_get_preview_text (GnomeFontPicker *gfp);
void gnome_font_picker_set_preview_text (GnomeFontPicker *gfp,
const gchar *text);
G_END_DECLS
#endif /* GTK_DISABLE_DEPRECATED */
#endif /* GNOME_FONT_PICKER_H */
|