code clean up
authorPaul Mangan <paul@claws-mail.org>
Thu, 14 Mar 2002 17:46:31 +0000 (17:46 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 14 Mar 2002 17:46:31 +0000 (17:46 +0000)
ChangeLog.claws
configure.in
src/compose.c

index b64d061..3a4e753 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-14 [paul]      0.7.4claws7
+
+       * src/compose.c
+               clean up the last commit (ahem)
+
 2002-03-14 [paul]      0.7.4claws6
 
        * src/compose.c
index 1945544..89c9af4 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws6
+EXTRA_VERSION=claws7
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index bdc2cea..891b2a4 100644 (file)
@@ -5774,36 +5774,27 @@ static void select_account(Compose * compose, PrefsAccount * ac)
                gtk_widget_queue_resize(compose->table_vbox);
 #endif
 #if USE_GPGME
-               if (ac->default_sign) {
-                       ifactory = gtk_item_factory_from_widget(compose->menubar);
+               ifactory = gtk_item_factory_from_widget(compose->menubar);
                        menu_set_sensitive(ifactory,
                                           "/Message/Sign", TRUE);
+                       menu_set_sensitive(ifactory,
+                                          "/Message/Encrypt", TRUE);
+
                        menuitem = gtk_item_factory_get_item(ifactory, "/Message/Sign");
+               if (ac->default_sign)
                        gtk_check_menu_item_set_active
                                (GTK_CHECK_MENU_ITEM(menuitem), TRUE);
-               } else {
-                       ifactory = gtk_item_factory_from_widget(compose->menubar);
-                       menu_set_sensitive(ifactory,
-                                          "/Message/Sign", TRUE);
-                       menuitem = gtk_item_factory_get_item(ifactory, "/Message/Sign");
+               else
                        gtk_check_menu_item_set_active
                                (GTK_CHECK_MENU_ITEM(menuitem), FALSE);
-               }
-               if (ac->default_encrypt) {
-                       ifactory = gtk_item_factory_from_widget(compose->menubar);
-                       menu_set_sensitive(ifactory,
-                                          "/Message/Encrypt", TRUE);
+
                        menuitem = gtk_item_factory_get_item(ifactory, "/Message/Encrypt");
+               if (ac->default_encrypt)
                        gtk_check_menu_item_set_active
                                (GTK_CHECK_MENU_ITEM(menuitem), TRUE);
-               } else {
-                       ifactory = gtk_item_factory_from_widget(compose->menubar);
-                       menu_set_sensitive(ifactory,
-                                          "/Message/Encrypt", TRUE);
-                       menuitem = gtk_item_factory_get_item(ifactory, "/Message/Encrypt");
+               else
                        gtk_check_menu_item_set_active
                                (GTK_CHECK_MENU_ITEM(menuitem), FALSE);
-               }
 #endif /* USE_GPGME */
 
 }