app, tools, plug-ins: more #pragma once, and formatting cleanup where

I noticed the need.
This commit is contained in:
Michael Natterer 2025-08-13 01:48:40 +02:00
parent 6124b56b3e
commit 9f789e68d5
203 changed files with 280 additions and 1177 deletions

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ACCEL_LABEL_H__
#define __GIMP_ACCEL_LABEL_H__
#pragma once
#define GIMP_TYPE_ACCEL_LABEL (gimp_accel_label_get_type ())
@ -53,6 +52,3 @@ GtkWidget * gimp_accel_label_new (GimpAction *action);
void gimp_accel_label_set_action (GimpAccelLabel *accel_label,
GimpAction *action);
GimpAction * gimp_accel_label_get_action (GimpAccelLabel *accel_label);
#endif /* __GIMP_ACCEL_LABEL_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ACTION_HISTORY_H__
#define __GIMP_ACTION_HISTORY_H__
#pragma once
typedef gboolean (* GimpActionMatchFunc) (GimpAction *action,
@ -41,6 +40,3 @@ gboolean gimp_action_history_is_blacklisted_action (const gchar *actio
gboolean gimp_action_history_is_excluded_action (const gchar *action_name);
void gimp_action_history_action_activated (GimpAction *action);
#endif /* __GIMP_ACTION_HISTORY_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ACTION_EDITOR_H__
#define __GIMP_ACTION_EDITOR_H__
#pragma once
#define GIMP_TYPE_ACTION_EDITOR (gimp_action_editor_get_type ())
@ -50,6 +49,3 @@ GType gimp_action_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_action_editor_new (Gimp *gimp,
const gchar *select_action,
gboolean show_shortcuts);
#endif /* __GIMP_ACTION_EDITOR_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ACTION_FACTORY_H__
#define __GIMP_ACTION_FACTORY_H__
#pragma once
#include "core/gimpobject.h"
@ -80,6 +78,3 @@ GimpActionGroup * gimp_action_factory_get_group (GimpActionFactory
void gimp_action_factory_delete_group (GimpActionFactory *factory,
const gchar *identifier,
gpointer user_data);
#endif /* __GIMP_ACTION_FACTORY_H__ */

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ACTION_IMPL_H__
#define __GIMP_ACTION_IMPL_H__
#pragma once
#include "core/gimpobject.h"
#define GIMP_TYPE_ACTION_IMPL (gimp_action_impl_get_type ())
#define GIMP_ACTION_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_ACTION_IMPL, GimpActionImpl))
#define GIMP_ACTION_IMPL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_ACTION_IMPL, GimpActionImplClass))
@ -45,19 +45,16 @@ struct _GimpActionImplClass
GimpObjectClass parent_class;
/* signals */
void (* change_state) (GimpActionImpl *impl,
GVariant *value);
void (* change_state) (GimpActionImpl *impl,
GVariant *value);
};
GType gimp_action_impl_get_type (void) G_GNUC_CONST;
GType gimp_action_impl_get_type (void) G_GNUC_CONST;
GimpAction * gimp_action_impl_new (const gchar *name,
const gchar *label,
const gchar *short_label,
const gchar *tooltip,
const gchar *icon_name,
const gchar *help_id,
GimpContext *context);
#endif /* __GIMP_ACTION_IMPL_H__ */
GimpAction * gimp_action_impl_new (const gchar *name,
const gchar *label,
const gchar *short_label,
const gchar *tooltip,
const gchar *icon_name,
const gchar *help_id,
GimpContext *context);

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ACTION_VIEW_H__
#define __GIMP_ACTION_VIEW_H__
#pragma once
enum
@ -70,6 +69,3 @@ GtkWidget * gimp_action_view_new (Gimp *gimp,
void gimp_action_view_set_filter (GimpActionView *view,
const gchar *filter);
#endif /* __GIMP_ACTION_VIEW_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_BRUSH_FACTORY_VIEW_H__
#define __GIMP_BRUSH_FACTORY_VIEW_H__
#pragma once
#include "gimpdatafactoryview.h"
@ -64,6 +63,3 @@ GtkWidget * gimp_brush_factory_view_new (GimpViewType view_type,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_BRUSH_FACTORY_VIEW_H__ */

View file

@ -18,13 +18,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_BRUSH_SELECT_H__
#define __GIMP_BRUSH_SELECT_H__
#pragma once
#include "gimppdbdialog.h"
G_BEGIN_DECLS
#define GIMP_TYPE_BRUSH_SELECT (gimp_brush_select_get_type ())
#define GIMP_BRUSH_SELECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_BRUSH_SELECT, GimpBrushSelect))
@ -48,8 +45,3 @@ struct _GimpBrushSelectClass
GType gimp_brush_select_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_BRUSH_SELECT_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_BUFFER_SOURCE_BOX_H__
#define __GIMP_BUFFER_SOURCE_BOX_H__
#pragma once
#define GIMP_TYPE_BUFFER_SOURCE_BOX (gimp_buffer_source_box_get_type ())
@ -53,6 +52,3 @@ GtkWidget * gimp_buffer_source_box_new (GimpContext *context,
const gchar *name);
GtkWidget * gimp_buffer_source_box_get_toggle (GimpBufferSourceBox *box);
#endif /* __GIMP_BUFFER_SOURCE_BOX_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_BUFFER_VIEW_H__
#define __GIMP_BUFFER_VIEW_H__
#pragma once
#include "gimpcontainereditor.h"
@ -63,6 +61,3 @@ GtkWidget * gimp_buffer_view_new (GimpViewType view_type,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_BUFFER_VIEW_H__ */

View file

@ -21,8 +21,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CAIRO_WILBER_H__
#define __GIMP_CAIRO_WILBER_H__
#pragma once
void gimp_cairo_wilber_toggle_pointer_eyes (void);
@ -40,6 +39,3 @@ void gimp_cairo_wilber (cairo_t *cr,
void gimp_cairo_wilber_get_size (cairo_t *cr,
gdouble *width,
gdouble *height);
#endif /* __GIMP_CAIRO_WILBER_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CELL_RENDERER_BUTTON_H__
#define __GIMP_CELL_RENDERER_BUTTON_H__
#pragma once
#define GIMP_TYPE_CELL_RENDERER_BUTTON (gimp_cell_renderer_button_get_type ())
@ -54,6 +53,3 @@ GtkCellRenderer * gimp_cell_renderer_button_new (void);
void gimp_cell_renderer_button_clicked (GimpCellRendererButton *cell,
const gchar *path,
GdkModifierType state);
#endif /* __GIMP_CELL_RENDERER_BUTTON_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CELL_RENDERER_DASHES_H__
#define __GIMP_CELL_RENDERER_DASHES_H__
#pragma once
#define GIMP_TYPE_CELL_RENDERER_DASHES (gimp_cell_renderer_dashes_get_type ())
@ -48,6 +47,3 @@ struct _GimpCellRendererDashesClass
GType gimp_cell_renderer_dashes_get_type (void) G_GNUC_CONST;
GtkCellRenderer * gimp_cell_renderer_dashes_new (void);
#endif /* __GIMP_CELL_RENDERER_DASHES_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CELL_RENDERER_VIEWABLE_H__
#define __GIMP_CELL_RENDERER_VIEWABLE_H__
#pragma once
#define GIMP_TYPE_CELL_RENDERER_VIEWABLE (gimp_cell_renderer_viewable_get_type ())
@ -60,6 +59,3 @@ gboolean gimp_cell_renderer_viewable_pre_clicked (GimpCellRendererViewa
void gimp_cell_renderer_viewable_clicked (GimpCellRendererViewable *cell,
const gchar *path,
GdkModifierType state);
#endif /* __GIMP_CELL_RENDERER_VIEWABLE_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CHANNEL_TREE_VIEW_H__
#define __GIMP_CHANNEL_TREE_VIEW_H__
#pragma once
#include "gimpdrawabletreeview.h"
@ -50,6 +48,3 @@ struct _GimpChannelTreeViewClass
GType gimp_channel_tree_view_get_type (void) G_GNUC_CONST;
#endif /* __GIMP_CHANNEL_TREE_VIEW_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CLIPBOARD_H__
#define __GIMP_CLIPBOARD_H__
#pragma once
void gimp_clipboard_init (Gimp *gimp);
@ -45,6 +44,3 @@ void gimp_clipboard_set_text (Gimp *gimp,
const gchar *text);
void gimp_clipboard_set_curve (Gimp *gimp,
GimpCurve *curve);
#endif /* __GIMP_CLIPBOARD_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_BAR_H__
#define __GIMP_COLOR_BAR_H__
#pragma once
#define GIMP_TYPE_COLOR_BAR (gimp_color_bar_get_type ())
@ -55,6 +54,3 @@ void gimp_color_bar_set_buffers (GimpColorBar *bar,
const guchar *red,
const guchar *green,
const guchar *blue);
#endif /* __GIMP_COLOR_BAR_H__ */

View file

@ -17,9 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_DIALOG_H__
#define __GIMP_COLOR_DIALOG_H__
#pragma once
#include "gimpviewabledialog.h"
@ -80,6 +78,3 @@ GtkWidget * gimp_color_dialog_new (GimpViewable *viewable,
void gimp_color_dialog_set_color (GimpColorDialog *dialog,
GeglColor *color);
GeglColor * gimp_color_dialog_get_color (GimpColorDialog *dialog);
#endif /* __GIMP_COLOR_DIALOG_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_DISPLAY_EDITOR_H__
#define __GIMP_COLOR_DISPLAY_EDITOR_H__
#pragma once
#define GIMP_TYPE_COLOR_DISPLAY_EDITOR (gimp_color_display_editor_get_type ())
@ -74,6 +73,3 @@ GtkWidget * gimp_color_display_editor_new (Gimp *gimp,
GimpColorDisplayStack *stack,
GimpColorConfig *config,
GimpColorManaged *managed);
#endif /* __GIMP_COLOR_DISPLAY_EDITOR_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_FRAME_H__
#define __GIMP_COLOR_FRAME_H__
#pragma once
#define GIMP_COLOR_FRAME_ROWS 6
@ -111,6 +110,3 @@ void gimp_color_frame_set_color_config (GimpColorFrame *frame,
void gimp_color_frame_set_image (GimpColorFrame *frame,
GimpImage *image);
#endif /* __GIMP_COLOR_FRAME_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_HISTORY_H__
#define __GIMP_COLOR_HISTORY_H__
#pragma once
#define GIMP_TYPE_COLOR_HISTORY (gimp_color_history_get_type ())
@ -59,6 +58,3 @@ GType gimp_color_history_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_color_history_new (GimpContext *context,
gint history_size);
#endif /* __GIMP_COLOR_HISTORY_H__ */

View file

@ -15,9 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLORMAP_EDITOR_H__
#define __GIMP_COLORMAP_EDITOR_H__
#pragma once
#include "gimpimageeditor.h"
@ -61,6 +59,3 @@ gboolean gimp_colormap_editor_set_index (GimpColormapEditor *editor,
GeglColor *color);
gint gimp_colormap_editor_max_index (GimpColormapEditor *editor);
#endif /* __GIMP_COLORMAP_EDITOR_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLORMAP_SELECTION_H__
#define __GIMP_COLORMAP_SELECTION_H__
#pragma once
#define GIMP_TYPE_COLORMAP_SELECTION (gimp_colormap_selection_get_type ())
@ -80,5 +79,4 @@ void gimp_colormap_selection_get_entry_rect (GimpColormapSelection
GimpPaletteEntry *entry,
GdkRectangle *rect);
#endif /* __GIMP_COLORMAP_SELECTION_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_PANEL_H__
#define __GIMP_COLOR_PANEL_H__
#pragma once
#define GIMP_TYPE_COLOR_PANEL (gimp_color_panel_get_type ())
@ -66,6 +65,3 @@ void gimp_color_panel_set_user_context_aware
void gimp_color_panel_dialog_response (GimpColorPanel *panel,
GimpColorDialogState state);
#endif /* __GIMP_COLOR_PANEL_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COLOR_SELECTOR_PALETTE_H__
#define __GIMP_COLOR_SELECTOR_PALETTE_H__
#pragma once
#define GIMP_TYPE_COLOR_SELECTOR_PALETTE (gimp_color_selector_palette_get_type ())
@ -49,6 +48,3 @@ struct _GimpColorSelectorPaletteClass
GType gimp_color_selector_palette_get_type (void) G_GNUC_CONST;
#endif /* __GIMP_COLOR_SELECTOR_PALETTE_H__ */

View file

@ -18,11 +18,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COMBO_TAG_ENTRY_H__
#define __GIMP_COMBO_TAG_ENTRY_H__
#pragma once
#include "gimptagentry.h"
#define GIMP_TYPE_COMBO_TAG_ENTRY (gimp_combo_tag_entry_get_type ())
#define GIMP_COMBO_TAG_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_COMBO_TAG_ENTRY, GimpComboTagEntry))
#define GIMP_COMBO_TAG_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_COMBO_TAG_ENTRY, GimpComboTagEntryClass))
@ -50,6 +50,3 @@ GType gimp_combo_tag_entry_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_combo_tag_entry_new (GimpTaggedContainer *container,
GimpTagEntryMode mode);
#endif /* __GIMP_COMBO_TAG_ENTRY_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COMPONENT_EDITOR_H__
#define __GIMP_COMPONENT_EDITOR_H__
#pragma once
#include "gimpimageeditor.h"
@ -64,6 +62,3 @@ GtkWidget * gimp_component_editor_new (gint view_size,
GimpMenuFactory *menu_factory);
void gimp_component_editor_set_view_size (GimpComponentEditor *editor,
gint view_size);
#endif /* __GIMP_COMPONENT_EDITOR_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COMPRESSION_COMBO_BOX_H__
#define __GIMP_COMPRESSION_COMBO_BOX_H__
#pragma once
#define GIMP_TYPE_COMPRESSION_COMBO_BOX (gimp_compression_combo_box_get_type ())
@ -51,5 +50,3 @@ GtkWidget * gimp_compression_combo_box_new (void);
void gimp_compression_combo_box_set_compression (GimpCompressionComboBox *combo_box,
const gchar *compression);
gchar * gimp_compression_combo_box_get_compression (GimpCompressionComboBox *combo_box);
#endif /* __GIMP_COMPRESSION_COMBO_BOX_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTAINER_COMBO_BOX_H__
#define __GIMP_CONTAINER_COMBO_BOX_H__
#pragma once
#define GIMP_TYPE_CONTAINER_COMBO_BOX (gimp_container_combo_box_get_type ())
@ -52,6 +51,3 @@ GtkWidget * gimp_container_combo_box_new (GimpContainer *container,
GimpContext *context,
gint view_size,
gint view_border_width);
#endif /* __GIMP_CONTAINER_COMBO_BOX_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTAINER_ENTRY_H__
#define __GIMP_CONTAINER_ENTRY_H__
#pragma once
#define GIMP_TYPE_CONTAINER_ENTRY (gimp_container_entry_get_type ())
@ -51,6 +50,3 @@ GtkWidget * gimp_container_entry_new (GimpContainer *container,
GimpContext *context,
gint view_size,
gint view_border_width);
#endif /* __GIMP_CONTAINER_ENTRY_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTAINER_POPUP_H__
#define __GIMP_CONTAINER_POPUP_H__
#pragma once
#include "gimppopup.h"
@ -83,6 +81,3 @@ void gimp_container_popup_set_view_type (GimpContainerPopup *popup,
GimpViewSize gimp_container_popup_get_view_size (GimpContainerPopup *popup);
void gimp_container_popup_set_view_size (GimpContainerPopup *popup,
GimpViewSize view_size);
#endif /* __GIMP_CONTAINER_POPUP_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTAINER_TREE_VIEW_DND_H__
#define __GIMP_CONTAINER_TREE_VIEW_DND_H__
#pragma once
void gimp_container_tree_view_drag_failed (GtkWidget *widget,
@ -66,6 +65,3 @@ gimp_container_tree_view_real_drop_viewables (GimpContainerTreeView *tree_view
GList *src_viewables,
GimpViewable *dest_viewable,
GtkTreeViewDropPosition drop_pos);
#endif /* __GIMP_CONTAINER_TREE_VIEW_DND_H__ */

View file

@ -18,13 +18,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTAINER_VIEW_UTILS_H__
#define __GIMP_CONTAINER_VIEW_UTILS_H__
#pragma once
GimpContainerView * gimp_container_view_get_by_dockable (GimpDockable *dockable);
void gimp_container_view_remove_active (GimpContainerView *view);
#endif /* __GIMP_CONTAINER_VIEW_UTILS_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTROLLER_EDITOR_H__
#define __GIMP_CONTROLLER_EDITOR_H__
#pragma once
#define GIMP_TYPE_CONTROLLER_EDITOR (gimp_controller_editor_get_type ())
@ -59,6 +58,3 @@ GType gimp_controller_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_controller_editor_new (GimpControllerInfo *info,
GimpContext *context);
#endif /* __GIMP_CONTROLLER_EDITOR_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTROLLER_INFO_H__
#define __GIMP_CONTROLLER_INFO_H__
#pragma once
#include "core/gimpviewable.h"
@ -77,6 +75,3 @@ gboolean gimp_controller_info_get_enabled (GimpControllerInfo *inf
void gimp_controller_info_set_event_snooper (GimpControllerInfo *info,
GimpControllerEventSnooper snooper,
gpointer snooper_data);
#endif /* __GIMP_CONTROLLER_INFO_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTROLLER_KEYBOARD_H__
#define __GIMP_CONTROLLER_KEYBOARD_H__
#pragma once
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h"
@ -51,6 +49,3 @@ GType gimp_controller_keyboard_get_type (void) G_GNUC_CONST;
gboolean gimp_controller_keyboard_key_press (GimpControllerKeyboard *keyboard,
const GdkEventKey *kevent);
#endif /* __GIMP_CONTROLLER_KEYBOARD_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CONTROLLER_WHEEL_H__
#define __GIMP_CONTROLLER_WHEEL_H__
#pragma once
#define GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
#include "libgimpwidgets/gimpcontroller.h"
@ -51,6 +49,3 @@ GType gimp_controller_wheel_get_type (void) G_GNUC_CONST;
gboolean gimp_controller_wheel_scroll (GimpControllerWheel *wheel,
const GdkEventScroll *sevent);
#endif /* __GIMP_CONTROLLER_WHEEL_H__ */

View file

@ -18,10 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_CRITICAL_DIALOG_H__
#define __GIMP_CRITICAL_DIALOG_H__
G_BEGIN_DECLS
#pragma once
#define GIMP_TYPE_CRITICAL_DIALOG (gimp_critical_dialog_get_type ())
@ -69,8 +66,3 @@ void gimp_critical_dialog_add (GtkWidget *dialog,
gboolean is_fatal,
const gchar *program,
gint pid);
G_END_DECLS
#endif /* __GIMP_CRITICAL_DIALOG_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DASHBOARD_H__
#define __GIMP_DASHBOARD_H__
#pragma once
#include "gimpeditor.h"
@ -90,6 +88,3 @@ gboolean gimp_dashboard_get_low_swap_space_warning (GimpDa
void gimp_dashboard_menu_setup (GimpUIManager *manager,
const gchar *ui_path);
#endif /* __GIMP_DASHBOARD_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DASH_EDITOR_H__
#define __GIMP_DASH_EDITOR_H__
#pragma once
#define GIMP_TYPE_DASH_EDITOR (gimp_dash_editor_get_type ())
@ -65,6 +64,3 @@ GtkWidget * gimp_dash_editor_new (GimpStrokeOptions *stroke_options);
void gimp_dash_editor_shift_left (GimpDashEditor *editor);
void gimp_dash_editor_shift_right (GimpDashEditor *editor);
#endif /* __GIMP_DASH_EDITOR_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DATA_EDITOR_H__
#define __GIMP_DATA_EDITOR_H__
#pragma once
#include "gimpeditor.h"
@ -72,6 +70,3 @@ GimpData * gimp_data_editor_get_data (GimpDataEditor *editor);
void gimp_data_editor_set_edit_active (GimpDataEditor *editor,
gboolean edit_active);
gboolean gimp_data_editor_get_edit_active (GimpDataEditor *editor);
#endif /* __GIMP_DATA_EDITOR_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DATA_FACTORY_VIEW_H__
#define __GIMP_DATA_FACTORY_VIEW_H__
#pragma once
#include "gimpcontainereditor.h"
@ -72,6 +70,3 @@ GType gimp_data_factory_view_get_child_type (GimpDataFacto
gboolean gimp_data_factory_view_has_data_new_func (GimpDataFactoryView *factory_view);
gboolean gimp_data_factory_view_have (GimpDataFactoryView *factory_view,
GimpObject *object);
#endif /* __GIMP_DATA_FACTORY_VIEW_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DEVICE_EDITOR_H__
#define __GIMP_DEVICE_EDITOR_H__
#pragma once
#define GIMP_TYPE_DEVICE_EDITOR (gimp_device_editor_get_type ())
@ -46,6 +45,3 @@ struct _GimpDeviceEditorClass
GType gimp_device_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_device_editor_new (Gimp *gimp);
#endif /* __GIMP_DEVICE_EDITOR_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DEVICE_INFO_COORDS_H__
#define __GIMP_DEVICE_INFO_COORDS_H__
#pragma once
gboolean gimp_device_info_get_event_coords (GimpDeviceInfo *info,
@ -38,6 +37,3 @@ gboolean gimp_device_info_get_event_state (GimpDeviceInfo *info,
void gimp_device_info_get_device_state (GimpDeviceInfo *info,
GdkWindow *window,
GdkModifierType *state);
#endif /* __GIMP_DEVICE_INFO_COORDS_H__ */

View file

@ -15,16 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DEVICE_INFO_H__
#define __GIMP_DEVICE_INFO_H__
#pragma once
#include "core/gimptoolpreset.h"
G_BEGIN_DECLS
typedef struct _GimpDeviceKey GimpDeviceKey;
struct _GimpDeviceKey
@ -128,8 +123,3 @@ GimpPadActions * gimp_device_info_get_pad_actions (GimpDeviceInfo *info);
GtkPadController * gimp_device_info_create_pad_controller (GimpDeviceInfo *info,
GimpWindow *window);
G_END_DECLS
#endif /* __GIMP_DEVICE_INFO_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DEVICE_INFO_EDITOR_H__
#define __GIMP_DEVICE_INFO_EDITOR_H__
#pragma once
#define GIMP_TYPE_DEVICE_INFO_EDITOR (gimp_device_info_editor_get_type ())
@ -46,6 +45,3 @@ struct _GimpDeviceInfoEditorClass
GType gimp_device_info_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_device_info_editor_new (GimpDeviceInfo *info);
#endif /* __GIMP_DEVICE_INFO_EDITOR_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DEVICES_H__
#define __GIMP_DEVICES_H__
#pragma once
void gimp_devices_init (Gimp *gimp);
@ -43,6 +42,3 @@ gboolean gimp_devices_check_callback (GtkWidget *widget,
Gimp *gimp);
gboolean gimp_devices_check_change (Gimp *gimp,
GdkDevice *device);
#endif /* __GIMP_DEVICES_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DEVICE_STATUS_H__
#define __GIMP_DEVICE_STATUS_H__
#pragma once
#include "gimpeditor.h"
@ -60,6 +58,3 @@ struct _GimpDeviceStatusClass
GType gimp_device_status_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_device_status_new (Gimp *gimp);
#endif /* __GIMP_DEVICE_STATUS_H__ */

View file

@ -18,12 +18,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DIALOG_FACTORY_H__
#define __GIMP_DIALOG_FACTORY_H__
#pragma once
#include "core/gimpobject.h"
#define GIMP_DIALOG_VISIBILITY_KEY "gimp-dialog-visibility"
typedef enum
@ -205,6 +204,3 @@ gboolean gimp_dialog_factory_get_has_min_size (GtkWindow
GimpDialogFactory * gimp_dialog_factory_get_singleton (void);
void gimp_dialog_factory_set_singleton (GimpDialogFactory *factory);
#endif /* __GIMP_DIALOG_FACTORY_H__ */

View file

@ -21,8 +21,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DND_XDS_H__
#define __GIMP_DND_XDS_H__
#pragma once
void gimp_dnd_xds_source_set (GdkDragContext *context,
@ -30,6 +29,3 @@ void gimp_dnd_xds_source_set (GdkDragContext *context,
void gimp_dnd_xds_save_image (GdkDragContext *context,
GimpImage *image,
GtkSelectionData *selection);
#endif /* __GIMP_DND_XDS_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCK_H__
#define __GIMP_DOCK_H__
#pragma once
#define GIMP_TYPE_DOCK (gimp_dock_get_type ())
@ -105,6 +104,3 @@ void gimp_dock_add_book (GimpDock *dock,
gint index);
void gimp_dock_remove_book (GimpDock *dock,
GimpDockbook *dockbook);
#endif /* __GIMP_DOCK_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCKABLE_H__
#define __GIMP_DOCKABLE_H__
#pragma once
#define GIMP_DOCKABLE_DRAG_OFFSET (-6)
@ -93,6 +92,3 @@ GimpUIManager * gimp_dockable_get_menu (GimpDockable *dockable,
gpointer *popup_data);
void gimp_dockable_detach (GimpDockable *dockable);
#endif /* __GIMP_DOCKABLE_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCKBOOK_H__
#define __GIMP_DOCKBOOK_H__
#pragma once
#define GIMP_TYPE_DOCKBOOK (gimp_dockbook_get_type ())
@ -85,6 +84,3 @@ void gimp_dockbook_add_drag_callback (GimpDockbookDragCallback
gpointer data);
void gimp_dockbook_remove_drag_callback (GimpDockbookDragCallback callback,
gpointer data);
#endif /* __GIMP_DOCKBOOK_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCK_COLUMNS_H__
#define __GIMP_DOCK_COLUMNS_H__
#pragma once
#define GIMP_TYPE_DOCK_COLUMNS (gimp_dock_columns_get_type ())
@ -75,6 +74,3 @@ void gimp_dock_columns_set_context (GimpDockColumns *doc
GimpContext *context);
GimpDialogFactory * gimp_dock_columns_get_dialog_factory (GimpDockColumns *dock_columns);
GimpUIManager * gimp_dock_columns_get_ui_manager (GimpDockColumns *dock_columns);
#endif /* __GIMP_DOCK_COLUMNS_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCK_CONTAINER_H__
#define __GIMP_DOCK_CONTAINER_H__
#pragma once
#define GIMP_TYPE_DOCK_CONTAINER (gimp_dock_container_get_type ())
@ -50,6 +49,3 @@ void gimp_dock_container_add_dock (GimpDockContainer
GimpSessionInfoDock *dock_info);
GimpAlignmentType gimp_dock_container_get_dock_side (GimpDockContainer *container,
GimpDock *dock);
#endif /* __GIMP_DOCK_CONTAINER_H__ */

View file

@ -18,12 +18,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCKED_H__
#define __GIMP_DOCKED_H__
#pragma once
#define GIMP_TYPE_DOCKED (gimp_docked_get_type ())
G_DECLARE_INTERFACE (GimpDocked, gimp_docked, GIMP, DOCKED, GtkWidget)
G_DECLARE_INTERFACE (GimpDocked,
gimp_docked,
GIMP, DOCKED,
GtkWidget)
/**
@ -84,6 +86,3 @@ gboolean gimp_docked_has_button_bar (GimpDocked *docked);
void gimp_docked_set_show_button_bar (GimpDocked *docked,
gboolean show);
gboolean gimp_docked_get_show_button_bar (GimpDocked *docked);
#endif /* __GIMP_DOCKED_H__ */

View file

@ -19,9 +19,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCK_WINDOW_H__
#define __GIMP_DOCK_WINDOW_H__
#pragma once
#include "widgets/gimpwindow.h"
@ -79,7 +77,3 @@ void gimp_dock_window_setup (GimpDockWindow *
gboolean gimp_dock_window_has_toolbox (GimpDockWindow *dock_window);
GimpDockWindow * gimp_dock_window_from_dock (GimpDock *dock);
#endif /* __GIMP_DOCK_WINDOW_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOCUMENT_VIEW_H__
#define __GIMP_DOCUMENT_VIEW_H__
#pragma once
#include "gimpcontainereditor.h"
@ -58,6 +56,3 @@ GtkWidget * gimp_document_view_new (GimpViewType view_type,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_DOCUMENT_VIEW_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DOUBLE_ACTION_H__
#define __GIMP_DOUBLE_ACTION_H__
#pragma once
#include "gimpactionimpl.h"
@ -58,6 +56,3 @@ GimpDoubleAction * gimp_double_action_new (const gchar *name,
const gchar *help_id,
gdouble value,
GimpContext *context);
#endif /* __GIMP_DOUBLE_ACTION_H__ */

View file

@ -15,9 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DYNAMICS_EDITOR_H__
#define __GIMP_DYNAMICS_EDITOR_H__
#pragma once
#include "gimpdataeditor.h"
@ -52,6 +50,3 @@ GType gimp_dynamics_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_dynamics_editor_new (GimpContext *context,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_DYNAMICS_EDITOR_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DYNAMICS_FACTORY_VIEW_H__
#define __GIMP_DYNAMICS_FACTORY_VIEW_H__
#pragma once
#include "gimpdatafactoryview.h"
@ -53,6 +52,3 @@ GtkWidget * gimp_dynamics_factory_view_new (GimpViewType view_type,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_DYNAMICS_FACTORY_VIEW_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_DYNAMICS_OUTPUT_EDITOR_H__
#define __GIMP_DYNAMICS_OUTPUT_EDITOR_H__
#pragma once
#define GIMP_TYPE_DYNAMICS_OUTPUT_EDITOR (gimp_dynamics_output_editor_get_type ())
@ -46,6 +45,3 @@ struct _GimpDynamicsOutputEditorClass
GType gimp_dynamics_output_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_dynamics_output_editor_new (GimpDynamicsOutput *output);
#endif /* __GIMP_DYNAMICS_OUTPUT_EDITOR_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ENUM_ACTION_H__
#define __GIMP_ENUM_ACTION_H__
#pragma once
#include "gimpactionimpl.h"
@ -60,6 +58,3 @@ GimpEnumAction * gimp_enum_action_new (const gchar *name,
gint value,
gboolean value_variable,
GimpContext *context);
#endif /* __GIMP_ENUM_ACTION_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ERROR_CONSOLE_H__
#define __GIMP_ERROR_CONSOLE_H__
#pragma once
#include "gimpeditor.h"
@ -68,6 +66,3 @@ void gimp_error_console_add (GimpErrorConsole *console,
GimpMessageSeverity severity,
const gchar *domain,
const gchar *message);
#endif /* __GIMP_ERROR_CONSOLE_H__ */

View file

@ -18,10 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ERROR_DIALOG_H__
#define __GIMP_ERROR_DIALOG_H__
G_BEGIN_DECLS
#pragma once
#define GIMP_TYPE_ERROR_DIALOG (gimp_error_dialog_get_type ())
@ -57,9 +54,3 @@ void gimp_error_dialog_add (GimpErrorDialog *dialog,
const gchar *icon_name,
const gchar *domain,
const gchar *message);
G_END_DECLS
#endif /* __GIMP_ERROR_DIALOG_H__ */

View file

@ -18,12 +18,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_EXPORT_DIALOG_H__
#define __GIMP_EXPORT_DIALOG_H__
#pragma once
#include "gimpfiledialog.h"
G_BEGIN_DECLS
#define GIMP_TYPE_EXPORT_DIALOG (gimp_export_dialog_get_type ())
#define GIMP_EXPORT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_EXPORT_DIALOG, GimpExportDialog))
@ -55,7 +53,3 @@ GtkWidget * gimp_export_dialog_new (Gimp *gimp);
void gimp_export_dialog_set_image (GimpExportDialog *dialog,
GimpImage *image,
GimpObject *display);
G_END_DECLS
#endif /* __GIMP_EXPORT_DIALOG_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_EXTENSION_DETAILS_H__
#define __GIMP_EXTENSION_DETAILS_H__
#pragma once
#define GIMP_TYPE_EXTENSION_DETAILS (gimp_extension_details_get_type ())
@ -52,6 +51,3 @@ GtkWidget * gimp_extension_details_new (void);
void gimp_extension_details_set (GimpExtensionDetails *details,
GimpExtension *extension);
#endif /* __GIMP_EXTENSION_DETAILS_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_EXTENSION_LIST_H__
#define __GIMP_EXTENSION_LIST_H__
#pragma once
#define GIMP_TYPE_EXTENSION_LIST (gimp_extension_list_get_type ())
@ -44,8 +43,8 @@ struct _GimpExtensionListClass
{
GtkListBoxClass parent_class;
void (* extension_activated) (GimpExtensionList *list,
GimpExtension *extension);
void (* extension_activated) (GimpExtensionList *list,
GimpExtension *extension);
};
@ -57,5 +56,3 @@ void gimp_extension_list_show_system (GimpExtensionList *list);
void gimp_extension_list_show_user (GimpExtensionList *list);
void gimp_extension_list_show_search (GimpExtensionList *list,
const gchar *search_terms);
#endif /* __GIMP_EXTENSION_LIST_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_FG_BG_EDITOR_H__
#define __GIMP_FG_BG_EDITOR_H__
#pragma once
typedef enum
@ -89,6 +88,3 @@ void gimp_fg_bg_editor_set_context (GimpFgBgEditor *editor,
GimpContext *context);
void gimp_fg_bg_editor_set_active (GimpFgBgEditor *editor,
GimpActiveColor active);
#endif /* __GIMP_FG_BG_EDITOR_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_FG_BG_VIEW_H__
#define __GIMP_FG_BG_VIEW_H__
#pragma once
#define GIMP_TYPE_FG_BG_VIEW (gimp_fg_bg_view_get_type ())
@ -53,6 +52,3 @@ GtkWidget * gimp_fg_bg_view_new (GimpContext *context);
void gimp_fg_bg_view_set_context (GimpFgBgView *view,
GimpContext *context);
#endif /* __GIMP_FG_BG_VIEW_H__ */

View file

@ -18,10 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_FILE_DIALOG_H__
#define __GIMP_FILE_DIALOG_H__
G_BEGIN_DECLS
#pragma once
#define GIMP_TYPE_FILE_DIALOG (gimp_file_dialog_get_type ())
@ -99,8 +96,3 @@ void gimp_file_dialog_save_state (GimpFileDialog *dialog,
const gchar *state_name);
void gimp_file_dialog_load_state (GimpFileDialog *dialog,
const gchar *state_name);
G_END_DECLS
#endif /* __GIMP_FILE_DIALOG_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_FILE_PROC_VIEW_H__
#define __GIMP_FILE_PROC_VIEW_H__
#pragma once
#define GIMP_TYPE_FILE_PROC_VIEW (gimp_file_proc_view_get_type ())
@ -61,6 +60,3 @@ gboolean gimp_file_proc_view_set_proc (GimpFileProcView *vie
GimpPlugInProcedure *proc);
gchar * gimp_file_proc_view_get_help_id (GimpFileProcView *view);
#endif /* __GIMP_FILE_PROC_VIEW_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_FONT_FACTORY_VIEW_H__
#define __GIMP_FONT_FACTORY_VIEW_H__
#pragma once
#include "gimpdatafactoryview.h"
@ -53,6 +52,3 @@ GtkWidget * gimp_font_factory_view_new (GimpViewType view_type,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_FONT_FACTORY_VIEW_H__ */

View file

@ -18,13 +18,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_FONT_SELECT_H__
#define __GIMP_FONT_SELECT_H__
#pragma once
#include "gimppdbdialog.h"
G_BEGIN_DECLS
#define GIMP_TYPE_FONT_SELECT (gimp_font_select_get_type ())
#define GIMP_FONT_SELECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_FONT_SELECT, GimpFontSelect))
@ -48,8 +45,3 @@ struct _GimpFontSelectClass
GType gimp_font_select_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_FONT_SELECT_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_GRADIENT_EDITOR_H__
#define __GIMP_GRADIENT_EDITOR_H__
#pragma once
#include "gimpdataeditor.h"
@ -117,6 +115,3 @@ void gimp_gradient_editor_zoom (GimpGradientEditor *editor,
GimpZoomType zoom_type,
gdouble delta,
gdouble zoom_focus_x);
#endif /* __GIMP_GRADIENT_EDITOR_H__ */

View file

@ -18,13 +18,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_GRADIENT_SELECT_H__
#define __GIMP_GRADIENT_SELECT_H__
#pragma once
#include "gimppdbdialog.h"
G_BEGIN_DECLS
#define GIMP_TYPE_GRADIENT_SELECT (gimp_gradient_select_get_type ())
#define GIMP_GRADIENT_SELECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_GRADIENT_SELECT, GimpGradientSelect))
@ -50,8 +47,3 @@ struct _GimpGradientSelectClass
GType gimp_gradient_select_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GIMP_GRADIENT_SELECT_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_GRID_EDITOR_H__
#define __GIMP_GRID_EDITOR_H__
#pragma once
#define GIMP_TYPE_GRID_EDITOR (gimp_grid_editor_get_type ())
@ -54,6 +53,3 @@ GtkWidget * gimp_grid_editor_new (GimpGrid *grid,
GimpContext *context,
gdouble xresolution,
gdouble yresolution);
#endif /* __GIMP_GRID_EDITOR_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_HANDLE_BAR_H__
#define __GIMP_HANDLE_BAR_H__
#pragma once
#define GIMP_TYPE_HANDLE_BAR (gimp_handle_bar_get_type ())
@ -68,6 +67,3 @@ gboolean gimp_handle_bar_get_limits (GimpHandleBar *bar,
void gimp_handle_bar_connect_events (GimpHandleBar *bar,
GtkWidget *event_source);
#endif /* __GIMP_HANDLE_BAR_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_HELP_IDS_H__
#define __GIMP_HELP_IDS_H__
#pragma once
#define GIMP_HELP_MAIN "gimp-main"
@ -804,5 +803,3 @@
#define GIMP_HELP_EXTENSIONS_INSTALLED "gimp-extensions-installed"
#define GIMP_HELP_EXTENSIONS_SYSTEM "gimp-extensions-system"
#define GIMP_HELP_EXTENSIONS_INSTALL "gimp-extensions-install"
#endif /* __GIMP_HELP_IDS_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_HELP_H__
#define __GIMP_HELP_H__
#pragma once
/* the main help function
@ -47,5 +46,3 @@ void gimp_help_user_manual_changed (Gimp *gimp);
GList * gimp_help_get_installed_languages (void);
#endif /* __GIMP_HELP_H__ */

View file

@ -15,8 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_HISTOGRAM_VIEW_H__
#define __GIMP_HISTOGRAM_VIEW_H__
#pragma once
#define GIMP_TYPE_HISTOGRAM_VIEW (gimp_histogram_view_get_type ())
@ -85,6 +84,3 @@ void gimp_histogram_view_set_range (GimpHistogramView *view,
void gimp_histogram_view_get_range (GimpHistogramView *view,
gint *start,
gint *end);
#endif /* __GIMP_HISTOGRAM_VIEW_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_IMAGE_COMMENT_EDITOR_H__
#define __GIMP_IMAGE_COMMENT_EDITOR_H__
#pragma once
#include "gimpimageparasiteview.h"
@ -52,6 +50,3 @@ struct _GimpImageCommentEditorClass
GType gimp_image_comment_editor_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_image_comment_editor_new (GimpImage *image);
#endif /* __GIMP_IMAGE_COMMENT_EDITOR_H__ */

View file

@ -15,9 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_IMAGE_EDITOR_H__
#define __GIMP_IMAGE_EDITOR_H__
#pragma once
#include "gimpeditor.h"
@ -55,6 +53,3 @@ GType gimp_image_editor_get_type (void) G_GNUC_CONST;
void gimp_image_editor_set_image (GimpImageEditor *editor,
GimpImage *image);
GimpImage * gimp_image_editor_get_image (GimpImageEditor *editor);
#endif /* __GIMP_IMAGE_EDITOR_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_IMAGE_PARASITE_VIEW_H__
#define __GIMP_IMAGE_PARASITE_VIEW_H__
#pragma once
#define GIMP_TYPE_IMAGE_PARASITE_VIEW (gimp_image_parasite_view_get_type ())
@ -55,6 +54,3 @@ GtkWidget * gimp_image_parasite_view_new (GimpImage *image,
const gchar *parasite);
GimpImage * gimp_image_parasite_view_get_image (GimpImageParasiteView *view);
const GimpParasite * gimp_image_parasite_view_get_parasite (GimpImageParasiteView *view);
#endif /* __GIMP_IMAGE_PARASITE_VIEW_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_IMAGE_PROFILE_VIEW_H__
#define __GIMP_IMAGE_PROFILE_VIEW_H__
#pragma once
#include "gimpimageparasiteview.h"
@ -51,6 +49,3 @@ struct _GimpImageProfileViewClass
GType gimp_image_profile_view_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_image_profile_view_new (GimpImage *image);
#endif /* __GIMP_IMAGE_PROFILE_VIEW_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_IMAGE_VIEW_H__
#define __GIMP_IMAGE_VIEW_H__
#pragma once
#include "gimpcontainereditor.h"
@ -58,6 +56,3 @@ GtkWidget * gimp_image_view_new (GimpViewType view_type,
gint view_size,
gint view_border_width,
GimpMenuFactory *menu_factory);
#endif /* __GIMP_IMAGE_VIEW_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_ITEM_TREE_VIEW_H__
#define __GIMP_ITEM_TREE_VIEW_H__
#pragma once
#include "gimpcontainertreeview.h"
@ -149,6 +147,3 @@ gint gimp_item_tree_view_get_drop_index (GimpItemTreeView *view,
GimpViewable *dest_viewable,
GtkTreeViewDropPosition drop_pos,
GimpViewable **parent);
#endif /* __GIMP_ITEM_TREE_VIEW_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_LANGUAGE_COMBO_BOX_H__
#define __GIMP_LANGUAGE_COMBO_BOX_H__
#pragma once
#define GIMP_TYPE_LANGUAGE_COMBO_BOX (gimp_language_combo_box_get_type ())
@ -46,6 +45,3 @@ GtkWidget * gimp_language_combo_box_new (gboolean manual_l18n,
gchar * gimp_language_combo_box_get_code (GimpLanguageComboBox *combo);
gboolean gimp_language_combo_box_set_code (GimpLanguageComboBox *combo,
const gchar *code);
#endif /* __GIMP_LANGUAGE_COMBO_BOX_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_LANGUAGE_ENTRY_H__
#define __GIMP_LANGUAGE_ENTRY_H__
#pragma once
#define GIMP_TYPE_LANGUAGE_ENTRY (gimp_language_entry_get_type ())
@ -45,6 +44,3 @@ GtkWidget * gimp_language_entry_new (void);
const gchar * gimp_language_entry_get_code (GimpLanguageEntry *entry);
gboolean gimp_language_entry_set_code (GimpLanguageEntry *entry,
const gchar *code);
#endif /* __GIMP_LANGUAGE_ENTRY_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_LANGUAGE_STORE_H__
#define __GIMP_LANGUAGE_STORE_H__
#pragma once
enum
@ -61,5 +60,3 @@ GtkListStore * gimp_language_store_new (void);
gboolean gimp_language_store_lookup (GimpLanguageStore *store,
const gchar *code,
GtkTreeIter *iter);
#endif /* __GIMP_LANGUAGE_STORE_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_LAYER_MODE_BOX_H__
#define __GIMP_LAYER_MODE_BOX_H__
#pragma once
#define GIMP_TYPE_LAYER_MODE_BOX (gimp_layer_mode_box_get_type ())
@ -62,6 +61,3 @@ void gimp_layer_mode_box_set_label (GimpLayerModeBox *
const gchar *label);
void gimp_layer_mode_box_set_ellipsize (GimpLayerModeBox *box,
PangoEllipsizeMode mode);
#endif /* __GIMP_LAYER_MODE_BOX_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_LAYER_MODE_COMBO_BOX_H__
#define __GIMP_LAYER_MODE_COMBO_BOX_H__
#pragma once
#define GIMP_TYPE_LAYER_MODE_COMBO_BOX (gimp_layer_mode_combo_box_get_type ())
@ -61,6 +60,3 @@ GimpLayerMode gimp_layer_mode_combo_box_get_mode (GimpLayerModeCombo
void gimp_layer_mode_combo_box_set_group (GimpLayerModeComboBox *combo,
GimpLayerModeGroup group);
GimpLayerModeGroup gimp_layer_mode_combo_box_get_group (GimpLayerModeComboBox *combo);
#endif /* __GIMP_LAYER_MODE_COMBO_BOX_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_LAYER_TREE_VIEW_H__
#define __GIMP_LAYER_TREE_VIEW_H__
#pragma once
#include "gimpdrawabletreeview.h"
@ -50,6 +48,3 @@ struct _GimpLayerTreeViewClass
GType gimp_layer_tree_view_get_type (void) G_GNUC_CONST;
#endif /* __GIMP_LAYER_TREE_VIEW_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MENU_H__
#define __GIMP_MENU_H__
#pragma once
#define GIMP_TYPE_MENU (gimp_menu_get_type ())
@ -53,6 +52,3 @@ GtkWidget * gimp_menu_new (GimpUIManager *manager);
void gimp_menu_merge (GimpMenu *menu,
GimpMenu *menu2,
gboolean top);
#endif /* __GIMP_MENU_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MENU_BAR_H__
#define __GIMP_MENU_BAR_H__
#pragma once
#define GIMP_TYPE_MENU_BAR (gimp_menu_bar_get_type ())
@ -35,9 +34,9 @@ typedef struct _GimpMenuBarClass GimpMenuBarClass;
struct _GimpMenuBar
{
GtkMenuBar parent_instance;
GtkMenuBar parent_instance;
GimpMenuBarPrivate *priv;
GimpMenuBarPrivate *priv;
};
struct _GimpMenuBarClass
@ -46,10 +45,7 @@ struct _GimpMenuBarClass
};
GType gimp_menu_bar_get_type (void) G_GNUC_CONST;
GType gimp_menu_bar_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_menu_bar_new (GimpMenuModel *model,
GimpUIManager *manager);
#endif /* __GIMP_MENU_BAR_H__ */
GtkWidget * gimp_menu_bar_new (GimpMenuModel *model,
GimpUIManager *manager);

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MENU_DOCK_H__
#define __GIMP_MENU_DOCK_H__
#pragma once
#include "gimpdock.h"
@ -51,7 +49,3 @@ struct _GimpMenuDockClass
GType gimp_menu_dock_get_type (void) G_GNUC_CONST;
GtkWidget * gimp_menu_dock_new (void);
#endif /* __GIMP_MENU_DOCK_H__ */

View file

@ -18,9 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MENU_FACTORY_H__
#define __GIMP_MENU_FACTORY_H__
#pragma once
#include "core/gimpobject.h"
@ -75,6 +73,3 @@ GimpUIManager * gimp_menu_factory_get_manager (GimpMenuFactory *fac
void gimp_menu_factory_delete_manager (GimpMenuFactory *factory,
const gchar *identifier,
gpointer callback_data);
#endif /* __GIMP_MENU_FACTORY_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MENU_MODEL_H__
#define __GIMP_MENU_MODEL_H__
#pragma once
#define GIMP_TYPE_MENU_MODEL (gimp_menu_model_get_type ())
@ -62,6 +61,3 @@ void gimp_menu_model_set_title (GimpMenuModel *model,
void gimp_menu_model_set_color (GimpMenuModel *model,
const gchar *path,
GeglColor *color);
#endif /* __GIMP_MENU_MODEL_H__ */

View file

@ -18,8 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MENU_SHELL_H__
#define __GIMP_MENU_SHELL_H__
#pragma once
#define GIMP_TYPE_MENU_SHELL (gimp_menu_shell_get_type ())
@ -85,6 +84,3 @@ void gimp_menu_shell_set_property (GObject *object,
GParamSpec *pspec);
GimpUIManager * gimp_menu_shell_get_manager (GimpMenuShell *shell);
#endif /* __GIMP_MENU_SHELL_H__ */

View file

@ -18,10 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_MESSAGE_BOX_H__
#define __GIMP_MESSAGE_BOX_H__
G_BEGIN_DECLS
#pragma once
#define GIMP_TYPE_MESSAGE_BOX (gimp_message_box_get_type ())
@ -65,8 +62,3 @@ void gimp_message_box_set_markup (GimpMessageBox *box,
const gchar *format,
...) G_GNUC_PRINTF (2, 3);
gint gimp_message_box_repeat (GimpMessageBox *box);
G_END_DECLS
#endif /* __GIMP_MESSAGE_BOX_H__ */

Some files were not shown because too many files have changed in this diff Show more