[anjal] BUGFIX: Moblin Bugzilla #9413 - Crash while clicking sortby



commit 757c49ab3a319fa57587ac86d11f8202f8beb36e
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Wed Feb 3 14:59:47 2010 +0530

    BUGFIX: Moblin Bugzilla #9413 - Crash while clicking sortby

 src/mail-account-view.c  |    6 +++---
 src/mail-composer-view.c |    6 +++---
 src/mail-conv-view.c     |    6 +++---
 src/mail-settings-view.c |    8 ++++----
 4 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/mail-account-view.c b/src/mail-account-view.c
index b12d447..95838d1 100644
--- a/src/mail-account-view.c
+++ b/src/mail-account-view.c
@@ -744,9 +744,9 @@ mail_account_view_get_tab_widget(MailAccountView *mcv)
 void
 mail_account_view_activate (MailAccountView *mcv, GtkWidget *tree, GtkWidget *folder_tree, GtkWidget *check_mail, GtkWidget *sort_by, gboolean act)
 {
-	 if (!folder_tree || !check_mail || !sort_by)
+	 if (!check_mail || !sort_by)
 		  return;
 	 //gtk_widget_hide (folder_tree);
-	 gtk_widget_set_sensitive (check_mail, act);
-	 gtk_widget_set_sensitive (sort_by, act);
+	 gtk_widget_set_sensitive (check_mail, TRUE);
+	 gtk_widget_set_sensitive (sort_by, FALSE);
 }
diff --git a/src/mail-composer-view.c b/src/mail-composer-view.c
index 9e0fdc0..600c7d8 100644
--- a/src/mail-composer-view.c
+++ b/src/mail-composer-view.c
@@ -255,12 +255,12 @@ mail_composer_view_new_with_composer (GtkWidget *msgcomposer)
 void
 mail_composer_view_activate (MailComposerView *mfv, GtkWidget *folder_tree, GtkWidget *check_mail, GtkWidget *sort_by, gboolean act)
 {
-	 if (!folder_tree || !check_mail || !sort_by)
+	 if (!check_mail || !sort_by)
 		  return;
 	 //gtk_widget_hide (folder_tree);
 	 //g_signal_emit (mfv, signals[MESSAGE_SHOWN], 0);
-	 gtk_widget_set_sensitive (check_mail, act);
-	 gtk_widget_set_sensitive (sort_by, act);
+	 gtk_widget_set_sensitive (check_mail, TRUE);
+	 gtk_widget_set_sensitive (sort_by, FALSE);
 }
 
 /* Whether we can close the composer or not.
diff --git a/src/mail-conv-view.c b/src/mail-conv-view.c
index 2fe6961..94571fb 100644
--- a/src/mail-conv-view.c
+++ b/src/mail-conv-view.c
@@ -539,12 +539,12 @@ mail_conv_view_new ()
 void
 mail_conv_view_activate (MailConvView *mcv, GtkWidget *tree, GtkWidget *folder_tree, GtkWidget *check_mail, GtkWidget *sort_by, gboolean act)
 {
-	 if (!folder_tree || !check_mail || !sort_by)
+	 if (!check_mail || !sort_by)
 		  return;
 	 //gtk_widget_hide (folder_tree);
 	 //g_signal_emit (mcv, signals[MESSAGE_SHOWN], 0);
-	 gtk_widget_set_sensitive (check_mail, act);
-	 gtk_widget_set_sensitive (sort_by, act);
+	 gtk_widget_set_sensitive (check_mail, TRUE);
+	 gtk_widget_set_sensitive (sort_by, FALSE);
 }
 
 static gboolean
diff --git a/src/mail-settings-view.c b/src/mail-settings-view.c
index 53fb729..ca08a41 100644
--- a/src/mail-settings-view.c
+++ b/src/mail-settings-view.c
@@ -289,10 +289,10 @@ mail_settings_view_get_tab_widget(MailSettingsView *mcv)
 void
 mail_settings_view_activate (MailSettingsView *mcv, GtkWidget *tree, GtkWidget *folder_tree, GtkWidget *check_mail, GtkWidget *sort_by, GtkWidget *slider, gboolean act)
 {
-	 if (!folder_tree || !check_mail || !sort_by)
+	 if (!check_mail || !sort_by)
 		  return;
-	 if (!GTK_WIDGET_VISIBLE(folder_tree))
-	 	 gtk_widget_show (slider);
+	 //if (!GTK_WIDGET_VISIBLE(folder_tree))
+	 //	 gtk_widget_show (slider);
 	 gtk_widget_set_sensitive (check_mail, TRUE);
-	 gtk_widget_set_sensitive (sort_by, act);
+	 gtk_widget_set_sensitive (sort_by, FALSE);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]