~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/widgets/gimpwidgets-utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * gimpwidgets-utils.h
23
23
#define __GIMP_WIDGETS_UTILS_H__
24
24
 
25
25
 
26
 
void          gimp_menu_position         (GtkMenu         *menu,
27
 
                                          gint            *x,
28
 
                                          gint            *y);
29
 
void          gimp_button_menu_position  (GtkWidget       *button,
30
 
                                          GtkMenu         *menu,
31
 
                                          GtkPositionType  position,
32
 
                                          gint            *x,
33
 
                                          gint            *y);
34
 
 
35
 
void          gimp_table_attach_stock    (GtkTable        *table,
36
 
                                          gint             row,
37
 
                                          const gchar     *label_text,
38
 
                                          gdouble          yalign,
39
 
                                          GtkWidget       *widget,
40
 
                                          gint             colspan,
41
 
                                          const gchar     *stock_id);
42
 
void          gimp_enum_radio_frame_add  (GtkFrame        *frame,
43
 
                                          GtkWidget       *widget,
44
 
                                          gint             enum_value);
45
 
 
46
 
GtkIconSize   gimp_get_icon_size         (GtkWidget       *widget,
47
 
                                          const gchar     *stock_id,
48
 
                                          GtkIconSize      max_size,
49
 
                                          gint             width,
50
 
                                          gint             height);
51
 
 
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);
59
 
 
60
 
void          gimp_get_screen_resolution (GdkScreen       *screen,
61
 
                                          gdouble         *xres,
62
 
                                          gdouble         *yres);
63
 
 
64
 
void          gimp_rgb_get_gdk_color     (const GimpRGB   *rgb,
65
 
                                          GdkColor        *gdk_color);
66
 
void          gimp_rgb_set_gdk_color     (GimpRGB         *rgb,
67
 
                                          const GdkColor  *gdk_color);
68
 
 
69
 
void          gimp_window_set_hint       (GtkWindow       *window,
70
 
                                          GimpWindowHint   hint);
71
 
 
72
 
void          gimp_dialog_set_sensitive  (GtkDialog       *dialog,
73
 
                                          gboolean         sensitive);
74
 
 
75
 
gboolean      gimp_text_buffer_load      (GtkTextBuffer   *buffer,
76
 
                                          const gchar     *filename,
77
 
                                          GError         **error);
78
 
gboolean      gimp_text_buffer_save      (GtkTextBuffer   *buffer,
79
 
                                          const gchar     *filename,
80
 
                                          gboolean         selection_only,
81
 
                                          GError         **error);
82
 
 
83
 
void      gimp_toggle_button_set_visible (GtkToggleButton *toggle,
84
 
                                          GtkWidget       *widget);
 
26
void              gimp_menu_position         (GtkMenu         *menu,
 
27
                                              gint            *x,
 
28
                                              gint            *y);
 
29
void              gimp_button_menu_position  (GtkWidget       *button,
 
30
                                              GtkMenu         *menu,
 
31
                                              GtkPositionType  position,
 
32
                                              gint            *x,
 
33
                                              gint            *y);
 
34
 
 
35
void              gimp_table_attach_stock    (GtkTable        *table,
 
36
                                              gint             row,
 
37
                                              const gchar     *stock_id,
 
38
                                              GtkWidget       *widget,
 
39
                                              gint             colspan,
 
40
                                              gboolean         left_align);
 
41
void              gimp_enum_radio_frame_add  (GtkFrame        *frame,
 
42
                                              GtkWidget       *widget,
 
43
                                              gint             enum_value);
 
44
 
 
45
GtkIconSize       gimp_get_icon_size         (GtkWidget       *widget,
 
46
                                              const gchar     *stock_id,
 
47
                                              GtkIconSize      max_size,
 
48
                                              gint             width,
 
49
                                              gint             height);
 
50
 
 
51
const gchar     * gimp_get_mod_name_shift    (void);
 
52
const gchar     * gimp_get_mod_name_control  (void);
 
53
const gchar     * gimp_get_mod_name_alt      (void);
 
54
const gchar     * gimp_get_mod_separator     (void);
 
55
const gchar     * gimp_get_mod_string        (GdkModifierType  modifiers);
 
56
gchar           * gimp_get_accel_string      (guint            key,
 
57
                                              GdkModifierType  modifiers);
 
58
gchar           * gimp_suggest_modifiers     (const gchar     *message,
 
59
                                              GdkModifierType  modifiers,
 
60
                                              const gchar     *shift_format,
 
61
                                              const gchar     *control_format,
 
62
                                              const gchar     *alt_format);
 
63
 
 
64
void              gimp_get_screen_resolution (GdkScreen       *screen,
 
65
                                              gdouble         *xres,
 
66
                                              gdouble         *yres);
 
67
 
 
68
void              gimp_rgb_get_gdk_color     (const GimpRGB   *rgb,
 
69
                                              GdkColor        *gdk_color);
 
70
void              gimp_rgb_set_gdk_color     (GimpRGB         *rgb,
 
71
                                              const GdkColor  *gdk_color);
 
72
 
 
73
void              gimp_window_set_hint       (GtkWindow       *window,
 
74
                                              GimpWindowHint   hint);
 
75
GdkNativeWindow   gimp_window_get_native     (GtkWindow       *window);
 
76
void              gimp_window_set_transient_for (GtkWindow    *window,
 
77
                                                 guint32       parent_ID);
 
78
 
 
79
gboolean          gimp_text_buffer_load      (GtkTextBuffer   *buffer,
 
80
                                              const gchar     *filename,
 
81
                                              GError         **error);
 
82
gboolean          gimp_text_buffer_save      (GtkTextBuffer   *buffer,
 
83
                                              const gchar     *filename,
 
84
                                              gboolean         selection_only,
 
85
                                              GError         **error);
 
86
 
 
87
void          gimp_toggle_button_set_visible (GtkToggleButton *toggle,
 
88
                                              GtkWidget       *widget);
 
89
 
 
90
void              gimp_widget_set_accel_help (GtkWidget       *widget,
 
91
                                              GtkAction       *action);
 
92
 
 
93
const gchar     * gimp_get_message_stock_id  (GimpMessageSeverity  severity);
85
94
 
86
95
 
87
96
#endif /* __GIMP_WIDGETS_UTILS_H__ */