app: clean out tab indentations.

This commit is contained in:
Jehan 2016-12-21 04:05:32 +01:00
parent 0d89f5b1e2
commit 3fa016fb4b
35 changed files with 202 additions and 202 deletions

View File

@ -166,7 +166,7 @@ debug_dump_managers_cmd_callback (GtkAction *action,
if (managers)
{
g_print ("\n\n"
"========================================\n"
"========================================\n"
"UI Manager: %s\n"
"========================================\n\n",
entry->identifier);

View File

@ -144,7 +144,7 @@ select_actions_setup (GimpActionGroup *group)
{
gimp_action_group_add_actions (group, "select-action",
select_actions,
G_N_ELEMENTS (select_actions));
G_N_ELEMENTS (select_actions));
}
void

View File

@ -475,8 +475,8 @@ select_feather_callback (GtkWidget *widget,
gdouble radius_y;
g_object_set (config,
"selection-feather-radius", size,
NULL);
"selection-feather-radius", size,
NULL);
radius_x = config->selection_feather_radius;
radius_y = config->selection_feather_radius;
@ -522,11 +522,11 @@ select_border_callback (GtkWidget *widget,
gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (combo), &border_style);
g_object_set (config,
"selection-border-radius", size,
"selection-border-style", border_style,
"selection-border-edge-lock",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)),
NULL);
"selection-border-radius", size,
"selection-border-style", border_style,
"selection-border-edge-lock",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)),
NULL);
radius_x = ROUND (config->selection_border_radius);
radius_y = ROUND (config->selection_border_radius);
@ -550,8 +550,8 @@ select_border_callback (GtkWidget *widget,
gimp_channel_border (gimp_image_get_mask (image), radius_x, radius_y,
config->selection_border_style,
config->selection_border_edge_lock,
TRUE);
config->selection_border_edge_lock,
TRUE);
gimp_image_flush (image);
}
@ -567,8 +567,8 @@ select_grow_callback (GtkWidget *widget,
gdouble radius_y;
g_object_set (config,
"selection-grow-radius", size,
NULL);
"selection-grow-radius", size,
NULL);
radius_x = ROUND (config->selection_grow_radius);
radius_y = ROUND (config->selection_grow_radius);
@ -609,10 +609,10 @@ select_shrink_callback (GtkWidget *widget,
button = g_object_get_data (G_OBJECT (widget), "edge-lock-toggle");
g_object_set (config,
"selection-shrink-radius", size,
"selection-shrink-edge-lock",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)),
NULL);
"selection-shrink-radius", size,
"selection-shrink-edge-lock",
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)),
NULL);
radius_x = ROUND (config->selection_shrink_radius);
radius_y = ROUND (config->selection_shrink_radius);
@ -636,6 +636,6 @@ select_shrink_callback (GtkWidget *widget,
gimp_channel_shrink (gimp_image_get_mask (image), radius_x, radius_y,
config->selection_shrink_edge_lock,
TRUE);
TRUE);
gimp_image_flush (image);
}

View File

@ -185,8 +185,8 @@ text_tool_direction_cmd_callback (GtkAction *action,
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
g_object_set (text_tool->proxy,
"base-direction", (GimpTextDirection) value,
NULL);
"base-direction", (GimpTextDirection) value,
NULL);
}
@ -194,8 +194,8 @@ text_tool_direction_cmd_callback (GtkAction *action,
static void
text_tool_load_dialog_response (GtkWidget *dialog,
gint response_id,
GimpTextTool *tool)
gint response_id,
GimpTextTool *tool)
{
if (response_id == GTK_RESPONSE_OK)
{

View File

@ -223,9 +223,9 @@ app_run (const gchar *full_prog_name,
gimp_user_install_run (install);
#else
if (! (no_interface ?
gimp_user_install_run (install) :
user_install_dialog_run (install)))
exit (EXIT_FAILURE);
gimp_user_install_run (install) :
user_install_dialog_run (install)))
exit (EXIT_FAILURE);
#endif
gimp_user_install_free (install);

View File

@ -39,8 +39,8 @@
static GtkWidget * user_install_dialog_new (GimpUserInstall *install);
static void user_install_dialog_log (const gchar *message,
gboolean error,
gpointer data);
gboolean error,
gpointer data);
gboolean
@ -58,8 +58,8 @@ user_install_dialog_run (GimpUserInstall *install)
if (! success)
{
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_main_quit),
NULL);
G_CALLBACK (gtk_main_quit),
NULL);
gtk_widget_show (dialog);
@ -83,18 +83,18 @@ user_install_dialog_new (GimpUserInstall *install)
gimp_icons_init ();
dialog = gimp_message_dialog_new (_("GIMP User Installation"),
GIMP_STOCK_WILBER_EEK,
NULL, 0, NULL, NULL,
GIMP_STOCK_WILBER_EEK,
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,
_("User installation failed!"));
_("User installation failed!"));
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("The GIMP user installation failed; "
"see the log for details."));
_("The GIMP user installation failed; "
"see the log for details."));
frame = gimp_frame_new (_("Installation Log"));
gtk_container_set_border_width (GTK_CONTAINER (frame), 12);

