Miscellaneous cleanups.

This commit is contained in:
Matthew Barnes
2013-07-07 11:25:07 -04:00
parent 90cacf75dd
commit cd76c782bd
22 changed files with 74 additions and 66 deletions

View File

@ -288,7 +288,7 @@ dropdown_changed (GtkWidget *dropdown,
static void
email_dropdown_changed (GtkWidget *dropdown,
dropdown_data *data)
dropdown_data *data)
{
gchar *str = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (dropdown));

View File

@ -1595,9 +1595,9 @@ tray_list_add_new (TrayIconData *data)
static void
alarm_queue_get_alarm_summary (ECalComponent *comp,
const ECalComponentAlarmInstance *instance,
ECalComponentText *text,
ECalComponentAlarm **palarm)
const ECalComponentAlarmInstance *instance,
ECalComponentText *text,
ECalComponentAlarm **palarm)
{
g_return_if_fail (comp != NULL);
g_return_if_fail (instance != NULL);

View File

@ -184,9 +184,9 @@ clear_widgets (Dialog *dialog)
static void
populate_relative_time_combobox_widget (GtkWidget *combobox,
ECalClient *cal_client,
const gint *map,
gint prop)
ECalClient *cal_client,
const gint *map,
gint prop)
{
GtkTreeModel *model;
GtkTreeIter iter;
@ -817,7 +817,7 @@ dialog_to_alarm (Dialog *dialog)
static void
build_combobox_widget (GtkWidget *combobox,
const gchar *actions[])
const gchar *actions[])
{
GtkComboBox *combo = GTK_COMBO_BOX (combobox);
GtkCellRenderer *cell;

View File

@ -2206,7 +2206,7 @@ complete_date_changed (TaskPage *tpage,
static void
completed_date_changed_cb (EDateEdit *dedit,
TaskPage *tpage)
TaskPage *tpage)
{
TaskPagePrivate *priv = tpage->priv;
CompEditorPageDates dates = {NULL, NULL, NULL, NULL};
@ -2351,9 +2351,9 @@ percent_complete_changed (GtkAdjustment *adj,
static gboolean
task_page_transform_classification_to_combo (GBinding *binding,
const GValue *source_value,
GValue *target_value,
gpointer user_data)
const GValue *source_value,
GValue *target_value,
gpointer user_data)
{
gint action_value;
@ -2368,9 +2368,9 @@ task_page_transform_classification_to_combo (GBinding *binding,
static gboolean
task_page_transform_classification_from_combo (GBinding *binding,
const GValue *source_value,
GValue *target_value,
gpointer user_data)
const GValue *source_value,
GValue *target_value,
gpointer user_data)
{
gint combo_value;

View File

@ -74,9 +74,9 @@ G_DEFINE_TYPE (ECalListView, e_cal_list_view, E_TYPE_CALENDAR_VIEW)
static void
e_cal_list_view_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec)
guint property_id,
GValue *value,
GParamSpec *pspec)
{
ECalListView *eclv = E_CAL_LIST_VIEW (object);
@ -152,8 +152,8 @@ get_current_time_cb (ECellDateEdit *ecde,
static void
e_cal_list_view_table_editing_changed_cb (ETable *table,
GParamSpec *param,
ECalListView *eclv)
GParamSpec *param,
ECalListView *eclv)
{
g_return_if_fail (E_IS_CAL_LIST_VIEW (eclv));

View File

@ -2375,8 +2375,8 @@ e_calendar_view_is_editing (ECalendarView *cal_view)
g_return_val_if_fail (E_IS_CALENDAR_VIEW (cal_view), FALSE);
/* this should be called from the main thread only,
and each descendant overrides the property,
thus might cause no call recursion */
* and each descendant overrides the property,
* thus might cause no call recursion */
if (in) {
g_warn_if_reached ();
return FALSE;

View File

@ -183,7 +183,7 @@ static gchar *
emcu_part_to_html (EMsgComposer *composer,
CamelMimePart *part,
gssize *len,
gboolean keep_signature,
gboolean keep_signature,
GCancellable *cancellable)
{
CamelSession *session;
@ -2648,7 +2648,7 @@ e_msg_composer_add_message_attachments (EMsgComposer *composer,
static void
handle_multipart_signed (EMsgComposer *composer,
CamelMultipart *multipart,
gboolean keep_signature,
gboolean keep_signature,
GCancellable *cancellable,
gint depth)
{
@ -2729,7 +2729,7 @@ handle_multipart_signed (EMsgComposer *composer,
static void
handle_multipart_encrypted (EMsgComposer *composer,
CamelMimePart *multipart,
gboolean keep_signature,
gboolean keep_signature,
GCancellable *cancellable,
gint depth)
{
@ -2822,7 +2822,7 @@ handle_multipart_encrypted (EMsgComposer *composer,
static void
handle_multipart_alternative (EMsgComposer *composer,
CamelMultipart *multipart,
gboolean keep_signature,
gboolean keep_signature,
GCancellable *cancellable,
gint depth)
{
@ -2897,7 +2897,7 @@ handle_multipart_alternative (EMsgComposer *composer,
static void
handle_multipart (EMsgComposer *composer,
CamelMultipart *multipart,
gboolean keep_signature,
gboolean keep_signature,
GCancellable *cancellable,
gint depth)
{

View File

@ -324,8 +324,8 @@ e_alert_dialog_new_for_args (GtkWindow *parent,
static gboolean
dialog_focus_in_event_cb (GtkWindow *dialog,
GdkEvent *event,
GtkWindow *parent)
GdkEvent *event,
GtkWindow *parent)
{
gtk_window_set_urgency_hint (parent, FALSE);

View File

@ -373,8 +373,8 @@ set_initial_selection (ETableClickToAdd *etcta)
static void
table_click_to_add_row_is_editing_changed_cb (ETableItem *item,
GParamSpec *param,
ETableClickToAdd *etcta)
GParamSpec *param,
ETableClickToAdd *etcta)
{
g_return_if_fail (E_IS_TABLE_CLICK_TO_ADD (etcta));

View File

@ -61,8 +61,8 @@ enum {
static void
etgl_item_is_editing_changed_cb (ETableItem *item,
GParamSpec *param,
ETableGroupLeaf *etgl)
GParamSpec *param,
ETableGroupLeaf *etgl)
{
g_return_if_fail (E_IS_TABLE_GROUP_LEAF (etgl));
@ -109,7 +109,8 @@ etgl_dispose (GObject *object)
etgl->item,
etgl->etgl_start_drag_id);
g_signal_handlers_disconnect_by_func (etgl->item,
g_signal_handlers_disconnect_by_func (
etgl->item,
etgl_item_is_editing_changed_cb, etgl);
etgl->etgl_cursor_change_id = 0;
@ -368,7 +369,8 @@ etgl_realize (GnomeCanvasItem *item)
etgl->item, "start_drag",
G_CALLBACK (etgl_start_drag), etgl);
g_signal_connect (etgl->item, "notify::is-editing",
g_signal_connect (
etgl->item, "notify::is-editing",
G_CALLBACK (etgl_item_is_editing_changed_cb), etgl);
e_canvas_item_request_reflow (item);

View File

@ -85,9 +85,9 @@ etg_dispose (GObject *object)
static void
etg_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec)
guint property_id,
GValue *value,
GParamSpec *pspec)
{
ETableGroup *etg = E_TABLE_GROUP (object);
@ -795,8 +795,8 @@ e_table_group_is_editing (ETableGroup *table_group)
g_return_val_if_fail (E_IS_TABLE_GROUP (table_group), FALSE);
/* this should be called from the main thread only,
and each descendant overrides the property,
thus might cause no call recursion */
* and each descendant overrides the property,
* thus might cause no call recursion */
if (in) {
g_warn_if_reached ();
return FALSE;

View File

@ -1072,8 +1072,8 @@ et_table_rows_deleted (ETableModel *table_model,
static void
group_is_editing_changed_cb (ETableClickToAdd *etcta,
GParamSpec *param,
ETable *table)
GParamSpec *param,
ETable *table)
{
g_return_if_fail (E_IS_TABLE (table));
@ -1371,8 +1371,8 @@ canvas_vbox_event (ECanvasVbox *vbox,
static void
click_to_add_is_editing_changed_cb (ETableClickToAdd *etcta,
GParamSpec *param,
ETable *table)
GParamSpec *param,
ETable *table)
{
g_return_if_fail (E_IS_TABLE (table));

View File

@ -261,8 +261,8 @@ G_DEFINE_TYPE_WITH_CODE (ETree, e_tree, GTK_TYPE_TABLE,
static void
tree_item_is_editing_changed_cb (ETableItem *item,
GParamSpec *param,
ETree *tree)
GParamSpec *param,
ETree *tree)
{
g_return_if_fail (E_IS_TREE (tree));

View File

@ -689,7 +689,7 @@ em_utils_is_local_delivery_mbox_file (CamelURL *url)
}
/* Expands groups to individual addresses, or removes empty groups completely.
Usual email addresses are left untouched.
* Usual email addresses are left untouched.
*/
void
em_utils_expand_groups (CamelInternetAddress *addresses)

View File

@ -1008,8 +1008,8 @@ em_utils_composer_print_cb (EMsgComposer *composer,
EMailSession *session)
{
/* as long as EMsgComposer uses GtkHTML, use its routine for printing;
this conditional compile is here rather to not forget to fix this
once the WebKit-based composer will land */
* this conditional compile is here rather to not forget to fix this
* once the WebKit-based composer will land */
#if defined(GTK_TYPE_HTML)
EWebViewGtkHTML *gtkhtml_web_view;
GtkPrintOperation *operation;

View File

@ -202,8 +202,8 @@ action_address_book_properties_cb (GtkAction *action,
static void
address_book_refresh_done_cb (GObject *source_object,
GAsyncResult *result,
gpointer user_data)
GAsyncResult *result,
gpointer user_data)
{
EClient *client;
GError *error = NULL;
@ -228,7 +228,7 @@ address_book_refresh_done_cb (GObject *source_object,
static void
action_address_book_refresh_cb (GtkAction *action,
EBookShellView *book_shell_view)
EBookShellView *book_shell_view)
{
EBookShellSidebar *book_shell_sidebar;
ESourceSelector *selector;

View File

@ -627,7 +627,7 @@ e_google_chooser_apply_selected (EGoogleChooser *chooser)
void
e_google_chooser_construct_default_uri (SoupURI *soup_uri,
const gchar *username)
const gchar *username)
{
gchar *decoded_user, *path;

View File

@ -127,7 +127,8 @@ cal_config_google_commit_changes (ESourceConfigBackend *backend,
ESourceAuthentication *authentication_extension
= e_source_get_extension (scratch_source, E_SOURCE_EXTENSION_AUTHENTICATION);
e_google_chooser_construct_default_uri (soup_uri,
e_google_chooser_construct_default_uri (
soup_uri,
e_source_authentication_get_user (authentication_extension));
}

View File

@ -319,8 +319,8 @@ gc_get_default_time (ECalModel *model,
static void
cal_shell_content_is_editing_changed_cb (gpointer cal_view_tasks_memos_table,
GParamSpec *param,
EShellView *shell_view)
GParamSpec *param,
EShellView *shell_view)
{
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
@ -408,7 +408,8 @@ cal_shell_content_constructed (GObject *object)
for (ii = 0; ii < GNOME_CAL_LAST_VIEW; ii++) {
calendar_view = gnome_calendar_get_calendar_view (calendar, ii);
g_signal_connect (calendar_view, "notify::is-editing",
g_signal_connect (
calendar_view, "notify::is-editing",
G_CALLBACK (cal_shell_content_is_editing_changed_cb), shell_view);
gtk_notebook_append_page (
@ -465,7 +466,8 @@ cal_shell_content_constructed (GObject *object)
G_CALLBACK (e_cal_shell_view_taskpad_open_task),
shell_view);
g_signal_connect (widget, "notify::is-editing",
g_signal_connect (
widget, "notify::is-editing",
G_CALLBACK (cal_shell_content_is_editing_changed_cb), shell_view);
container = priv->vpaned;
@ -510,7 +512,8 @@ cal_shell_content_constructed (GObject *object)
G_CALLBACK (e_cal_shell_view_memopad_open_memo),
shell_view);
g_signal_connect (widget, "notify::is-editing",
g_signal_connect (
widget, "notify::is-editing",
G_CALLBACK (cal_shell_content_is_editing_changed_cb), shell_view);
/* Load the view instance. */

View File

@ -292,8 +292,8 @@ memo_shell_content_restore_state_cb (EShellWindow *shell_window,
static void
memo_shell_content_is_editing_changed_cb (EMemoTable *memo_table,
GParamSpec *param,
EShellView *shell_view)
GParamSpec *param,
EShellView *shell_view)
{
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
@ -532,7 +532,8 @@ memo_shell_content_constructed (GObject *object)
G_CALLBACK (memo_shell_content_selection_change_cb),
object);
g_signal_connect (priv->memo_table, "notify::is-editing",
g_signal_connect (
priv->memo_table, "notify::is-editing",
G_CALLBACK (memo_shell_content_is_editing_changed_cb), shell_view);
g_signal_connect_swapped (

View File

@ -291,8 +291,8 @@ task_shell_content_restore_state_cb (EShellWindow *shell_window,
static void
task_shell_content_is_editing_changed_cb (ETaskTable *task_table,
GParamSpec *param,
EShellView *shell_view)
GParamSpec *param,
EShellView *shell_view)
{
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
@ -531,7 +531,8 @@ task_shell_content_constructed (GObject *object)
G_CALLBACK (task_shell_content_selection_change_cb),
object);
g_signal_connect (priv->task_table, "notify::is-editing",
g_signal_connect (
priv->task_table, "notify::is-editing",
G_CALLBACK (task_shell_content_is_editing_changed_cb), shell_view);
g_signal_connect_swapped (

View File

@ -1191,7 +1191,7 @@ static GtkActionEntry shell_gal_view_entries[] = {
NULL,
N_("Delete Current View"),
NULL,
NULL, /* Set in update_view_menu() */
NULL, /* Set in update_view_menu */
G_CALLBACK (action_gal_delete_view_cb) },
{ "gal-save-custom-view",