aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/junk-settings.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/junk-settings.c
parentba263d1aceb348eb6a28bb6a07d3f2e9abc351a8 (diff)
downloadgsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.gz
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.bz2
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.lz
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.xz
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/junk-settings.c')
-rw-r--r--plugins/groupwise-features/junk-settings.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/groupwise-features/junk-settings.c b/plugins/groupwise-features/junk-settings.c
index daccf8c1c1..c2bba7ab1d 100644
--- a/plugins/groupwise-features/junk-settings.c
+++ b/plugins/groupwise-features/junk-settings.c
@@ -361,8 +361,10 @@ remove_clicked(GtkButton *button, JunkSettings *js)
static void
user_selected(GtkTreeSelection *selection, JunkSettings *js)
{
+ GtkTreeModel *model;
+
gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
- if (gtk_tree_selection_get_selected (selection, &(js->model), &(js->iter))){
+ if (gtk_tree_selection_get_selected (selection, &model, &(js->iter))){
gtk_widget_set_sensitive (GTK_WIDGET (js->remove), TRUE);
}
@@ -381,7 +383,7 @@ junk_settings_construct (JunkSettings *js)
g_warning ("could not get xml");
}
js->vbox = GTK_VBOX (glade_xml_get_widget(js->xml, "vboxSettings"));
- js->table = GTK_WIDGET (glade_xml_get_widget (js->xml, "vbox194"));
+ js->table = GTK_VBOX (glade_xml_get_widget (js->xml, "vbox194"));
gtk_widget_set_sensitive (GTK_WIDGET (js->table), FALSE);
js->enable = GTK_RADIO_BUTTON (glade_xml_get_widget (js->xml, "radEnable"));
@@ -407,7 +409,7 @@ junk_settings_construct (JunkSettings *js)
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (js->scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
js->model = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
- js->entry_list = gtk_tree_view_new ();
+ js->entry_list = (GtkTreeView *)gtk_tree_view_new ();
/*gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (js->scrolled_window), (GtkWidget *)js->entry_list);*/
gtk_container_add (GTK_CONTAINER (js->scrolled_window), (GtkWidget *)js->entry_list);
gtk_tree_view_set_model (GTK_TREE_VIEW (js->entry_list), GTK_TREE_MODEL (js->model));