View File

@ -266,7 +266,7 @@ gimp_display_shell_close_name_changed (GimpImage *image,
if (GTK_IS_WINDOW (window))
{
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);
g_free (title);

View File

@ -62,7 +62,7 @@ gint GIMP_DISPLAY_RENDER_BUF_HEIGHT = 256;
static RTreeNode *
rtree_node_create (RTree *rtree,
RTreeNode **prev,
gint x,
gint x,
gint y,
gint w,
gint h)
@ -98,7 +98,7 @@ rtree_node_destroy (RTree *rtree,
for (i = 0; i < 2; i++)
{
if (node->children[i])
rtree_node_destroy (rtree, node->children[i]);
rtree_node_destroy (rtree, node->children[i]);
}
g_slice_free (RTreeNode, node);
@ -107,7 +107,7 @@ rtree_node_destroy (RTree *rtree,
static RTreeNode *
rtree_node_insert (RTree *rtree,
RTreeNode **prev,
RTreeNode *node,
RTreeNode *node,
gint w,
gint h)
{
@ -119,23 +119,23 @@ rtree_node_insert (RTree *rtree,
gint hh = node->h - h;
if (ww >= hh)
{
node->children[0] = rtree_node_create (rtree, prev,
node->x + w, node->y,
ww, node->h);
node->children[1] = rtree_node_create (rtree, prev,
node->x, node->y + h,
w, hh);
}
{
node->children[0] = rtree_node_create (rtree, prev,
node->x + w, node->y,
ww, node->h);
node->children[1] = rtree_node_create (rtree, prev,
node->x, node->y + h,
w, hh);
}
else
{
node->children[0] = rtree_node_create (rtree, prev,
node->x, node->y + h,
node->w, hh);
node->children[1] = rtree_node_create (rtree, prev,
node->x + w, node->y,
ww, h);
}
{
node->children[0] = rtree_node_create (rtree, prev,
node->x, node->y + h,
node->w, hh);
node->children[1] = rtree_node_create (rtree, prev,
node->x + w, node->y,
ww, h);
}
}
return node;
@ -182,7 +182,7 @@ rtree_reset (RTree *rtree)
for (i = 0; i < 2; i++)
{
if (rtree->root.children[i] == NULL)
continue;
continue;
rtree_node_destroy (rtree, rtree->root.children[i]);
rtree->root.children[i] = NULL;
@ -255,8 +255,8 @@ gimp_display_xfer_realize (GtkWidget *widget)
xfer->page = 0;
g_object_set_data_full (G_OBJECT (screen),
"gimp-display-xfer",
xfer, xfer_destroy);
"gimp-display-xfer",
xfer, xfer_destroy);
}
return xfer;
@ -264,15 +264,15 @@ gimp_display_xfer_realize (GtkWidget *widget)
cairo_surface_t *
gimp_display_xfer_get_surface (GimpDisplayXfer *xfer,
gint w,
gint w,
gint h,
gint *src_x,
gint *src_x,
gint *src_y)
{
RTreeNode *node;
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);
if (node == NULL)

View File

@ -664,7 +664,7 @@ file_open_layers (Gimp *gimp,
else
{
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;
}

View File

@ -76,9 +76,9 @@ file_utils_filename_is_uri (const gchar *filename,
if (! g_utf8_validate (filename, -1, NULL))
{
g_set_error_literal (error,
G_CONVERT_ERROR,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
_("Invalid character sequence in URI"));
G_CONVERT_ERROR,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
_("Invalid character sequence in URI"));
return FALSE;
}
@ -115,9 +115,9 @@ file_utils_filename_to_file (Gimp *gimp,
else
{
g_set_error_literal (error,
G_CONVERT_ERROR,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
_("Invalid character sequence in URI"));
G_CONVERT_ERROR,
G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
_("Invalid character sequence in URI"));
return NULL;
}
}

View File

@ -68,8 +68,8 @@ static gboolean gimp_dbus_service_batch_run (GimpDBusServiceUI *servi
const gchar *batch_command);
static void gimp_dbus_service_gimp_opened (Gimp *gimp,
GFile *file,
GimpDBusService *service);
GFile *file,
GimpDBusService *service);
static gboolean gimp_dbus_service_queue_open (GimpDBusService *service,
const gchar *uri,
@ -132,8 +132,8 @@ gimp_dbus_service_new (Gimp *gimp)
service->gimp = gimp;
g_signal_connect_object (gimp, "image-opened",
G_CALLBACK (gimp_dbus_service_gimp_opened),
service, 0);
G_CALLBACK (gimp_dbus_service_gimp_opened),
service, 0);
return G_OBJECT (service);
}
@ -244,8 +244,8 @@ gimp_dbus_service_batch_run (GimpDBusServiceUI *service,
static void
gimp_dbus_service_gimp_opened (Gimp *gimp,
GFile *file,
GimpDBusService *service)
GFile *file,
GimpDBusService *service)
{
gchar *uri = g_file_get_uri (file);

View File

@ -158,8 +158,8 @@ splash_create (gboolean be_verbose,
g_object_unref (pixbuf);
g_signal_connect_after (splash->area, "expose-event",
G_CALLBACK (splash_area_expose),
splash);
G_CALLBACK (splash_area_expose),
splash);
/* add a progress bar */
splash->progress = gtk_progress_bar_new ();

View File

@ -523,7 +523,7 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
if (strcmp (line, "# GIMP Curves File") != 0)
{
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_free (line);
return FALSE;
@ -553,8 +553,8 @@ gimp_curves_config_load_cruft (GimpCurvesConfig *config,
sscanf (y_str, "%d", &value[i][j]) != 1)
{
g_set_error_literal (error,
GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("Parse error, didn't find 2 integers"));
GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("Parse error, didn't find 2 integers"));
g_free (x_str);
g_free (y_str);
g_object_unref (data_input);

View File

@ -775,7 +775,7 @@ gimp_levels_config_load_cruft (GimpLevelsConfig *config,
if (strcmp (line, "# GIMP Levels File") != 0)
{
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_free (line);
return FALSE;
@ -843,7 +843,7 @@ gimp_levels_config_load_cruft (GimpLevelsConfig *config,
g_object_unref (data_input);
g_set_error_literal (error, GIMP_CONFIG_ERROR, GIMP_CONFIG_ERROR_PARSE,
_("parse error"));
_("parse error"));
return FALSE;
}

View File

@ -264,7 +264,7 @@ gimp_operation_blend_class_init (GimpOperationBlendClass *klass)
g_param_spec_double ("offset",
"Offset",
"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,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));

View File

@ -73,7 +73,7 @@ gimp_pdb_get_brush (Gimp *gimp,
if (! name || ! strlen (name))
{
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty brush name"));
_("Invalid empty brush name"));
return NULL;
}
@ -134,7 +134,7 @@ gimp_pdb_get_dynamics (Gimp *gimp,
if (! name || ! strlen (name))
{
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;
}
@ -169,7 +169,7 @@ gimp_pdb_get_mybrush (Gimp *gimp,
if (! name || ! strlen (name))
{
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;
}
@ -203,7 +203,7 @@ gimp_pdb_get_pattern (Gimp *gimp,
if (! name || ! strlen (name))
{
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty pattern name"));
_("Invalid empty pattern name"));
return NULL;
}
@ -232,7 +232,7 @@ gimp_pdb_get_gradient (Gimp *gimp,
if (! name || ! strlen (name))
{
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty gradient name"));
_("Invalid empty gradient name"));
return NULL;
}
@ -267,7 +267,7 @@ gimp_pdb_get_palette (Gimp *gimp,
if (! name || ! strlen (name))
{
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty palette name"));
_("Invalid empty palette name"));
return NULL;
}
@ -301,7 +301,7 @@ gimp_pdb_get_font (Gimp *gimp,
if (! name || ! strlen (name))
{
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty font name"));
_("Invalid empty font name"));
return NULL;
}
@ -330,7 +330,7 @@ gimp_pdb_get_buffer (Gimp *gimp,
if (! name || ! strlen (name))
{
g_set_error_literal (error, GIMP_PDB_ERROR, GIMP_PDB_ERROR_INVALID_ARGUMENT,
_("Invalid empty buffer name"));
_("Invalid empty buffer name"));
return NULL;
}
@ -359,7 +359,7 @@ gimp_pdb_get_paint_info (Gimp *gimp,
if (! name || ! strlen (name))
{
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;
}

View File

@ -47,10 +47,10 @@
static GimpGradient *
gradient_get (Gimp *gimp,
const gchar *name,
gboolean writable,
gboolean writable,
gint segment,
GimpGradientSegment **seg,
GError **error)
GError **error)
{
GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, writable, error);
@ -69,7 +69,7 @@ gradient_get_range (Gimp *gimp,
gint end_segment,
GimpGradientSegment **start_seg,
GimpGradientSegment **end_seg,
GError **error)
GError **error)
{
GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, TRUE, error);

View File

@ -338,7 +338,7 @@ gaussian_blur (GimpDrawable *drawable,
"operation", "gegl:gaussian-blur",
"std-dev-x", horizontal * 0.32,
"std-dev-y", vertical * 0.32,
"abyss-policy", 1,
"abyss-policy", 1,
NULL);
node = wrap_in_gamma_cast (node, drawable);

View File

@ -156,35 +156,35 @@ gimp_environ_table_load (GimpEnvironTable *environ_table,
GFileEnumerator *enumerator;
enumerator =
g_file_enumerate_children (dir,
g_file_enumerate_children (dir,
G_FILE_ATTRIBUTE_STANDARD_NAME ","
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN ","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NONE,
NULL, NULL);
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN ","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NONE,
NULL, NULL);
if (enumerator)
{
GFileInfo *info;
{
GFileInfo *info;
while ((info = g_file_enumerator_next_file (enumerator,
NULL, NULL)))
{
if (! g_file_info_get_is_hidden (info) &&
g_file_info_get_file_type (info) == G_FILE_TYPE_REGULAR)
{
GFile *file = g_file_enumerator_get_child (enumerator, info);
while ((info = g_file_enumerator_next_file (enumerator,
NULL, NULL)))
{
if (! g_file_info_get_is_hidden (info) &&
g_file_info_get_file_type (info) == G_FILE_TYPE_REGULAR)
{
GFile *file = g_file_enumerator_get_child (enumerator, info);
gimp_environ_table_load_env_file (environ_table, file);
gimp_environ_table_load_env_file (environ_table, file);
g_object_unref (file);
}
g_object_unref (file);
}
g_object_unref (info);
}
g_object_unref (info);
}
g_object_unref (enumerator);
}
g_object_unref (enumerator);
}
}
}
@ -272,7 +272,7 @@ gimp_environ_table_get_envp (GimpEnvironTable *environ_table)
static void
gimp_environ_table_load_env_file (GimpEnvironTable *environ_table,
GFile *file)
GFile *file)
{
GInputStream *input;
GDataInputStream *data_input;
@ -408,7 +408,7 @@ gimp_environ_table_populate (GimpEnvironTable *environ_table)
*/
if (gimp_environ_table_pass_through (environ_table, *var))
g_ptr_array_add (env_array, g_strconcat (*var, "=", g_getenv (*var), NULL));
g_ptr_array_add (env_array, g_strconcat (*var, "=", g_getenv (*var), NULL));
var++;
}

View File

@ -148,35 +148,35 @@ gimp_interpreter_db_load (GimpInterpreterDB *db,
GFileEnumerator *enumerator;
enumerator =
g_file_enumerate_children (dir,
g_file_enumerate_children (dir,
G_FILE_ATTRIBUTE_STANDARD_NAME ","
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN ","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NONE,
NULL, NULL);
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN ","
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NONE,
NULL, NULL);
if (enumerator)
{
GFileInfo *info;
{
GFileInfo *info;
while ((info = g_file_enumerator_next_file (enumerator,
NULL, NULL)))
{
if (! g_file_info_get_is_hidden (info) &&
g_file_info_get_file_type (info) == G_FILE_TYPE_REGULAR)
{
GFile *file = g_file_enumerator_get_child (enumerator, info);
while ((info = g_file_enumerator_next_file (enumerator,
NULL, NULL)))
{
if (! g_file_info_get_is_hidden (info) &&
g_file_info_get_file_type (info) == G_FILE_TYPE_REGULAR)
{
GFile *file = g_file_enumerator_get_child (enumerator, info);
gimp_interpreter_db_load_interp_file (db, file);
gimp_interpreter_db_load_interp_file (db, file);
g_object_unref (file);
}
g_object_unref (file);
}
g_object_unref (info);
}
g_object_unref (info);
}
g_object_unref (enumerator);
}
g_object_unref (enumerator);
}
}
gimp_interpreter_db_resolve_programs (db);
@ -216,7 +216,7 @@ gimp_interpreter_db_clear (GimpInterpreterDB *db)
static void
gimp_interpreter_db_load_interp_file (GimpInterpreterDB *db,
GFile *file)
GFile *file)
{
GInputStream *input;
GDataInputStream *data_input;
@ -251,13 +251,13 @@ gimp_interpreter_db_load_interp_file (GimpInterpreterDB *db,
}
if (g_ascii_isalnum (buffer[0]) || (buffer[0] == '/'))
{
gimp_interpreter_db_add_program (db, file, buffer);
}
{
gimp_interpreter_db_add_program (db, file, buffer);
}
else if (! g_ascii_isspace (buffer[0]) && (buffer[0] != '\0'))
{
gimp_interpreter_db_add_binfmt_misc (db, file, buffer);
}
{
gimp_interpreter_db_add_binfmt_misc (db, file, buffer);
}
g_free (buffer);
}

View File

@ -199,8 +199,8 @@ file_procedure_find (GSList *procs,
{
/* set an error message unless one was already set */
if (error && *error == NULL)
g_set_error_literal (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Unknown file type"));
g_set_error_literal (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Unknown file type"));
}
return file_proc;

View File

@ -134,14 +134,14 @@ gimp_bucket_fill_tool_initialize (GimpTool *tool,
if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)))
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot modify the pixels of layer groups."));
_("Cannot modify the pixels of layer groups."));
return FALSE;
}
if (gimp_item_is_content_locked (GIMP_ITEM (drawable)))
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("The active layer's pixels are locked."));
_("The active layer's pixels are locked."));
return FALSE;
}

