aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/share-folder.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-24 11:15:26 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-24 11:15:26 +0800
commitdb4eb8ad23b7601552cb73d88b4dbd04305b0006 (patch)
treee4eb8b41014e449b99a584e45f1ef35e3e448146 /plugins/groupwise-features/share-folder.c
parentba263d1aceb348eb6a28bb6a07d3f2e9abc351a8 (diff)
downloadgsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.gz
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.zst
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.zip
return the right type. (proxy_soap_login): fix pointer cast.
2005-08-23 Not Zed <NotZed@Ximian.com> * proxy-login.c (proxy_get_password): return the right type. (proxy_soap_login): fix pointer cast. (proxy_login_add_new_store): fix pointer cast. (proxy_login_setup_tree_view): fix callback cast. (org_gnome_proxy_account_login): fix prototype to match use. * junk-settings.c (user_selected): fix calling. (junk_settings_construct): more stupid casts. * junk-mail-settings.c (junk_mail_settings): casts. * install-shared.c (install_folder_response): constify item_id. (install_folder_response): remove unused. (org_gnome_popup_wizard): fixed numerous problems with this, over-copying data around, not referencing information properly, freeing potentially unset variables, etc etc. (accept_free): add a free function. * share-folder.c (notification_clicked): fix a multitude of busted casts. (user_selected): fix broken calling conventions, busted style. (share_folder_construct): fix more busted/missing casts. * share-folder-common.c: add missing header. svn path=/trunk/; revision=30232
Diffstat (limited to 'plugins/groupwise-features/share-folder.c')
-rw-r--r--plugins/groupwise-features/share-folder.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/groupwise-features/share-folder.c b/plugins/groupwise-features/share-folder.c
index b76ed73c2d..1886edbcff 100644
--- a/plugins/groupwise-features/share-folder.c
+++ b/plugins/groupwise-features/share-folder.c
@@ -521,10 +521,10 @@ notification_clicked(GtkButton *button, ShareFolder *sf)
gtk_window_set_title (GTK_WINDOW (sf->window), "Custom Notification");
gtk_window_set_position (GTK_WINDOW (sf->window) , GTK_WIN_POS_CENTER_ALWAYS);
gtk_window_set_default_size (GTK_WINDOW (sf->window), 100, 200);
- gtk_widget_reparent (GTK_WINDOW (sf->window), GTK_DIALOG (sf->vbox));
- gtk_window_set_transient_for (sf->window, GTK_DIALOG(sf->vbox));
- gtk_window_set_modal (sf->window, TRUE);
- gtk_window_present (sf->window);
+ gtk_widget_reparent (GTK_WIDGET (sf->window), GTK_WIDGET (sf->vbox));
+ gtk_window_set_transient_for ((GtkWindow *)sf->window, GTK_WINDOW(sf->vbox));
+ gtk_window_set_modal ((GtkWindow *)sf->window, TRUE);
+ gtk_window_present ((GtkWindow *)sf->window);
gtk_widget_show_all (sf->window);
}
@@ -553,12 +553,11 @@ address_button_clicked_cb (GtkButton *button, gpointer data)
static void
user_selected(GtkTreeSelection *selection, ShareFolder *sf)
{
+ GtkTreeModel *model;
gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
- if (gtk_tree_selection_get_selected (selection, &(sf->model), &(sf->iter))){
+ if (gtk_tree_selection_get_selected (selection, &model, &sf->iter))
gtk_widget_set_sensitive (GTK_WIDGET (sf->remove), TRUE);
-
- }
}
static void
@@ -677,7 +676,7 @@ share_folder_construct (ShareFolder *sf)
g_warning ("could not get xml");
}
sf->vbox = GTK_VBOX (glade_xml_get_widget(sf->xml, "vboxSharing"));
- sf->table = GTK_WIDGET (glade_xml_get_widget (sf->xml, "vbox194"));
+ sf->table = GTK_VBOX (glade_xml_get_widget (sf->xml, "vbox194"));
gtk_widget_set_sensitive (GTK_WIDGET (sf->table), FALSE);
sf->shared = GTK_RADIO_BUTTON (glade_xml_get_widget (sf->xml, "radShared"));
@@ -724,7 +723,7 @@ share_folder_construct (ShareFolder *sf)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sf->scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
sf->model = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
- sf->user_list = gtk_tree_view_new ();
+ sf->user_list = (GtkTreeView *)gtk_tree_view_new ();
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sf->scrolled_window), (GtkWidget *)sf->user_list);
gtk_tree_view_set_model (GTK_TREE_VIEW (sf->user_list), GTK_TREE_MODEL (sf->model));
gtk_widget_show (GTK_WIDGET (sf->user_list));