~ubuntu-branches/ubuntu/raring/almanah/raring

« back to all changes in this revision

Viewing changes to src/events/calendar-appointment.c

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2012-04-03 14:25:25 UTC
  • mfrom: (11.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120403142525-ugk3fb0blonrl2b9
Tags: 0.9.0-1
* debian/watch: Update for .xz
* Imported Upstream version 0.9.0
* debian/patches/01_largefile_support.patch: Remove, applied upstream
* debian/patches/02_gtkspell-3.0.patch: Remove, applied upstream
* Remove dh_autoreconf stuff
* debian/copyright: Update upstream years

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "event.h"
24
24
#include "calendar-appointment.h"
25
 
#include "main.h"
 
25
#include "interface.h"
26
26
 
27
27
static void almanah_calendar_appointment_event_finalize (GObject *object);
28
28
static const gchar *almanah_calendar_appointment_event_format_value (AlmanahEvent *event);
29
 
static gboolean almanah_calendar_appointment_event_view (AlmanahEvent *event);
 
29
static gboolean almanah_calendar_appointment_event_view (AlmanahEvent *event, GtkWindow *parent_window);
30
30
 
31
31
struct _AlmanahCalendarAppointmentEventPrivate {
32
32
        gchar *summary;
88
88
}
89
89
 
90
90
static gboolean
91
 
almanah_calendar_appointment_event_view (AlmanahEvent *event)
 
91
almanah_calendar_appointment_event_view (AlmanahEvent *event, GtkWindow *parent_window)
92
92
{
93
93
        AlmanahCalendarAppointmentEventPrivate *priv = ALMANAH_CALENDAR_APPOINTMENT_EVENT (event)->priv;
94
94
        struct tm utc_date_tm;
108
108
                                        utc_date_tm.tm_min,
109
109
                                        0);
110
110
 
111
 
        if (almanah->debug == TRUE)
112
 
                g_debug ("Executing \"%s\".", command_line);
 
111
        g_debug ("Executing \"%s\".", command_line);
113
112
 
114
 
        retval = almanah_run_on_screen (gtk_widget_get_screen (almanah->main_window), command_line, &error);
 
113
        retval = almanah_run_on_screen (gtk_widget_get_screen (GTK_WIDGET (parent_window)), command_line, &error);
115
114
        g_free (command_line);
116
115
 
117
116
        if (retval == FALSE) {
118
 
                GtkWidget *dialog = gtk_message_dialog_new (GTK_WINDOW (almanah->main_window),
 
117
                GtkWidget *dialog = gtk_message_dialog_new (parent_window,
119
118
                                                            GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
120
119
                                                            _("Error launching Evolution"));
121
120
                gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);