View File

@ -122,7 +122,7 @@ gimp_color_balance_tool_initialize (GimpTool *tool,
if (! gimp_drawable_is_rgb (drawable))
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Color Balance operates only on RGB color layers."));
_("Color Balance operates only on RGB color layers."));
return FALSE;
}

View File

@ -298,14 +298,14 @@ gimp_filter_tool_initialize (GimpTool *tool,
if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)))
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot modify the pixels of layer groups."));
_("Cannot modify the pixels of layer groups."));
return FALSE;
}
if (gimp_item_is_content_locked (GIMP_ITEM (drawable)))
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("The active layer's pixels are locked."));
_("The active layer's pixels are locked."));
return FALSE;
}

View File

@ -150,7 +150,7 @@ gimp_hue_saturation_tool_initialize (GimpTool *tool,
if (! gimp_drawable_is_rgb (drawable))
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Hue-Saturation operates only on RGB color layers."));
_("Hue-Saturation operates only on RGB color layers."));
return FALSE;
}

View File

@ -596,7 +596,7 @@ gimp_move_tool_cursor_update (GimpTool *tool,
else if (layer != gimp_image_get_active_layer (image))
{
tool_cursor = GIMP_TOOL_CURSOR_HAND;
modifier = GIMP_CURSOR_MODIFIER_MOVE;
modifier = GIMP_CURSOR_MODIFIER_MOVE;
}
}
else

