aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/import-ics-attachments
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@src.gnome.org>2006-01-28 00:34:03 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-01-28 00:34:03 +0800
commit45f799eb8632142a31d1dbf3572c2672bb36c747 (patch)
tree852523494c449077b4e59e0812bd7277d6892a4f /plugins/import-ics-attachments
parent6a557ef8fd8fb37af345b0f092f8419572bee1dd (diff)
downloadgsoc2013-evolution-45f799eb8632142a31d1dbf3572c2672bb36c747.tar.gz
gsoc2013-evolution-45f799eb8632142a31d1dbf3572c2672bb36c747.tar.zst
gsoc2013-evolution-45f799eb8632142a31d1dbf3572c2672bb36c747.zip
Make this place a bit more quiet
svn path=/trunk/; revision=31328
Diffstat (limited to 'plugins/import-ics-attachments')
-rw-r--r--plugins/import-ics-attachments/.cvsignore3
-rw-r--r--plugins/import-ics-attachments/icsimporter.c18
2 files changed, 12 insertions, 9 deletions
diff --git a/plugins/import-ics-attachments/.cvsignore b/plugins/import-ics-attachments/.cvsignore
new file mode 100644
index 0000000000..2a782dc66a
--- /dev/null
+++ b/plugins/import-ics-attachments/.cvsignore
@@ -0,0 +1,3 @@
+Makefile.in
+Makefile
+*.eplug
diff --git a/plugins/import-ics-attachments/icsimporter.c b/plugins/import-ics-attachments/icsimporter.c
index 577a5af7ca..40c5a02ddd 100644
--- a/plugins/import-ics-attachments/icsimporter.c
+++ b/plugins/import-ics-attachments/icsimporter.c
@@ -219,7 +219,7 @@ init_widgets(char *path)
subcomp = icalcomponent_get_inner(icidata->icalcomp);
kind = icalcomponent_isa (subcomp);
- char *label_str;
+ char *label_str = NULL;
if (kind == ICAL_VTODO_COMPONENT ) {
e_cal_get_sources (&source_list, E_CAL_SOURCE_TYPE_TODO, NULL);
label_str = _("Select Task List");
@@ -232,7 +232,7 @@ init_widgets(char *path)
char *markup;
markup = g_markup_printf_escaped ("<b>%s</b>", label_str);
- gtk_label_set_markup (label, markup);
+ gtk_label_set_markup (GTK_LABEL (label), markup);
hbox = gtk_hbox_new (FALSE, FALSE);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 6);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 6);
@@ -240,9 +240,9 @@ init_widgets(char *path)
selector = e_source_selector_new (source_list);
e_source_selector_show_selection (E_SOURCE_SELECTOR (selector), FALSE);
scrolled = gtk_scrolled_window_new(NULL, NULL);
- gtk_scrolled_window_set_policy((GtkScrolledWindow *)scrolled, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_container_add((GtkContainer *)scrolled, selector);
- gtk_scrolled_window_set_shadow_type (scrolled, GTK_SHADOW_IN);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled), GTK_SHADOW_IN);
hbox = gtk_hbox_new (FALSE, FALSE);
gtk_box_pack_start (GTK_BOX (hbox), scrolled, TRUE, TRUE, 6);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 6);
@@ -261,13 +261,13 @@ init_widgets(char *path)
gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 6);
gtk_widget_show(label);
GtkWidget *button = gtk_button_new ();
- gtk_container_add (button, hbox);
- gtk_dialog_add_action_widget (dialog, button, GTK_RESPONSE_OK);
+ gtk_container_add (GTK_CONTAINER (button), hbox);
+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, GTK_RESPONSE_OK);
gtk_widget_grab_focus (button);
- gtk_window_set_default_size (dialog, 210,340);
+ gtk_window_set_default_size (GTK_WINDOW (dialog), 210,340);
gtk_widget_show_all (dialog);
- gtk_dialog_run (dialog);
+ gtk_dialog_run (GTK_DIALOG (dialog));
}
static void
@@ -414,7 +414,7 @@ ical_import_done(ICalImporterData *icidata)
{
g_object_unref (icidata->client);
icalcomponent_free (icidata->icalcomp);
- gtk_signal_emit_by_name (GTK_DIALOG(icidata->window), "close");
+ gtk_signal_emit_by_name (GTK_OBJECT (icidata->window), "close");
g_free (icidata);
}