1
/* The GIMP -- an image manipulation program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
5
* Copyright (C) 1999-2003 Michael Natterer <mitch@gimp.org>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
#ifndef __GIMP_WIDGETS_UTILS_H__
23
#define __GIMP_WIDGETS_UTILS_H__
26
void gimp_menu_position (GtkMenu *menu,
29
void gimp_button_menu_position (GtkWidget *button,
31
GtkPositionType position,
35
void gimp_table_attach_stock (GtkTable *table,
37
const gchar *label_text,
41
const gchar *stock_id);
42
void gimp_enum_radio_frame_add (GtkFrame *frame,
46
GtkIconSize gimp_get_icon_size (GtkWidget *widget,
47
const gchar *stock_id,
52
const gchar * gimp_get_mod_name_shift (void);
53
const gchar * gimp_get_mod_name_control (void);
54
const gchar * gimp_get_mod_name_alt (void);
55
const gchar * gimp_get_mod_separator (void);
56
const gchar * gimp_get_mod_string (GdkModifierType modifiers);
57
gchar * gimp_get_accel_string (guint key,
58
GdkModifierType modifiers);
60
void gimp_get_screen_resolution (GdkScreen *screen,
64
void gimp_rgb_get_gdk_color (const GimpRGB *rgb,
66
void gimp_rgb_set_gdk_color (GimpRGB *rgb,
67
const GdkColor *gdk_color);
69
void gimp_window_set_hint (GtkWindow *window,
72
void gimp_dialog_set_sensitive (GtkDialog *dialog,
75
gboolean gimp_text_buffer_load (GtkTextBuffer *buffer,
76
const gchar *filename,
78
gboolean gimp_text_buffer_save (GtkTextBuffer *buffer,
79
const gchar *filename,
80
gboolean selection_only,
83
void gimp_toggle_button_set_visible (GtkToggleButton *toggle,
87
#endif /* __GIMP_WIDGETS_UTILS_H__ */