diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-12 20:02:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-20 02:17:55 +0800 |
commit | c85109fc322137596bf34cffc5445d568223c60d (patch) | |
tree | 711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /widgets/misc | |
parent | 7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff) | |
download | gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-calendar-item.c | 6 | ||||
-rw-r--r-- | widgets/misc/e-canvas.c | 4 | ||||
-rw-r--r-- | widgets/misc/e-map.c | 4 | ||||
-rw-r--r-- | widgets/misc/e-preferences-window.c | 6 | ||||
-rw-r--r-- | widgets/misc/e-send-options.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-spell-entry.c | 2 | ||||
-rw-r--r-- | widgets/misc/e-web-view.c | 2 | ||||
-rw-r--r-- | widgets/misc/ea-calendar-cell.c | 2 | ||||
-rw-r--r-- | widgets/misc/ea-calendar-item.c | 6 | ||||
-rw-r--r-- | widgets/misc/test-calendar.c | 4 |
10 files changed, 19 insertions, 19 deletions
diff --git a/widgets/misc/e-calendar-item.c b/widgets/misc/e-calendar-item.c index 87c25370d0..9907db7514 100644 --- a/widgets/misc/e-calendar-item.c +++ b/widgets/misc/e-calendar-item.c @@ -2746,7 +2746,7 @@ e_calendar_item_set_first_month (ECalendarItem *calitem, new_year = year; new_month = month; - e_calendar_item_normalize_date (calitem, &new_year, &new_month); + e_calendar_item_normalize_date (calitem, &new_year, &new_month); if (calitem->year == new_year && calitem->month == new_month) return; @@ -3493,9 +3493,9 @@ e_calendar_item_show_popup_menu (ECalendarItem *calitem, submenu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), submenu); - g_object_set_data(G_OBJECT(submenu), "year", + g_object_set_data (G_OBJECT (submenu), "year", GINT_TO_POINTER (year)); - g_object_set_data(G_OBJECT(submenu), "month_offset", + g_object_set_data (G_OBJECT (submenu), "month_offset", GINT_TO_POINTER (month_offset)); for (month = 0; month < 12; month++) { diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c index 00c069525b..8cd1338db6 100644 --- a/widgets/misc/e-canvas.c +++ b/widgets/misc/e-canvas.c @@ -454,7 +454,7 @@ canvas_button_event (GtkWidget *widget, canvas = GNOME_CANVAS (widget); bin_window = gtk_layout_get_bin_window (GTK_LAYOUT (canvas)); - d(g_print ("button %d, event type %d, grabbed=%p, current=%p\n", + d (g_print ("button %d, event type %d, grabbed=%p, current=%p\n", event->button, event->type, canvas->grabbed_item, @@ -793,7 +793,7 @@ e_canvas_item_set_reflow_callback (GnomeCanvasItem *item, g_return_if_fail (func != NULL); g_object_set_data ( - G_OBJECT(item), "ECanvasItem::reflow_callback", + G_OBJECT (item), "ECanvasItem::reflow_callback", (gpointer) func); } diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c index 7732626760..d35988cb50 100644 --- a/widgets/misc/e-map.c +++ b/widgets/misc/e-map.c @@ -388,7 +388,7 @@ e_map_set_hadjustment_values (EMap *map) g_object_set (adj, "lower", 0.0, "upper", new_upper, - "page-size", (gdouble)allocation.height, + "page-size", (gdouble) allocation.height, "step-increment", allocation.height * 0.1, "page-increment", allocation.height * 0.9, NULL); @@ -416,7 +416,7 @@ e_map_set_vadjustment_values (EMap *map) g_object_set (adj, "lower", 0.0, "upper", new_upper, - "page-size", (gdouble)allocation.height, + "page-size", (gdouble) allocation.height, "step-increment", allocation.height * 0.1, "page-increment", allocation.height * 0.9, NULL); diff --git a/widgets/misc/e-preferences-window.c b/widgets/misc/e-preferences-window.c index 986d66f206..722ee23c07 100644 --- a/widgets/misc/e-preferences-window.c +++ b/widgets/misc/e-preferences-window.c @@ -75,13 +75,13 @@ preferences_window_filter_view (GtkTreeModel *model, return TRUE; gtk_tree_model_get (model, iter, COLUMN_ID, &str, -1); - if (strncmp(window->priv->filter_view, "mail", 4) == 0) { + if (strncmp (window->priv->filter_view, "mail", 4) == 0) { /* Show everything except calendar */ if (str && (strncmp (str, "cal", 3) == 0)) visible = FALSE; else visible = TRUE; - } else if (strncmp(window->priv->filter_view, "cal", 3) == 0) { + } else if (strncmp (window->priv->filter_view, "cal", 3) == 0) { /* Show only calendar and nothing else */ if (str && (strncmp (str, "cal", 3) != 0)) visible = FALSE; @@ -537,7 +537,7 @@ e_preferences_window_filter_page (EPreferencesWindow *window, /* XXX: We need a better solution to hide the icon view when * there is just one entry */ - if (strncmp(page_name, "cal", 3) == 0) { + if (strncmp (page_name, "cal", 3) == 0) { gtk_widget_hide (window->priv->scroll); } else gtk_widget_show (window->priv->scroll); diff --git a/widgets/misc/e-send-options.c b/widgets/misc/e-send-options.c index 54507d22e5..4b54c58157 100644 --- a/widgets/misc/e-send-options.c +++ b/widgets/misc/e-send-options.c @@ -451,7 +451,7 @@ get_widgets (ESendOptionsDialog *sod) priv->priority = e_builder_get_widget (builder, "combo-priority"); priv->status = e_builder_get_widget (builder, "status-tracking"); priv->security = e_builder_get_widget (builder, "security-combo"); - priv->notebook = (GtkNotebook *)e_builder_get_widget (builder, "notebook"); + priv->notebook = (GtkNotebook *) e_builder_get_widget (builder, "notebook"); priv->reply_request = e_builder_get_widget (builder, "reply-request-button"); priv->reply_convenient = e_builder_get_widget (builder, "reply-convinient"); priv->reply_within = e_builder_get_widget (builder, "reply-within"); diff --git a/widgets/misc/e-spell-entry.c b/widgets/misc/e-spell-entry.c index c232dbc948..afc8c0e3bf 100644 --- a/widgets/misc/e-spell-entry.c +++ b/widgets/misc/e-spell-entry.c @@ -510,7 +510,7 @@ spell_entry_add_suggestions_menu (ESpellEntry *entry, /* Above the separator, show the suggestions menu */ icon = gtk_image_new_from_stock (GTK_STOCK_SPELL_CHECK, GTK_ICON_SIZE_MENU); - mi = gtk_image_menu_item_new_with_label(_("Spelling Suggestions")); + mi = gtk_image_menu_item_new_with_label (_("Spelling Suggestions")); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), icon); gtk_menu_item_set_submenu (GTK_MENU_ITEM (mi), build_spelling_menu (entry, word)); diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c index b1d726dab6..802e402438 100644 --- a/widgets/misc/e-web-view.c +++ b/widgets/misc/e-web-view.c @@ -2756,7 +2756,7 @@ e_web_view_get_default_settings (void) settings = webkit_web_settings_new (); g_object_set (G_OBJECT (settings), - "enable-frame-flattening", TRUE, + "enable-frame-flattening", TRUE, "enable-java-applet", FALSE, "enable-html5-database", FALSE, "enable-html5-local-storage", FALSE, diff --git a/widgets/misc/ea-calendar-cell.c b/widgets/misc/ea-calendar-cell.c index c71f4f4d47..b66a991bba 100644 --- a/widgets/misc/ea-calendar-cell.c +++ b/widgets/misc/ea-calendar-cell.c @@ -86,7 +86,7 @@ e_calendar_cell_new (ECalendarItem *calitem, cell->column = column; #ifdef ACC_DEBUG - g_print ("EvoAcc: e_calendar_cell created %p\n", (gpointer)cell); + g_print ("EvoAcc: e_calendar_cell created %p\n", (gpointer) cell); #endif return cell; diff --git a/widgets/misc/ea-calendar-item.c b/widgets/misc/ea-calendar-item.c index aca4b9152c..80b90105d4 100644 --- a/widgets/misc/ea-calendar-item.c +++ b/widgets/misc/ea-calendar-item.c @@ -1208,7 +1208,7 @@ e_calendar_item_get_day_extents (ECalendarItem *calitem, new_year = year; new_month = month; - e_calendar_item_normalize_date (calitem, &new_year, &new_month); + e_calendar_item_normalize_date (calitem, &new_year, &new_month); num_months = calitem->rows * calitem->cols; months_offset = (new_year - calitem->year) * 12 + new_month - calitem->month; @@ -1338,7 +1338,7 @@ ea_calendar_set_focus_object (EaCalendarItem *ea_calitem, AtkObject *old_cell; old_cell = (AtkObject *) g_object_get_data ( - G_OBJECT(ea_calitem), "gail-focus-object"); + G_OBJECT (ea_calitem), "gail-focus-object"); if (old_cell && EA_IS_CALENDAR_CELL (old_cell)) { old_state_set = atk_object_ref_state_set (old_cell); atk_state_set_remove_state (old_state_set, ATK_STATE_FOCUSED); @@ -1349,6 +1349,6 @@ ea_calendar_set_focus_object (EaCalendarItem *ea_calitem, state_set = atk_object_ref_state_set (item_cell); atk_state_set_add_state (state_set, ATK_STATE_FOCUSED); - g_object_set_data (G_OBJECT(ea_calitem), "gail-focus-object", item_cell); + g_object_set_data (G_OBJECT (ea_calitem), "gail-focus-object", item_cell); g_object_unref (state_set); } diff --git a/widgets/misc/test-calendar.c b/widgets/misc/test-calendar.c index c6d1a8eee6..2127fc0715 100644 --- a/widgets/misc/test-calendar.c +++ b/widgets/misc/test-calendar.c @@ -108,7 +108,7 @@ on_date_range_changed (ECalendarItem *calitem) gint start_year, start_month, start_day; gint end_year, end_month, end_day; - e_calendar_item_get_date_range (calitem, + e_calendar_item_get_date_range (calitem, &start_year, &start_month, &start_day, &end_year, &end_month, &end_day); @@ -128,7 +128,7 @@ on_selection_changed (ECalendarItem *calitem) { GDate start_date, end_date; - e_calendar_item_get_selection (calitem, &start_date, &end_date); + e_calendar_item_get_selection (calitem, &start_date, &end_date); g_print ("Selection changed (D/M/Y): %i/%i/%i - %i/%i/%i\n", g_date_get_day (&start_date), |