View File

@ -20,7 +20,7 @@
gboolean gimp_unique_open (const gchar **filenames,
gboolean as_new);
gboolean as_new);
gboolean gimp_unique_batch_run (const gchar *batch_interpreter,
const gchar **batch_commands);

View File

@ -105,9 +105,9 @@ gimp_container_combo_box_class_init (GimpContainerComboBoxClass *klass)
g_object_class_install_property (object_class,
PROP_ELLIPSIZE,
g_param_spec_enum ("ellipsize", NULL, NULL,
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_MIDDLE,
GIMP_PARAM_READWRITE |
PANGO_TYPE_ELLIPSIZE_MODE,
PANGO_ELLIPSIZE_MIDDLE,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
}

View File

@ -581,12 +581,12 @@ gimp_controller_list_remove_clicked (GtkWidget *button,
_("Remove Controller '%s'?"), name);
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
"%s",
"%s",
_("Removing this controller from the list of "
"active controllers will permanently delete "
"all event mappings you have configured.\n\n"
"Selecting \"Disable Controller\" will disable "
"the controller without removing it."));
"active controllers will permanently delete "
"all event mappings you have configured.\n\n"
"Selecting \"Disable Controller\" will disable "
"the controller without removing it."));
switch (gimp_dialog_run (GIMP_DIALOG (dialog)))
{

View File

@ -502,7 +502,7 @@ gimp_overlay_dialog_response (GimpOverlayDialog *dialog,
g_return_if_fail (GIMP_IS_OVERLAY_DIALOG (dialog));
g_signal_emit (dialog, signals[RESPONSE], 0,
response_id);
response_id);
}
void
@ -636,7 +636,7 @@ response_data_free (gpointer data)
static ResponseData *
get_response_data (GtkWidget *widget,
gboolean create)
gboolean create)
{
ResponseData *ad = g_object_get_data (G_OBJECT (widget),
"gimp-overlay-dialog-response-data");

View File

@ -363,8 +363,8 @@ gimp_prefs_box_add_page (GimpPrefsBox *box,
void
gimp_prefs_box_set_page_scrollable (GimpPrefsBox *box,
GtkWidget *page,
gboolean scrollable)
GtkWidget *page,
gboolean scrollable)
{
GimpPrefsBoxPrivate *private;
GtkWidget *scrolled_win;
@ -383,8 +383,8 @@ gimp_prefs_box_set_page_scrollable (GimpPrefsBox *box,
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_NEVER,
scrollable ?
GTK_POLICY_AUTOMATIC : GTK_POLICY_NEVER);
scrollable ?
GTK_POLICY_AUTOMATIC : GTK_POLICY_NEVER);
}
GtkWidget *

