GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 049872b3 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/*.[ch] converted tabs to spaces.

2006-04-12  Sven Neumann  <sven@gimp.org>

	* app/*.[ch]
	* app/*/*.[ch]: converted tabs to spaces.
parent f2df31a5
2006-04-12 Sven Neumann <sven@gimp.org>
* app/*.[ch]
* app/*/*.[ch]: converted tabs to spaces.
2006-04-12 Sven Neumann <sven@gimp.org> 2006-04-12 Sven Neumann <sven@gimp.org>
* libgimp*/gimp*.[ch]: converted tabs to spaces. * libgimp*/gimp*.[ch]: converted tabs to spaces.
...@@ -19,8 +24,7 @@ ...@@ -19,8 +24,7 @@
2006-04-11 Carol Spears <carol@gimp.org> 2006-04-11 Carol Spears <carol@gimp.org>
* data/images/gimp-splash.png: new splash, nicknamed "Where's * data/images/gimp-splash.png: new splash, nicknamed "Where's bolsh?".
bolsh?".
2006-04-11 Manish Singh <yosh@gimp.org> 2006-04-11 Manish Singh <yosh@gimp.org>
...@@ -19865,7 +19869,7 @@ ...@@ -19865,7 +19869,7 @@
as described on dev mailing list. as described on dev mailing list.
* plug-ins/common/decompose.c: add "decompose-data" parasite * plug-ins/common/decompose.c: add "decompose-data" parasite
when decoposing, to support Recompose. Also add missing when decomposing, to support Recompose. Also add missing
alpha channels to newly produced layers alpha channels to newly produced layers
2004-12-28 Sven Neumann <sven@gimp.org> 2004-12-28 Sven Neumann <sven@gimp.org>
...@@ -19892,7 +19896,7 @@ ...@@ -19892,7 +19896,7 @@
* app/paint/gimpbrushcore.c (gimp_brush_core_subsample_mask): * app/paint/gimpbrushcore.c (gimp_brush_core_subsample_mask):
don't set array outside its bounds. Should fix bug #161323. don't set array outside its bounds. Should fix bug #161323.
Credit to Robert Ögren for figuring out what was wrong. Credit to Robert Ögren for figuring out what was wrong.
2004-12-27 Sven Neumann <sven@gimp.org> 2004-12-27 Sven Neumann <sven@gimp.org>
......
...@@ -143,7 +143,7 @@ buffers_paste (GimpBufferView *view, ...@@ -143,7 +143,7 @@ buffers_paste (GimpBufferView *view,
gint height = -1; gint height = -1;
if (display) if (display)
{ {
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell); GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
gimp_display_shell_untransform_viewport (shell, gimp_display_shell_untransform_viewport (shell,
...@@ -158,10 +158,10 @@ buffers_paste (GimpBufferView *view, ...@@ -158,10 +158,10 @@ buffers_paste (GimpBufferView *view,
if (image) if (image)
{ {
gimp_edit_paste (image, gimp_image_active_drawable (image), gimp_edit_paste (image, gimp_image_active_drawable (image),
buffer, paste_into, x, y, width, height); buffer, paste_into, x, y, width, height);
gimp_image_flush (image); gimp_image_flush (image);
} }
} }
} }
...@@ -90,7 +90,7 @@ channels_edit_attributes_cmd_callback (GtkAction *action, ...@@ -90,7 +90,7 @@ channels_edit_attributes_cmd_callback (GtkAction *action,
GIMP_HELP_CHANNEL_EDIT, GIMP_HELP_CHANNEL_EDIT,
_("Edit Channel Color"), _("Edit Channel Color"),
_("_Fill opacity:"), _("_Fill opacity:"),
FALSE); FALSE);
g_signal_connect (options->dialog, "response", g_signal_connect (options->dialog, "response",
G_CALLBACK (channels_edit_channel_response), G_CALLBACK (channels_edit_channel_response),
...@@ -123,7 +123,7 @@ channels_new_cmd_callback (GtkAction *action, ...@@ -123,7 +123,7 @@ channels_new_cmd_callback (GtkAction *action,
GIMP_HELP_CHANNEL_NEW, GIMP_HELP_CHANNEL_NEW,
_("New Channel Color"), _("New Channel Color"),
_("_Fill opacity:"), _("_Fill opacity:"),
TRUE); TRUE);
g_signal_connect (options->dialog, "response", g_signal_connect (options->dialog, "response",
G_CALLBACK (channels_new_channel_response), G_CALLBACK (channels_new_channel_response),
...@@ -336,17 +336,17 @@ channels_new_channel_response (GtkWidget *widget, ...@@ -336,17 +336,17 @@ channels_new_channel_response (GtkWidget *widget,
&channel_color); &channel_color);
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (options->save_sel_checkbutton))) if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (options->save_sel_checkbutton)))
{ {
GimpChannel *selection = gimp_image_get_mask (options->image); GimpChannel *selection = gimp_image_get_mask (options->image);
new_channel = new_channel =
GIMP_CHANNEL (gimp_item_duplicate (GIMP_ITEM (selection), GIMP_CHANNEL (gimp_item_duplicate (GIMP_ITEM (selection),
GIMP_TYPE_CHANNEL, GIMP_TYPE_CHANNEL,
FALSE)); FALSE));
gimp_object_set_name (GIMP_OBJECT (new_channel), channel_name); gimp_object_set_name (GIMP_OBJECT (new_channel), channel_name);
gimp_channel_set_color (new_channel, &channel_color, FALSE); gimp_channel_set_color (new_channel, &channel_color, FALSE);
} }
else else
{ {
new_channel = gimp_channel_new (options->image, new_channel = gimp_channel_new (options->image,
......
...@@ -79,7 +79,7 @@ data_open_as_image_cmd_callback (GtkAction *action, ...@@ -79,7 +79,7 @@ data_open_as_image_cmd_callback (GtkAction *action,
data = (GimpData *) data = (GimpData *)
gimp_context_get_by_type (context, gimp_context_get_by_type (context,
view->factory->container->children_type); view->factory->container->children_type);
if (data && data->filename) if (data && data->filename)
{ {
...@@ -128,13 +128,13 @@ data_new_cmd_callback (GtkAction *action, ...@@ -128,13 +128,13 @@ data_new_cmd_callback (GtkAction *action,
data = gimp_data_factory_data_new (view->factory, _("Untitled")); data = gimp_data_factory_data_new (view->factory, _("Untitled"));
if (data) if (data)
{ {
gimp_context_set_by_type (context, gimp_context_set_by_type (context,
view->factory->container->children_type, view->factory->container->children_type,
GIMP_OBJECT (data)); GIMP_OBJECT (data));
gtk_button_clicked (GTK_BUTTON (view->edit_button)); gtk_button_clicked (GTK_BUTTON (view->edit_button));
} }
} }
} }
...@@ -150,23 +150,23 @@ data_duplicate_cmd_callback (GtkAction *action, ...@@ -150,23 +150,23 @@ data_duplicate_cmd_callback (GtkAction *action,
data = (GimpData *) data = (GimpData *)
gimp_context_get_by_type (context, gimp_context_get_by_type (context,
view->factory->container->children_type); view->factory->container->children_type);
if (data && gimp_container_have (view->factory->container, if (data && gimp_container_have (view->factory->container,
GIMP_OBJECT (data))) GIMP_OBJECT (data)))
{ {
GimpData *new_data; GimpData *new_data;
new_data = gimp_data_factory_data_duplicate (view->factory, data); new_data = gimp_data_factory_data_duplicate (view->factory, data);
if (new_data) if (new_data)
{ {
gimp_context_set_by_type (context, gimp_context_set_by_type (context,
view->factory->container->children_type, view->factory->container->children_type,
GIMP_OBJECT (new_data)); GIMP_OBJECT (new_data));
gtk_button_clicked (GTK_BUTTON (view->edit_button)); gtk_button_clicked (GTK_BUTTON (view->edit_button));
} }
} }
} }
...@@ -208,7 +208,7 @@ data_delete_cmd_callback (GtkAction *action, ...@@ -208,7 +208,7 @@ data_delete_cmd_callback (GtkAction *action,
data = (GimpData *) data = (GimpData *)
gimp_context_get_by_type (context, gimp_context_get_by_type (context,
view->factory->container->children_type); view->factory->container->children_type);
if (data && data->deletable && gimp_container_have (view->factory->container, if (data && data->deletable && gimp_container_have (view->factory->container,
GIMP_OBJECT (data))) GIMP_OBJECT (data)))
...@@ -277,7 +277,7 @@ data_edit_cmd_callback (GtkAction *action, ...@@ -277,7 +277,7 @@ data_edit_cmd_callback (GtkAction *action,
data = (GimpData *) data = (GimpData *)
gimp_context_get_by_type (context, gimp_context_get_by_type (context,
view->factory->container->children_type); view->factory->container->children_type);
if (data && gimp_container_have (view->factory->container, if (data && gimp_container_have (view->factory->container,
GIMP_OBJECT (data))) GIMP_OBJECT (data)))
......
...@@ -150,26 +150,26 @@ debug_dump_menus_recurse_menu (GtkWidget *menu, ...@@ -150,26 +150,26 @@ debug_dump_menus_recurse_menu (GtkWidget *menu,
menu_item = GTK_WIDGET (list->data); menu_item = GTK_WIDGET (list->data);
if (GTK_IS_LABEL (GTK_BIN (menu_item)->child)) if (GTK_IS_LABEL (GTK_BIN (menu_item)->child))
{ {
label = gtk_label_get_text (GTK_LABEL (GTK_BIN (menu_item)->child)); label = gtk_label_get_text (GTK_LABEL (GTK_BIN (menu_item)->child));
full_path = g_strconcat (path, "/", label, NULL); full_path = g_strconcat (path, "/", label, NULL);
help_page = g_object_get_data (G_OBJECT (menu_item), "gimp-help-id"); help_page = g_object_get_data (G_OBJECT (menu_item), "gimp-help-id");
help_page = g_strdup (help_page); help_page = g_strdup (help_page);
format_str = g_strdup_printf ("%%%ds%%%ds %%-20s %%s\n", format_str = g_strdup_printf ("%%%ds%%%ds %%-20s %%s\n",
depth * 2, depth * 2 - 40); depth * 2, depth * 2 - 40);
g_print (format_str, g_print (format_str,
"", label, "", help_page ? help_page : ""); "", label, "", help_page ? help_page : "");
g_free (format_str); g_free (format_str);
g_free (help_page); g_free (help_page);
if (GTK_MENU_ITEM (menu_item)->submenu) if (GTK_MENU_ITEM (menu_item)->submenu)
debug_dump_menus_recurse_menu (GTK_MENU_ITEM (menu_item)->submenu, debug_dump_menus_recurse_menu (GTK_MENU_ITEM (menu_item)->submenu,
depth + 1, full_path); depth + 1, full_path);
g_free (full_path); g_free (full_path);
} }
} }
} }
......
...@@ -59,7 +59,7 @@ dialogs_show_toolbox_cmd_callback (GtkAction *action, ...@@ -59,7 +59,7 @@ dialogs_show_toolbox_cmd_callback (GtkAction *action,
void void
dialogs_create_toplevel_cmd_callback (GtkAction *action, dialogs_create_toplevel_cmd_callback (GtkAction *action,
const gchar *value, const gchar *value,
gpointer data) gpointer data)
{ {
GtkWidget *widget; GtkWidget *widget;
return_if_no_widget (widget, data); return_if_no_widget (widget, data);
...@@ -73,7 +73,7 @@ dialogs_create_toplevel_cmd_callback (GtkAction *action, ...@@ -73,7 +73,7 @@ dialogs_create_toplevel_cmd_callback (GtkAction *action,
void void
dialogs_create_dockable_cmd_callback (GtkAction *action, dialogs_create_dockable_cmd_callback (GtkAction *action,
const gchar *value, const gchar *value,
gpointer data) gpointer data)
{ {
GtkWidget *widget; GtkWidget *widget;
return_if_no_widget (widget, data); return_if_no_widget (widget, data);
......
...@@ -189,7 +189,7 @@ dockable_actions_update (GimpActionGroup *group, ...@@ -189,7 +189,7 @@ dockable_actions_update (GimpActionGroup *group,
page_num = gtk_notebook_get_current_page (GTK_NOTEBOOK (dockbook)); page_num = gtk_notebook_get_current_page (GTK_NOTEBOOK (dockbook));
dockable = (GimpDockable *) dockable = (GimpDockable *)
gtk_notebook_get_nth_page (GTK_NOTEBOOK (dockbook), page_num); gtk_notebook_get_nth_page (GTK_NOTEBOOK (dockbook), page_num);
} }
else if (GIMP_IS_DOCKABLE (data)) else if (GIMP_IS_DOCKABLE (data))
{ {
......
...@@ -421,8 +421,8 @@ cut_named_buffer_callback (GtkWidget *widget, ...@@ -421,8 +421,8 @@ cut_named_buffer_callback (GtkWidget *widget,
static void static void
copy_named_buffer_callback (GtkWidget *widget, copy_named_buffer_callback (GtkWidget *widget,
const gchar *name, const gchar *name,
gpointer data) gpointer data)
{ {
GimpImage *image = GIMP_IMAGE (data); GimpImage *image = GIMP_IMAGE (data);
GimpDrawable *drawable; GimpDrawable *drawable;
......
...@@ -104,14 +104,14 @@ error_console_save_cmd_callback (GtkAction *action, ...@@ -104,14 +104,14 @@ error_console_save_cmd_callback (GtkAction *action,
gtk_window_set_role (GTK_WINDOW (chooser), "gimp-save-errors"); gtk_window_set_role (GTK_WINDOW (chooser), "gimp-save-errors");
g_signal_connect (chooser, "response", g_signal_connect (chooser, "response",
G_CALLBACK (error_console_save_response), G_CALLBACK (error_console_save_response),
console); console);
g_signal_connect (chooser, "delete-event", g_signal_connect (chooser, "delete-event",
G_CALLBACK (gtk_true), G_CALLBACK (gtk_true),
NULL); NULL);
gimp_help_connect (GTK_WIDGET (chooser), gimp_standard_help_func, gimp_help_connect (GTK_WIDGET (chooser), gimp_standard_help_func,
GIMP_HELP_ERRORS_DIALOG, NULL); GIMP_HELP_ERRORS_DIALOG, NULL);
gtk_widget_show (GTK_WIDGET (chooser)); gtk_widget_show (GTK_WIDGET (chooser));
} }
......
...@@ -126,9 +126,9 @@ gradient_editor_load_left_cmd_callback (GtkAction *action, ...@@ -126,9 +126,9 @@ gradient_editor_load_left_cmd_callback (GtkAction *action,
{ {
case GRADIENT_EDITOR_COLOR_NEIGHBOR_ENDPOINT: case GRADIENT_EDITOR_COLOR_NEIGHBOR_ENDPOINT:
if (editor->control_sel_l->prev != NULL) if (editor->control_sel_l->prev != NULL)
seg = editor->control_sel_l->prev; seg = editor->control_sel_l->prev;
else else
seg = gimp_gradient_segment_get_last (editor->control_sel_l); seg = gimp_gradient_segment_get_last (editor->control_sel_l);
color = seg->right_color; color = seg->right_color;
break; break;
...@@ -230,9 +230,9 @@ gradient_editor_load_right_cmd_callback (GtkAction *action, ...@@ -230,9 +230,9 @@ gradient_editor_load_right_cmd_callback (GtkAction *action,
{ {
case GRADIENT_EDITOR_COLOR_NEIGHBOR_ENDPOINT: case GRADIENT_EDITOR_COLOR_NEIGHBOR_ENDPOINT:
if (editor->control_sel_r->next != NULL) if (editor->control_sel_r->next != NULL)
seg = editor->control_sel_r->next; seg = editor->control_sel_r->next;
else else
seg = gimp_gradient_segment_get_first (editor->control_sel_r); seg = gimp_gradient_segment_get_first (editor->control_sel_r);
color = seg->left_color; color = seg->left_color;
break; break;
...@@ -413,8 +413,8 @@ gradient_editor_replicate_cmd_callback (GtkAction *action, ...@@ -413,8 +413,8 @@ gradient_editor_replicate_cmd_callback (GtkAction *action,
gtk_widget_show (scale); gtk_widget_show (scale);
g_signal_connect (scale_data, "value-changed", g_signal_connect (scale_data, "value-changed",
G_CALLBACK (gimp_int_adjustment_update), G_CALLBACK (gimp_int_adjustment_update),
&editor->replicate_times); &editor->replicate_times);
gtk_widget_set_sensitive (GTK_WIDGET (editor), FALSE); gtk_widget_set_sensitive (GTK_WIDGET (editor), FALSE);
gimp_ui_manager_update (GIMP_EDITOR (editor)->ui_manager, gimp_ui_manager_update (GIMP_EDITOR (editor)->ui_manager,
...@@ -513,8 +513,8 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action, ...@@ -513,8 +513,8 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action,
gtk_widget_show (scale); gtk_widget_show (scale);
g_signal_connect (scale_data, "value-changed", g_signal_connect (scale_data, "value-changed",
G_CALLBACK (gimp_int_adjustment_update), G_CALLBACK (gimp_int_adjustment_update),
&editor->split_parts); &editor->split_parts);
gtk_widget_set_sensitive (GTK_WIDGET (editor), FALSE); gtk_widget_set_sensitive (GTK_WIDGET (editor), FALSE);
gimp_ui_manager_update (GIMP_EDITOR (editor)->ui_manager, gimp_ui_manager_update (GIMP_EDITOR (editor)->ui_manager,
...@@ -725,9 +725,9 @@ gradient_editor_save_selection (GimpGradientEditor *editor) ...@@ -725,9 +725,9 @@ gradient_editor_save_selection (GimpGradientEditor *editor)
*seg = *oseg; /* Copy everything */ *seg = *oseg; /* Copy everything */
if (prev == NULL) if (prev == NULL)
tmp = seg; /* Remember first segment */ tmp = seg; /* Remember first segment */
else else
prev->next = seg; prev->next = seg;
seg->prev = prev; seg->prev = prev;
seg->next = NULL; seg->next = NULL;
......
...@@ -47,7 +47,7 @@ static void gradients_save_as_pov_ray_response (GtkWidget *dialog, ...@@ -47,7 +47,7 @@ static void gradients_save_as_pov_ray_response (GtkWidget *dialog,
void void
gradients_save_as_pov_ray_cmd_callback (GtkAction *action, gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
gpointer data) gpointer data)
{ {
GimpContainerEditor *editor = GIMP_CONTAINER_EDITOR (data); GimpContainerEditor *editor = GIMP_CONTAINER_EDITOR (data);
GimpContext *context; GimpContext *context;
...@@ -63,7 +63,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action, ...@@ -63,7 +63,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
return; return;
title = g_strdup_printf (_("Save '%s' as POV-Ray"), title = g_strdup_printf (_("Save '%s' as POV-Ray"),
GIMP_OBJECT (gradient)->name); GIMP_OBJECT (gradient)->name);
chooser = GTK_FILE_CHOOSER chooser = GTK_FILE_CHOOSER
(gtk_file_chooser_dialog_new (title, NULL, (gtk_file_chooser_dialog_new (title, NULL,
...@@ -102,7 +102,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action, ...@@ -102,7 +102,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
G_CONNECT_SWAPPED); G_CONNECT_SWAPPED);
gimp_help_connect (GTK_WIDGET (chooser), gimp_standard_help_func, gimp_help_connect (GTK_WIDGET (chooser), gimp_standard_help_func,
GIMP_HELP_GRADIENT_SAVE_AS_POV, NULL); GIMP_HELP_GRADIENT_SAVE_AS_POV, NULL);
gtk_widget_show (GTK_WIDGET (chooser)); gtk_widget_show (GTK_WIDGET (chooser));
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
void gradients_save_as_pov_ray_cmd_callback (GtkAction *action, void gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
gpointer data); gpointer data);
#endif /* __GRADIENTS_COMMANDS_H__ */ #endif /* __GRADIENTS_COMMANDS_H__ */
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
void void
help_help_cmd_callback (GtkAction *action, help_help_cmd_callback (GtkAction *action,
gpointer data) gpointer data)
{ {
gimp_standard_help_func (NULL, NULL); gimp_standard_help_func (NULL, NULL);
} }