2007-08-24 [holger] 2.10.0cvs170
[claws.git] / src / plugins / trayicon / trayicon.c
index d618950af357921f3d204c02df2df296cd3a9cce..4f01ce88da47870b3eec2fef3e7d7d16797a1b4f 100644 (file)
@@ -318,10 +318,10 @@ static gboolean click_cb(GtkWidget * widget,
                /* initialize checkitem according to current offline state */
                gtk_check_menu_item_set_active(
                        GTK_CHECK_MENU_ITEM(gtk_item_factory_get_item(traymenu_factory,
-                       _("/Work Offline"))), prefs_common.work_offline);
+                       "/Work Offline")), prefs_common.work_offline);
                gtk_widget_set_sensitive(
                        GTK_WIDGET(gtk_item_factory_get_item(traymenu_factory,
-                       _("/Get Mail"))), mainwin->lock_count == 0);
+                       "/Get Mail")), mainwin->lock_count == 0);
                updating_menu = FALSE;
 
                gtk_menu_popup( GTK_MENU(traymenu_popup), NULL, NULL, NULL, NULL,
@@ -418,7 +418,7 @@ int plugin_init(gchar **error)
        }
 
        account_hook_id = hooks_register_hook (ACCOUNT_LIST_CHANGED_HOOKLIST, trayicon_set_accounts_hook, NULL);
-       if (offline_hook_id == -1) {
+       if (account_hook_id == -1) {
                *error = g_strdup(_("Failed to register account list changed hook"));
                return -1;
        }
@@ -430,7 +430,7 @@ int plugin_init(gchar **error)
        }
 
        iconified_hook_id = hooks_register_hook (MAIN_WINDOW_GOT_ICONIFIED, trayicon_got_iconified_hook, NULL);
-       if (offline_hook_id == -1) {
+       if (iconified_hook_id == -1) {
                *error = g_strdup(_("Failed to register got iconified hook"));
                return -1;
        }