Commit 3fa016fb authored by Jehan's avatar Jehan

app: clean out tab indentations.

parent 0d89f5b1
...@@ -166,7 +166,7 @@ debug_dump_managers_cmd_callback (GtkAction *action, ...@@ -166,7 +166,7 @@ debug_dump_managers_cmd_callback (GtkAction *action,
if (managers) if (managers)
{ {
g_print ("\n\n" g_print ("\n\n"
"========================================\n" "========================================\n"
"UI Manager: %s\n" "UI Manager: %s\n"
"========================================\n\n", "========================================\n\n",
entry->identifier); entry->identifier);
......
...@@ -144,7 +144,7 @@ select_actions_setup (GimpActionGroup *group) ...@@ -144,7 +144,7 @@ select_actions_setup (GimpActionGroup *group)
{ {
gimp_action_group_add_actions (group, "select-action", gimp_action_group_add_actions (group, "select-action",
select_actions, select_actions,
G_N_ELEMENTS (select_actions)); G_N_ELEMENTS (select_actions));
} }
void void
......
...@@ -475,8 +475,8 @@ select_feather_callback (GtkWidget *widget, ...@@ -475,8 +475,8 @@ select_feather_callback (GtkWidget *widget,
gdouble radius_y; gdouble radius_y;
g_object_set (config, g_object_set (config,
"selection-feather-radius", size, "selection-feather-radius", size,
NULL); NULL);
radius_x = config->selection_feather_radius; radius_x = config->selection_feather_radius;
radius_y = config->selection_feather_radius; radius_y = config->selection_feather_radius;
...@@ -522,11 +522,11 @@ select_border_callback (GtkWidget *widget, ...@@ -522,11 +522,11 @@ select_border_callback (GtkWidget *widget,
gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (combo), &border_style); gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (combo), &border_style);
g_object_set (config, g_object_set (config,
"selection-border-radius", size, "selection-border-radius", size,
"selection-border-style", border_style, "selection-border-style", border_style,
"selection-border-edge-lock", "selection-border-edge-lock",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)), gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)),
NULL); NULL);
radius_x = ROUND (config->selection_border_radius); radius_x = ROUND (config->selection_border_radius);
radius_y = ROUND (config->selection_border_radius); radius_y = ROUND (config->selection_border_radius);
...@@ -550,8 +550,8 @@ select_border_callback (GtkWidget *widget, ...@@ -550,8 +550,8 @@ select_border_callback (GtkWidget *widget,
gimp_channel_border (gimp_image_get_mask (image), radius_x, radius_y, gimp_channel_border (gimp_image_get_mask (image), radius_x, radius_y,
config->selection_border_style, config->selection_border_style,
config->selection_border_edge_lock, config->selection_border_edge_lock,
TRUE); TRUE);
gimp_image_flush (image); gimp_image_flush (image);
} }
...@@ -567,8 +567,8 @@ select_grow_callback (GtkWidget *widget, ...@@ -567,8 +567,8 @@ select_grow_callback (GtkWidget *widget,
gdouble radius_y; gdouble radius_y;
g_object_set (config, g_object_set (config,
"selection-grow-radius", size, "selection-grow-radius", size,
NULL); NULL);
radius_x = ROUND (config->selection_grow_radius); radius_x = ROUND (config->selection_grow_radius);
radius_y = ROUND (config->selection_grow_radius); radius_y = ROUND (config->selection_grow_radius);
...@@ -609,10 +609,10 @@ select_shrink_callback (GtkWidget *widget, ...@@ -609,10 +609,10 @@ select_shrink_callback (GtkWidget *widget,
button = g_object_get_data (G_OBJECT (widget), "edge-lock-toggle"); button = g_object_get_data (G_OBJECT (widget), "edge-lock-toggle");
g_object_set (config, g_object_set (config,
"selection-shrink-radius", size, "selection-shrink-radius", size,
"selection-shrink-edge-lock", "selection-shrink-edge-lock",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)), gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)),
NULL); NULL);
radius_x = ROUND (config->selection_shrink_radius); radius_x = ROUND (config->selection_shrink_radius);
radius_y = ROUND (config->selection_shrink_radius); radius_y = ROUND (config->selection_shrink_radius);
...@@ -636,6 +636,6 @@ select_shrink_callback (GtkWidget *widget, ...@@ -636,6 +636,6 @@ select_shrink_callback (GtkWidget *widget,
gimp_channel_shrink (gimp_image_get_mask (image), radius_x, radius_y, gimp_channel_shrink (gimp_image_get_mask (image), radius_x, radius_y,
config->selection_shrink_edge_lock, config->selection_shrink_edge_lock,
TRUE); TRUE);
gimp_image_flush (image); gimp_image_flush (image);
} }
...@@ -185,8 +185,8 @@ text_tool_direction_cmd_callback (GtkAction *action, ...@@ -185,8 +185,8 @@ text_tool_direction_cmd_callback (GtkAction *action,
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action)); value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
g_object_set (text_tool->proxy, g_object_set (text_tool->proxy,
"base-direction", (GimpTextDirection) value, "base-direction", (GimpTextDirection) value,
NULL); NULL);
} }
...@@ -194,8 +194,8 @@ text_tool_direction_cmd_callback (GtkAction *action, ...@@ -194,8 +194,8 @@ text_tool_direction_cmd_callback (GtkAction *action,
static void static void
text_tool_load_dialog_response (GtkWidget *dialog, text_tool_load_dialog_response (GtkWidget *dialog,
gint response_id, gint response_id,
GimpTextTool *tool) GimpTextTool *tool)
{ {
if (response_id == GTK_RESPONSE_OK) if (response_id == GTK_RESPONSE_OK)
{ {
......
...@@ -223,9 +223,9 @@ app_run (const gchar *full_prog_name, ...@@ -223,9 +223,9 @@ app_run (const gchar *full_prog_name,
gimp_user_install_run (install); gimp_user_install_run (install);
#else #else
if (! (no_interface ? if (! (no_interface ?
gimp_user_install_run (install) : gimp_user_install_run (install) :
user_install_dialog_run (install))) user_install_dialog_run (install)))
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
#endif #endif
gimp_user_install_free (install); gimp_user_install_free (install);
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
static GtkWidget * user_install_dialog_new (GimpUserInstall *install); static GtkWidget * user_install_dialog_new (GimpUserInstall *install);
static void user_install_dialog_log (const gchar *message, static void user_install_dialog_log (const gchar *message,
gboolean error, gboolean error,
gpointer data); gpointer data);
gboolean gboolean
...@@ -58,8 +58,8 @@ user_install_dialog_run (GimpUserInstall *install) ...@@ -58,8 +58,8 @@ user_install_dialog_run (GimpUserInstall *install)
if (! success) if (! success)
{ {
g_signal_connect (dialog, "response", g_signal_connect (dialog, "response",
G_CALLBACK (gtk_main_quit), G_CALLBACK (gtk_main_quit),
NULL); NULL);
gtk_widget_show (dialog); gtk_widget_show (dialog);
...@@ -83,18 +83,18 @@ user_install_dialog_new (GimpUserInstall *install) ...@@ -83,18 +83,18 @@ user_install_dialog_new (GimpUserInstall *install)
gimp_icons_init (); gimp_icons_init ();
dialog = gimp_message_dialog_new (_("GIMP User Installation"), dialog = gimp_message_dialog_new (_("GIMP User Installation"),
GIMP_STOCK_WILBER_EEK, GIMP_STOCK_WILBER_EEK,
NULL, 0, NULL, NULL, NULL, 0, NULL, NULL,
GTK_STOCK_QUIT, GTK_RESPONSE_OK, GTK_STOCK_QUIT, GTK_RESPONSE_OK,
NULL); NULL);
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box, gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("User installation failed!")); _("User installation failed!"));
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box, gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("The GIMP user installation failed; " _("The GIMP user installation failed; "
"see the log for details.")); "see the log for details."));
frame = gimp_frame_new (_("Installation Log")); frame = gimp_frame_new (_("Installation Log"));
gtk_container_set_border_width (GTK_CONTAINER (frame), 12); gtk_container_set_border_width (GTK_CONTAINER (frame), 12);
......
...@@ -266,7 +266,7 @@ gimp_display_shell_close_name_changed (GimpImage *image, ...@@ -266,7 +266,7 @@ gimp_display_shell_close_name_changed (GimpImage *image,
if (GTK_IS_WINDOW (window)) if (GTK_IS_WINDOW (window))
{ {
gchar *title = g_strdup_printf (_("Close %s"), gchar *title = g_strdup_printf (_("Close %s"),
gimp_image_get_display_name (image)); gimp_image_get_display_name (image));
gtk_window_set_title (GTK_WINDOW (window), title); gtk_window_set_title (GTK_WINDOW (window), title);
g_free (title); g_free (title);
......
...@@ -62,7 +62,7 @@ gint GIMP_DISPLAY_RENDER_BUF_HEIGHT = 256; ...@@ -62,7 +62,7 @@ gint GIMP_DISPLAY_RENDER_BUF_HEIGHT = 256;
static RTreeNode * static RTreeNode *
rtree_node_create (RTree *rtree, rtree_node_create (RTree *rtree,
RTreeNode **prev, RTreeNode **prev,
gint x, gint x,
gint y, gint y,
gint w, gint w,
gint h) gint h)
...@@ -98,7 +98,7 @@ rtree_node_destroy (RTree *rtree, ...@@ -98,7 +98,7 @@ rtree_node_destroy (RTree *rtree,
for (i = 0; i < 2; i++) for (i = 0; i < 2; i++)
{ {
if (node->children[i]) if (node->children[i])
rtree_node_destroy (rtree, node->children[i]); rtree_node_destroy (rtree, node->children[i]);
} }
g_slice_free (RTreeNode, node); g_slice_free (RTreeNode, node);
...@@ -107,7 +107,7 @@ rtree_node_destroy (RTree *rtree, ...@@ -107,7 +107,7 @@ rtree_node_destroy (RTree *rtree,
static RTreeNode * static RTreeNode *
rtree_node_insert (RTree *rtree, rtree_node_insert (RTree *rtree,
RTreeNode **prev, RTreeNode **prev,
RTreeNode *node, RTreeNode *node,
gint w, gint w,
gint h) gint h)
{ {
...@@ -119,23 +119,23 @@ rtree_node_insert (RTree *rtree, ...@@ -119,23 +119,23 @@ rtree_node_insert (RTree *rtree,
gint hh = node->h - h; gint hh = node->h - h;
if (ww >= hh) if (ww >= hh)
{ {
node->children[0] = rtree_node_create (rtree, prev, node->children[0] = rtree_node_create (rtree, prev,
node->x + w, node->y, node->x + w, node->y,
ww, node->h); ww, node->h);
node->children[1] = rtree_node_create (rtree, prev, node->children[1] = rtree_node_create (rtree, prev,
node->x, node->y + h, node->x, node->y + h,
w, hh); w, hh);
} }
else else
{ {
node->children[0] = rtree_node_create (rtree, prev, node->children[0] = rtree_node_create (rtree, prev,
node->x, node->y + h, node->x, node->y + h,
node->w, hh); node->w, hh);
node->children[1] = rtree_node_create (rtree, prev, node->children[1] = rtree_node_create (rtree, prev,
node->x + w, node->y, node->x + w, node->y,
ww, h); ww, h);
} }
} }
return node; return node;
...@@ -182,7 +182,7 @@ rtree_reset (RTree *rtree) ...@@ -182,7 +182,7 @@ rtree_reset (RTree *rtree)
for (i = 0; i < 2; i++) for (i = 0; i < 2; i++)
{ {
if (rtree->root.children[i] == NULL) if (rtree->root.children[i] == NULL)
continue; continue;
rtree_node_destroy (rtree, rtree->root.children[i]); rtree_node_destroy (rtree, rtree->root.children[i]);
rtree->root.children[i] = NULL; rtree->root.children[i] = NULL;
...@@ -255,8 +255,8 @@ gimp_display_xfer_realize (GtkWidget *widget) ...@@ -255,8 +255,8 @@ gimp_display_xfer_realize (GtkWidget *widget)
xfer->page = 0; xfer->page = 0;
g_object_set_data_full (G_OBJECT (screen), g_object_set_data_full (G_OBJECT (screen),
"gimp-display-xfer", "gimp-display-xfer",
xfer, xfer_destroy); xfer, xfer_destroy);
} }
return xfer; return xfer;
...@@ -264,15 +264,15 @@ gimp_display_xfer_realize (GtkWidget *widget) ...@@ -264,15 +264,15 @@ gimp_display_xfer_realize (GtkWidget *widget)
cairo_surface_t * cairo_surface_t *
gimp_display_xfer_get_surface (GimpDisplayXfer *xfer, gimp_display_xfer_get_surface (GimpDisplayXfer *xfer,
gint w, gint w,
gint h, gint h,
gint *src_x, gint *src_x,
gint *src_y) gint *src_y)
{ {
RTreeNode *node; RTreeNode *node;
g_assert (w <= GIMP_DISPLAY_RENDER_BUF_WIDTH * GIMP_DISPLAY_RENDER_MAX_SCALE && g_assert (w <= GIMP_DISPLAY_RENDER_BUF_WIDTH * GIMP_DISPLAY_RENDER_MAX_SCALE &&
h <= GIMP_DISPLAY_RENDER_BUF_HEIGHT * GIMP_DISPLAY_RENDER_MAX_SCALE); h <= GIMP_DISPLAY_RENDER_BUF_HEIGHT * GIMP_DISPLAY_RENDER_MAX_SCALE);
node = rtree_insert (&xfer->rtree, w, h); node = rtree_insert (&xfer->rtree, w, h);
if (node == NULL) if (node == NULL)
......
...@@ -664,7 +664,7 @@ file_open_layers (Gimp *gimp, ...@@ -664,7 +664,7 @@ file_open_layers (Gimp *gimp,
else else
{ {
g_set_error_literal (error, G_FILE_ERROR, G_FILE_ERROR_FAILED, g_set_error_literal (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Image doesn't contain any layers")); _("Image doesn't contain any layers"));
*status = GIMP_PDB_EXECUTION_ERROR; *status = GIMP_PDB_EXECUTION_ERROR;
} }
......
...@@ -76,9 +76,9 @@ file_utils_filename_is_uri (const gchar *filename, ...@@ -76,9 +76,9 @@ file_utils_filename_is_uri (const gchar *filename,
if (! g_utf8_validate (filename, -1, NULL)) if (! g_utf8_validate (filename, -1, NULL))
{ {
g_set_error_literal (error, g_set_error_literal (error,
G_CONVERT_ERROR, G_CONVERT_ERROR,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
_("Invalid character sequence in URI")); _("Invalid character sequence in URI"));
return FALSE; return FALSE;
} }
...@@ -115,9 +115,9 @@ file_utils_filename_to_file (Gimp *gimp, ...@@ -115,9 +115,9 @@ file_utils_filename_to_file (Gimp *gimp,
else else
{ {
g_set_error_literal (error, g_set_error_literal (error,
G_CONVERT_ERROR, G_CONVERT_ERROR,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
_("Invalid character sequence in URI")); _("Invalid character sequence in URI"));
return NULL; return NULL;
} }
} }
......
...@@ -68,8 +68,8 @@ static gboolean gimp_dbus_service_batch_run (GimpDBusServiceUI *servi ...@@ -68,8 +68,8 @@ static gboolean gimp_dbus_service_batch_run (GimpDBusServiceUI *servi
const gchar *batch_command); const gchar *batch_command);
static void gimp_dbus_service_gimp_opened (Gimp *gimp, static void gimp_dbus_service_gimp_opened (Gimp *gimp,
GFile *file, GFile *file,
GimpDBusService *service); GimpDBusService *service);
static gboolean gimp_dbus_service_queue_open (GimpDBusService *service, static gboolean gimp_dbus_service_queue_open (GimpDBusService *service,
const gchar *uri, const gchar *uri,
...@@ -132,8 +132,8 @@ gimp_dbus_service_new (Gimp *gimp) ...@@ -132,8 +132,8 @@ gimp_dbus_service_new (Gimp *gimp)
service->gimp = gimp; service->gimp = gimp;
g_signal_connect_object (gimp, "image-opened", g_signal_connect_object (gimp, "image-opened",
G_CALLBACK (gimp_dbus_service_gimp_opened), G_CALLBACK (gimp_dbus_service_gimp_opened),
service, 0); service, 0);
return G_OBJECT (service); return G_OBJECT (service);
} }
...@@ -244,8 +244,8 @@ gimp_dbus_service_batch_run (GimpDBusServiceUI *service, ...@@ -244,8 +244,8 @@ gimp_dbus_service_batch_run (GimpDBusServiceUI *service,
static void static void
gimp_dbus_service_gimp_opened (Gimp *gimp, gimp_dbus_service_gimp_opened (Gimp *gimp,
GFile *file, GFile *file,
GimpDBusService *service) GimpDBusService *service)
{ {
gchar *uri = g_file_get_uri (file); gchar *uri = g_file_get_uri (file);
......
...@@ -158,8 +158,8 @@ splash_create (gboolean be_verbose, ...@@ -158,8 +158,8 @@ splash_create (gboolean be_verbose,
g_object_unref (pixbuf); g_object_unref (pixbuf);
g_signal_connect_after (splash->area, "expose-event", g_signal_connect_after (splash->area, "expose-event",
G_CALLBACK (splash_area_expose), G_CALLBACK (splash_area_expose),
splash); splash);
/* add a progress bar */ /* add a progress bar */
splash->progress = gtk_progress_bar_new (); splash->progress = gtk_progress_bar_new ();
......
...@@ -523,7 +523,7 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config, ...@@ -523,7 +523,7 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
if (strcmp (line, "# GIMP Curves File") != 0) if (strcmp (line, "# GIMP Curves File") != 0)
{ {
g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE, g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("not a GIMP Curves file")); _("not a GIMP Curves file"));
g_object_unref (data_input); g_object_unref (data_input);
g_free (line); g_free (line);
return FALSE; return FALSE;
...@@ -553,8 +553,8 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config, ...@@ -553,8 +553,8 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
sscanf (y_str, "%d", &value[i][j]) != 1) sscanf (y_str, "%d", &value[i][j]) != 1)
{ {
g_set_error_literal (error, g_set_error_literal (error,
GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("Parse error, didn't find 2 integers")); _("Parse error, didn't find 2 integers"));
g_free (x_str); g_free (x_str);
g_free (y_str); g_free (y_str);
g_object_unref (data_input); g_object_unref (data_input);
......
...@@ -775,7 +775,7 @@ gimp_levels_config_load_cruft (GimpLevelsConfig *config, ...@@ -775,7 +775,7 @@ gimp_levels_config_load_cruft (GimpLevelsConfig *config,
if (strcmp (line, "# GIMP Levels File") != 0) if (strcmp (line, "# GIMP Levels File") != 0)
{ {
g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE, g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("not a GIMP Levels file")); _("not a GIMP Levels file"));
g_object_unref (data_input); g_object_unref (data_input);
g_free (line); g_free (line);
return FALSE; return FALSE;
...@@ -843,7 +843,7 @@ gimp_levels_config_load_cruft (GimpLevelsConfig *config, ...@@ -843,7 +843,7 @@ gimp_levels_config_load_cruft (GimpLevelsConfig *config,
g_object_unref (data_input); g_object_unref (data_input);
g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE, g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("parse error")); _("parse error"));
return FALSE; return FALSE;
} }
......
...@@ -264,7 +264,7 @@ gimp_operation_blend_class_init (GimpOperationBlendClass *klass) ...@@ -264,7 +264,7 @@ gimp_operation_blend_class_init (GimpOperationBlendClass *klass)
g_param_spec_double ("offset", g_param_spec_double ("offset",
"Offset", "Offset",
"Offset relates to the starting and ending coordinates " "Offset relates to the starting and ending coordinates "
"specified for the blend. This parameter is mode dependent.", "specified for the blend. This parameter is mode dependent.",
0, G_MAXDOUBLE, 0, 0, G_MAXDOUBLE, 0,
G_PARAM_READWRITE | G_PARAM_READWRITE |
G_PARAM_CONSTRUCT)); G_PARAM_CONSTRUCT));
......
...@@ -73,7 +73,7 @@ gimp_pdb_get_brush (Gimp *gimp, ...@@ -73,7 +73,7 @@ gimp_pdb_get_brush (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty brush name")); _("Invalid empty brush name"));
return NULL; return NULL;
} }
...@@ -134,7 +134,7 @@ gimp_pdb_get_dynamics (Gimp *gimp, ...@@ -134,7 +134,7 @@ gimp_pdb_get_dynamics (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty paint dynamics name")); _("Invalid empty paint dynamics name"));
return NULL; return NULL;
} }
...@@ -169,7 +169,7 @@ gimp_pdb_get_mybrush (Gimp *gimp, ...@@ -169,7 +169,7 @@ gimp_pdb_get_mybrush (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty MyPaint brush name")); _("Invalid empty MyPaint brush name"));
return NULL; return NULL;
} }
...@@ -203,7 +203,7 @@ gimp_pdb_get_pattern (Gimp *gimp, ...@@ -203,7 +203,7 @@ gimp_pdb_get_pattern (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty pattern name")); _("Invalid empty pattern name"));
return NULL; return NULL;
} }
...@@ -232,7 +232,7 @@ gimp_pdb_get_gradient (Gimp *gimp, ...@@ -232,7 +232,7 @@ gimp_pdb_get_gradient (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty gradient name")); _("Invalid empty gradient name"));
return NULL; return NULL;
} }
...@@ -267,7 +267,7 @@ gimp_pdb_get_palette (Gimp *gimp, ...@@ -267,7 +267,7 @@ gimp_pdb_get_palette (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty palette name")); _("Invalid empty palette name"));
return NULL; return NULL;
} }
...@@ -301,7 +301,7 @@ gimp_pdb_get_font (Gimp *gimp, ...@@ -301,7 +301,7 @@ gimp_pdb_get_font (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty font name")); _("Invalid empty font name"));
return NULL; return NULL;
} }
...@@ -330,7 +330,7 @@ gimp_pdb_get_buffer (Gimp *gimp, ...@@ -330,7 +330,7 @@ gimp_pdb_get_buffer (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty buffer name")); _("Invalid empty buffer name"));
return NULL; return NULL;
} }
...@@ -359,7 +359,7 @@ gimp_pdb_get_paint_info (Gimp *gimp, ...@@ -359,7 +359,7 @@ gimp_pdb_get_paint_info (Gimp *gimp,
if (! name || ! strlen (name)) if (! name || ! strlen (name))
{ {
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT, g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty paint method name")); _("Invalid empty paint method name"));
return NULL; return NULL;
} }
......
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
static GimpGradient * static GimpGradient *
gradient_get (Gimp *gimp, gradient_get (Gimp *gimp,
const gchar *name, const gchar *name,
gboolean writable, gboolean writable,
gint segment, gint segment,
GimpGradientSegment **seg, GimpGradientSegment **seg,
GError **error) GError **error)
{ {
GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, writable, error); GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, writable, error);
...@@ -69,7 +69,7 @@ gradient_get_range (Gimp *gimp, ...@@ -69,7 +69,7 @@ gradient_get_range (Gimp *gimp,
gint end_segment, gint end_segment,
GimpGradientSegment **start_seg, GimpGradientSegment **start_seg,
GimpGradientSegment **end_seg, GimpGradientSegment **end_seg,
GError **error) GError **error)
{ {
GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, TRUE, error); GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, TRUE, error);
......
...@@ -338,7 +338,7 @@ gaussian_blur (GimpDrawable *drawable, ...@@ -338,7 +338,7 @@ gaussian_blur (GimpDrawable *drawable,