diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-03-27 19:28:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-03-27 19:28:14 +0800 |
commit | c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d (patch) | |
tree | c38e2d6abe33e2ea0564e36bc150897fc3fbb8fb /calendar/gui/alarm-notify/alarm-queue.c | |
parent | b835359be0b9d33022dee7c815ebde9194eee2cf (diff) | |
download | gsoc2013-evolution-c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d.tar.gz gsoc2013-evolution-c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d.tar.zst gsoc2013-evolution-c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d.zip |
Don't mix declarations and code (#405495).
2007-03-27 Matthew Barnes <mbarnes@redhat.com>
* a11y/e-table/gal-a11y-e-cell-text.c:
* a11y/e-table/gal-a11y-e-cell-vbox.c:
* addressbook/gui/component/addressbook-component.c:
* addressbook/gui/component/addressbook-view.c:
* addressbook/gui/contact-editor/e-contact-editor.c:
* addressbook/gui/contact-editor/e-contact-quick-add.c:
* addressbook/gui/widgets/e-addressbook-view.c:
* addressbook/gui/widgets/eab-contact-display.c:
* addressbook/gui/widgets/gal-view-minicard.c:
* calendar/gui/alarm-notify/alarm-queue.c:
* calendar/gui/dialogs/comp-editor.c:
* calendar/gui/dialogs/event-page.c:
* calendar/gui/dialogs/memo-page.c:
* calendar/gui/dialogs/task-page.c:
* calendar/gui/e-cal-popup.c:
* calendar/gui/e-meeting-list-view.c:
* calendar/gui/e-tasks.c:
* calendar/gui/gnome-cal.c:
* composer/e-msg-composer.c:
* mail/em-folder-browser.c:
* mail/em-format.c:
* mail/em-popup.c:
* plugins/exchange-operations/exchange-account-setup.c:
* plugins/exchange-operations/exchange-calendar.c:
* plugins/exchange-operations/exchange-config-listener.c:
* plugins/exchange-operations/exchange-contacts.c:
* plugins/import-ics-attachments/icsimporter.c:
* widgets/misc/e-filter-bar.c:
* widgets/misc/e-multi-config-dialog.c:
* widgets/table/e-cell-checkbox.c:
* widgets/table/e-table-header-item.c:
Don't mix declarations and code (#405495).
svn path=/trunk/; revision=33324
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-queue.c')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index cd25ada5d5..5f5060e8e8 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1082,8 +1082,10 @@ tray_list_remove_cqa_async(EThread *e, AlarmMsg *msg, void *data) } else { GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (alarm_notifications_dialog->treeview)); + GtkTreeSelection *sel; + gtk_tree_model_get_iter_first (model, &iter); - GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (alarm_notifications_dialog->treeview)); + sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (alarm_notifications_dialog->treeview)); gtk_tree_selection_select_iter (sel, &iter); } } @@ -1579,6 +1581,7 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa, char *str, *start_str, *end_str, *alarm_str, *time_str; icaltimezone *current_zone; ECalComponentOrganizer organiser; + NotifyNotification *n; char *body; d(printf("%s:%d (popup_notification)\n",__FILE__, __LINE__)); @@ -1627,7 +1630,7 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa, body = g_strdup_printf ("%s %s", start_str, time_str); } - NotifyNotification *n = notify_notification_new (summary, body, "stock_appointment-reminder", NULL); + n = notify_notification_new (summary, body, "stock_appointment-reminder", NULL); if (!notify_notification_show(n, NULL)) g_warning ("Could not send notification to daemon\n"); |