View File

@ -77,55 +77,55 @@ gimp_text_proxy_class_init (GimpTextProxyClass *klass)
proxy_signals[CHANGE_SIZE] =
g_signal_new ("change-size",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpTextProxyClass, change_size),
NULL, NULL,
gimp_marshal_VOID__DOUBLE,
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpTextProxyClass, change_size),
NULL, NULL,
gimp_marshal_VOID__DOUBLE,
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
proxy_signals[CHANGE_BASELINE] =
g_signal_new ("change-baseline",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpTextProxyClass, change_baseline),
NULL, NULL,
gimp_marshal_VOID__DOUBLE,
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpTextProxyClass, change_baseline),
NULL, NULL,
gimp_marshal_VOID__DOUBLE,
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
proxy_signals[CHANGE_KERNING] =
g_signal_new ("change-kerning",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpTextProxyClass, change_kerning),
NULL, NULL,
gimp_marshal_VOID__DOUBLE,
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpTextProxyClass, change_kerning),
NULL, NULL,
gimp_marshal_VOID__DOUBLE,
G_TYPE_NONE, 1,
G_TYPE_DOUBLE);
binding_set = gtk_binding_set_by_class (klass);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_plus, GDK_MOD1_MASK,
"change-size", 1,
"change-size", 1,
G_TYPE_DOUBLE, 1.0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_minus, GDK_MOD1_MASK,
"change-size", 1,
"change-size", 1,
G_TYPE_DOUBLE, -1.0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Up, GDK_MOD1_MASK,
"change-baseline", 1,
"change-baseline", 1,
G_TYPE_DOUBLE, 1.0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Down, GDK_MOD1_MASK,
"change-baseline", 1,
"change-baseline", 1,
G_TYPE_DOUBLE, -1.0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Left, GDK_MOD1_MASK,
"change-kerning", 1,
"change-kerning", 1,
G_TYPE_DOUBLE, -1.0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Right, GDK_MOD1_MASK,
"change-kerning", 1,
"change-kerning", 1,
G_TYPE_DOUBLE, 1.0);
}

View File

@ -100,7 +100,7 @@ gimp_view_renderer_imagefile_render (GimpViewRenderer *renderer,
static GdkPixbuf *
get_icon_for_mime_type (const gchar *mime_type,
gint pixel_size)
gint pixel_size)
{
GtkIconTheme *icon_theme;
const gchar *separator;

View File

@ -217,8 +217,8 @@ gimp_window_key_press_event (GtkWidget *widget,
GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR);
g_object_get (gtk_widget_get_settings (widget),
"gtk-enable-mnemonics", &enable_mnemonics,
NULL);
"gtk-enable-mnemonics", &enable_mnemonics,
NULL);
if (enable_mnemonics)
accel_mods |= gtk_window_get_mnemonic_modifier (window);

View File

@ -690,7 +690,7 @@ xcf_load_image_props (XcfInfo *info,
gimp_message (info->gimp, G_OBJECT (info->progress),
GIMP_MESSAGE_ERROR,
"Unknown compression type: %d",
(gint) compression);
(gint) compression);
return FALSE;
}