Commit dcba4f8a authored by Felix Riemann's avatar Felix Riemann

Remove trailing whitespaces

parent 0bebe834
2009-04-27 Felix Riemann <friemann@svn.gnome.org>
* plugins/fit-to-width/eog-fit-to-width-plugin.c:
* plugins/postr/eog-postr-plugin.c:
Remove trailing whitespaces.
2009-04-27 Felix Riemann <friemann@svn.gnome.org>
* plugins/fit-to-width/eog-fit-to-width-plugin.c
......
......@@ -31,7 +31,7 @@
#define WINDOW_DATA_KEY "EogFitToWidthWindowData"
EOG_PLUGIN_REGISTER_TYPE(EogFitToWidthPlugin, eog_fit_to_width_plugin)
typedef struct
......@@ -52,13 +52,13 @@ fit_to_width_cb (GtkAction *action,
double zoom;
g_return_if_fail (EOG_IS_WINDOW (window));
view = eog_window_get_view (window);
image = eog_window_get_image (window);
g_return_if_fail (EOG_IS_SCROLL_VIEW (view));
g_return_if_fail (EOG_IS_IMAGE (image));
eog_image_get_size (image, &image_width, &image_height);
view_width = view->allocation.width;
......@@ -66,7 +66,7 @@ fit_to_width_cb (GtkAction *action,
// to scrollview for obtain the display area.
zoom = (double) (view_width - 15) / image_width;
eog_scroll_view_set_zoom (EOG_SCROLL_VIEW (view), zoom);
eog_scroll_view_set_zoom (EOG_SCROLL_VIEW (view), zoom);
}
static const gchar * const ui_definition =
......@@ -91,7 +91,7 @@ free_window_data (WindowData *data)
g_return_if_fail (data != NULL);
g_object_unref (data->ui_action_group);
g_free (data);
}
......@@ -108,14 +108,14 @@ impl_activate (EogPlugin *plugin,
GtkUIManager *manager;
GList *action_groups;
WindowData *data;
manager = eog_window_get_ui_manager (window);
action_groups = gtk_ui_manager_get_action_groups (manager);
data = g_new (WindowData, 1);
data->ui_action_group = gtk_action_group_new ("EogFitToWidthPluginActions");
gtk_action_group_set_translation_domain (data->ui_action_group,
gtk_action_group_set_translation_domain (data->ui_action_group,
GETTEXT_PACKAGE);
gtk_action_group_add_actions (data->ui_action_group,
......@@ -131,8 +131,8 @@ impl_activate (EogPlugin *plugin,
ui_definition,
-1, NULL);
g_object_set_data_full (G_OBJECT (window),
WINDOW_DATA_KEY,
g_object_set_data_full (G_OBJECT (window),
WINDOW_DATA_KEY,
data,
(GDestroyNotify) free_window_data);
}
......
......@@ -31,11 +31,11 @@ postr_cb (GtkAction *action,
gchar *cmd = g_strdup ("postr ");
images = eog_thumb_view_get_selected_images (EOG_THUMB_VIEW (thumbview));
for (i = g_list_first (images); i; i = i->next) {
EogImage *image = (EogImage *) i->data;
cmd = g_strconcat (cmd, eog_image_get_uri_for_display (image), " ", NULL);
cmd = g_strconcat (cmd, eog_image_get_uri_for_display (image), " ", NULL);
}
g_spawn_command_line_async (cmd, NULL);
......@@ -55,11 +55,11 @@ static void
free_window_data (WindowData *data)
{
g_return_if_fail (data != NULL);
eog_debug (DEBUG_PLUGINS);
g_object_unref (data->ui_action_group);
g_free (data);
}
......@@ -83,15 +83,15 @@ impl_activate (EogPlugin *plugin,
{
GtkUIManager *manager;
WindowData *data;
eog_debug (DEBUG_PLUGINS);
data = g_new (WindowData, 1);
manager = eog_window_get_ui_manager (window);
data->ui_action_group = gtk_action_group_new ("EogPostrPluginActions");
gtk_action_group_set_translation_domain (data->ui_action_group,
gtk_action_group_set_translation_domain (data->ui_action_group,
GETTEXT_PACKAGE);
gtk_action_group_add_actions (data->ui_action_group,
action_entries,
......@@ -104,17 +104,17 @@ impl_activate (EogPlugin *plugin,
data->ui_id = gtk_ui_manager_new_merge_id (manager);
g_object_set_data_full (G_OBJECT (window),
WINDOW_DATA_KEY,
g_object_set_data_full (G_OBJECT (window),
WINDOW_DATA_KEY,
data,
(GDestroyNotify) free_window_data);
gtk_ui_manager_add_ui (manager,
data->ui_id,
gtk_ui_manager_add_ui (manager,
data->ui_id,
MENU_PATH,
"RunPostr",
"RunPostr",
GTK_UI_MANAGER_MENUITEM,
"RunPostr",
GTK_UI_MANAGER_MENUITEM,
FALSE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment