changes and bugfixes submitted by Andre Eibel
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 30 Jun 2001 11:40:01 +0000 (11:40 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 30 Jun 2001 11:40:01 +0000 (11:40 +0000)
27 files changed:
ChangeLog.claws
src/addr_compl.c
src/addressbook.c
src/alertpanel.c
src/codeconv.c
src/esmtp.c
src/folder.c
src/foldersel.c
src/folderview.c
src/gtkstext.c
src/headerwindow.c
src/inc.c
src/logwindow.c
src/mainwindow.c
src/messageview.c
src/mimeview.c
src/pop.c
src/prefs.c
src/prefs_account.c
src/prefs_common.c
src/procheader.c
src/procmime.c
src/session.c
src/sigstatus.c
src/summary_search.c
src/summaryview.c
src/utils.c

index e37c6e6..1b6c679 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-30 [alfons]
+
+       * lots of files changed; first attempt to merge the changes
+         and bugfixes submitted by Andre Eibel (ae@baltic-online.de).
+
 2001-06-30 [paul]
 
        * po/pt_BR.po
index 2a71384..f89ac9f 100644 (file)
@@ -47,7 +47,7 @@
 #include "main.h"
 
 #define LOG_MESSAGE \
-       debug_mode == 0 ? (debug_mode == debug_mode) : (void)debug_print 
+       debug_mode == 0 ? (debug_mode == debug_mode) : debug_print 
 
 /* How it works:
  *
@@ -438,7 +438,7 @@ gchar *get_prev_complete_address(void)
 
 guint get_completion_count(void)
 {
-       if (is_completion_pending)
+       if (is_completion_pending())
                return g_completion_count;
        else
                return 0;
index 38c2e52..6c77856 100644 (file)
@@ -324,7 +324,7 @@ static void addressbook_create(gboolean show)
        window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        gtk_window_set_title(GTK_WINDOW(window), _("Address book"));
        gtk_widget_set_usize(window, ADDRESSBOOK_WIDTH, ADDRESSBOOK_HEIGHT);
-       //gtk_container_set_border_width(GTK_CONTAINER(window), BORDER_WIDTH);
+       /* gtk_container_set_border_width(GTK_CONTAINER(window), BORDER_WIDTH); */
        gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE);
        gtk_widget_realize(window);
 
@@ -839,7 +839,7 @@ static void addressbook_entry_changed(GtkWidget *widget)
        gint len;
        gint row;
 
-       //if (clist->selection && clist->selection->next) return;
+       /* if (clist->selection && clist->selection->next) return; */
 
        str = gtk_entry_get_text(entry);
        if (*str == '\0') {
index 21c69c8..9fa1647 100644 (file)
@@ -206,8 +206,8 @@ static void alertpanel_create(const gchar *title,
                           hbox, TRUE, TRUE, 16);
 
        /* title label */
-       //pixmapwid = create_pixmapwid(dialog, GNUstep_xpm);
-       //gtk_box_pack_start(GTK_BOX(hbox), pixmapwid, FALSE, FALSE, 16);
+       /* pixmapwid = create_pixmapwid(dialog, GNUstep_xpm); */
+       /* gtk_box_pack_start(GTK_BOX(hbox), pixmapwid, FALSE, FALSE, 16); */
        label = gtk_label_new(title);
        gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 16);
        style = gtk_style_copy(gtk_widget_get_style(label));
index d6f665e..530bbc7 100644 (file)
@@ -774,7 +774,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
        gchar *mimehdr_enctype = "?B?";
        const gchar *mimehdr_charset;
 
-       //g_print("src = %s\n", src);
+       /* g_print("src = %s\n", src); */
        mimehdr_charset = conv_get_outgoing_charset_str();
 
        /* convert to wide-character string */
@@ -784,7 +784,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                strlen(mimehdr_charset) + strlen(mimehdr_enctype);
        mimehdr_begin_len = strlen(mimehdr_init) +
                strlen(mimehdr_charset) + strlen(mimehdr_enctype);
-       //line_len = 1;
+       /* line_len = 1; */
        line_len = header_len;
        destp = dest;
        *dest = '\0';
@@ -847,8 +847,8 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                                }
                                /* g_free(raw); */
                                src_codeset = conv_get_current_charset_str();
-                               //printf ("tmp = %s, tlen = %d, mbl\n",
-                               //      tmp, tlen, mbl);
+                               /* printf ("tmp = %s, tlen = %d, mbl\n", 
+                                       tmp, tlen, mbl); */
                                if (jconv_alloc_conv(tmp, tlen + mbl,
                                                     &raw_new, &raw_new_len,
                                                     &src_codeset, 1,
@@ -907,8 +907,10 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
 
                                wtmpp++;
                        }
-                       //g_print("tmp = %s, tlen = %d, mb_seqlen = %d\n",
-                       //      tmp, tlen, mb_seqlen);
+                       /*
+                         g_print("tmp = %s, tlen = %d, mb_seqlen = %d\n",
+                               tmp, tlen, mb_seqlen);
+                       */                              
 
                        if (tlen == 0 || raw_len == 0) {
                                g_free(tmp);
@@ -944,7 +946,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
 
                        g_free(tmp);
                        g_free(raw);
-                       //g_print("line_len = %d\n\n", line_len);
+                       /* g_print("line_len = %d\n\n", line_len); */
                } while (*wtmpp != (wchar_t)0);
 
                while (iswspace(*wsrcp)) {
@@ -963,7 +965,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
 
        g_free(wsrc);
 
-       //g_print("dest = %s\n", dest);
+       /g_print("dest = %s\n", dest);
 }
 #else /* !HAVE_LIBJCONV */
 
@@ -981,7 +983,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
        gchar *mimehdr_enctype = "?B?";
        const gchar *mimehdr_charset;
 
-       //g_print("src = %s\n", src);
+       /* g_print("src = %s\n", src); */
        mimehdr_charset = conv_get_outgoing_charset_str();
        if (strcmp(mimehdr_charset, "ISO-2022-JP") != 0) {
                /* currently only supports Japanese */
@@ -996,7 +998,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                      strlen(mimehdr_charset) + strlen(mimehdr_enctype);
        mimehdr_begin_len = strlen(mimehdr_init) +
                            strlen(mimehdr_charset) + strlen(mimehdr_enctype);
-       //line_len = 1;
+       /* line_len = 1; */
        line_len = header_len;
        destp = dest;
        *dest = '\0';
@@ -1097,8 +1099,9 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
 
                                wtmpp++;
                        }
-                       //g_print("tmp = %s, tlen = %d, mb_seqlen = %d\n",
-                       //      tmp, tlen, mb_seqlen);
+                       /* g_print("tmp = %s, tlen = %d, mb_seqlen = %d\n",
+                               tmp, tlen, mb_seqlen);
+                       */                              
 
                        if (tlen == 0) {
                                g_free(tmp);
@@ -1139,7 +1142,7 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
                        }
 
                        g_free(tmp);
-                       //g_print("line_len = %d\n\n", line_len);
+                       /* g_print("line_len = %d\n\n", line_len); */
                } while (*wtmpp != (wchar_t)0);
 
                while (iswspace(*wsrcp)) {
@@ -1158,6 +1161,6 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src,
 
        g_free(wsrc);
 
-       //g_print("dest = %s\n", dest);
+       /* g_print("dest = %s\n", dest); */
 }
 #endif /* HAVE_LIBJCONV */
index b77b2f9..529bef2 100644 (file)
@@ -67,7 +67,7 @@ gint esmtp_auth(SockInfo *sock, SMTPAuthType authtype,
        guchar hexdigest[33];
        gchar *challenge, *response, *response64;
        gint challengelen;
-       //const gchar delimiters[]=" ";
+       /* const gchar delimiters[]=" "; */
        gchar *token;
 
        switch (authtype) {
index ab98e1f..161e67a 100644 (file)
@@ -238,6 +238,7 @@ void folder_destroy(Folder *folder)
                news_folder_destroy(NEWS_FOLDER(folder));
                break;
        default:
+               break;
        }
 
        folder_tree_destroy(folder);
@@ -977,6 +978,7 @@ static void folder_init(Folder *folder, FolderType type, const gchar *name)
 
                break;
        default:
+               break;
        }
 
        switch (type) {
@@ -990,6 +992,7 @@ static void folder_init(Folder *folder, FolderType type, const gchar *name)
                REMOTE_FOLDER(folder)->session = NULL;
                break;
        default:
+               break;
        }
 }
 
@@ -1102,6 +1105,7 @@ static gboolean folder_build_tree(GNode *node, gpointer data)
        case F_QUEUE:  folder->queue  = item; break;
        case F_TRASH:  folder->trash  = item; break;
        default:
+               break;
        }
 
        prefs_folder_item_read_config(item);
index 8a40459..09fda2a 100644 (file)
@@ -163,10 +163,12 @@ static void foldersel_create(void)
        gtk_ctree_set_indent(GTK_CTREE(ctree), CTREE_INDENT);
        GTK_WIDGET_UNSET_FLAGS(GTK_CLIST(ctree)->column[0].button,
                               GTK_CAN_FOCUS);
-       //gtk_signal_connect(GTK_OBJECT(ctree), "tree_select_row",
-       //                 GTK_SIGNAL_FUNC(foldersel_selected), NULL);
+       /*                             
+       gtk_signal_connect(GTK_OBJECT(ctree), "tree_select_row",
+                          GTK_SIGNAL_FUNC(foldersel_selected), NULL);
        gtk_signal_connect(GTK_OBJECT(ctree), "select_row",
                           GTK_SIGNAL_FUNC(foldersel_selected), NULL);
+       */
 
        entry = gtk_entry_new();
        gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0);
index 2bd3c55..70cc6ca 100644 (file)
@@ -833,10 +833,12 @@ static void folderview_update_node(FolderView *folderview, GtkCTreeNode *node)
                                name = " (News)"; break;
                        default:
                                name = "";
+                               break;
                        }
                        name = g_strconcat(item->name, name, NULL);
                } else
                        name = g_strdup(item->name);
+               break;                  
        }
 
        if (!GTK_CTREE_ROW(node)->expanded &&
@@ -1299,6 +1301,7 @@ static void folderview_key_pressed(GtkWidget *widget, GdkEventKey *event,
                BREAK_ON_MODIFIER_KEY();
                summary_pass_key_press_event(folderview->summaryview, event);
        default:
+               break;
        }
 }
 
@@ -1396,6 +1399,7 @@ static void folderview_col_resized(GtkCList *clist, gint column, gint width,
                prefs_common.folder_col_total = width;
                break;
        default:
+               break;
        }
 }
 
@@ -2048,6 +2052,7 @@ static gboolean folderview_drag_motion_cb(GtkWidget      *widget,
                                    acceptable = TRUE;
                                break;
                        default:
+                               break;
                        }
                }
        }
index e4ca82f..0129105 100644 (file)
@@ -2249,7 +2249,7 @@ gtk_stext_key_press (GtkWidget   *widget,
                break;
        case GDK_Down:      
                move_cursor_to_display_row_down(text);
-//             move_cursor_ver (text, +1); 
+/*             move_cursor_ver (text, +1);  */
                break;
        case GDK_Left:
          if (event->state & GDK_CONTROL_MASK)
index 009d71f..a854caa 100644 (file)
@@ -88,8 +88,10 @@ HeaderWindow *header_window_create(void)
 
 void header_window_init(HeaderWindow *headerwin)
 {
-       //if (!normalfont)
-       //      normalfont = gdk_fontset_load(NORMAL_FONT);
+       /*
+       if (!normalfont)
+               normalfont = gdk_fontset_load(NORMAL_FONT);
+       */      
        if (!boldfont)
                boldfont = gdk_fontset_load(BOLD_FONT);
 }
index 00a1809..1e0b9c9 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -574,7 +574,9 @@ static IncState inc_pop3_session_do(IncSession *session)
        recv_set_ui_func(NULL, NULL);
 
 #if USE_THREADS
-       //pthread_join(sockinfo->connect_thr, NULL);
+/*
+       pthread_join(sockinfo->connect_thr, NULL);
+*/     
 #endif
        automaton_destroy(atm);
 
@@ -669,7 +671,7 @@ static gint connection_check_cb(Automaton *atm)
        IncProgressDialog *inc_dialog = state->session->data;
        SockInfo *sockinfo = state->sockinfo;
 
-       //g_print("connection check\n");
+       /* g_print("connection check\n"); */
 
        if (sockinfo->state == CONN_LOOKUPFAILED ||
            sockinfo->state == CONN_FAILED) {
@@ -778,6 +780,7 @@ void inc_progress_update(Pop3State *state, Pop3Phase phase)
                progress_dialog_set_label(dialog, _("Quitting"));
                break;
        default:
+               break;
        }
 }
 
@@ -852,6 +855,7 @@ static void inc_put_error(IncState istate)
                alertpanel_error(_("No disk space left."));
                break;
        default:
+               break;
        }
 }
 
@@ -865,7 +869,7 @@ static void inc_cancel(GtkWidget *widget, gpointer data)
        if (sockinfo->state == CONN_READY ||
            sockinfo->state == CONN_LOOKUPSUCCESS) {
                pthread_cancel(sockinfo->connect_thr);
-               //pthread_kill(sockinfo->connect_thr, SIGINT);
+               /* pthread_kill(sockinfo->connect_thr, SIGINT); */
                g_print("connection was cancelled.\n");
        }
 #endif
index a4bccdc..3226267 100644 (file)
@@ -128,7 +128,7 @@ void log_window_append(const gchar *str, LogType type)
 
        text = GTK_TEXT(logwindow->text);
 
-       //gtk_text_freeze(text);
+       /*gtk_text_freeze(text);*/
 
        switch (type) {
        case LOG_WARN:
@@ -148,7 +148,7 @@ void log_window_append(const gchar *str, LogType type)
        if (head) gtk_text_insert(text, NULL, color, NULL, head, -1);
        gtk_text_insert(text, NULL, color, NULL, str, -1);
 
-       //gtk_text_thaw(text);
+       /*gtk_text_thaw(text);*/
 }
 
 static void key_pressed(GtkWidget *widget, GdkEventKey *event,
index f97d281..6ce2ca0 100644 (file)
@@ -1268,6 +1268,7 @@ void main_window_popup(MainWindow *mainwin)
                gdk_window_raise(widget->window);
                break;
        default:
+               break;
        }
 }
 
index f0db201..5d6d03d 100644 (file)
@@ -146,7 +146,7 @@ void messageview_init(MessageView *messageview)
        textview_init(messageview->textview);
        imageview_init(messageview->imageview);
        mimeview_init(messageview->mimeview);
-       //messageview_set_font(messageview);
+       /*messageview_set_font(messageview);*/
 }
 
 static void notification_convert_header(gchar *dest, gint len, gchar *src,
index edb9781..c807a93 100644 (file)
@@ -72,7 +72,7 @@ static void mimeview_show_message_part                (MimeView       *mimeview,
 static void mimeview_show_image_part           (MimeView       *mimeview,
                                                 MimeInfo       *partinfo);
 static void mimeview_change_view_type          (MimeView       *mimeview,
-                                                ContentType     type);
+                                                MimeViewType    type);
 static void mimeview_clear                     (MimeView       *mimeview);
 
 static void mimeview_selected          (GtkCTree       *ctree,
@@ -637,6 +637,7 @@ static void mimeview_key_pressed(GtkWidget *widget, GdkEventKey *event,
                mimeview_launch(mimeview);
                return;
        default:
+               break;
        }
 
        if (!mimeview->messageview->mainwin) return;
index 5061483..79493bf 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -366,7 +366,7 @@ gint pop3_delete_send(SockInfo *sock, gpointer data)
 {
        Pop3State *state = (Pop3State *)data;
 
-       //inc_progress_update(state, POP3_DELETE_SEND);
+       /*inc_progress_update(state, POP3_DELETE_SEND);*/
 
        pop3_gen_send(sock, "DELE %d", state->cur_msg);
 
index 21da865..4705806 100644 (file)
@@ -130,6 +130,7 @@ void prefs_config_parse_one_line(PrefParam *param, const gchar *buf)
                                (gushort)atoi(value);
                        break;
                default:
+                       break;
                }
        }
 }
@@ -416,6 +417,7 @@ void prefs_set_default(PrefParam *param)
                                *((gushort *)param[i].data) = 0;
                        break;
                default:
+                       break;
                }
        }
 }
@@ -434,6 +436,7 @@ void prefs_free(PrefParam *param)
                        g_free(*((gchar **)param[i].data));
                        break;
                default:
+                       break;
                }
        }
 }
@@ -577,6 +580,7 @@ void prefs_set_dialog_to_default(PrefParam *param)
                        tmpparam.data = &enum_data;
                        break;
                case P_OTHER:
+                       break;
                }
                tmpparam.widget_set_func(&tmpparam);
                g_free(str_data);
index 4fcd609..4a15509 100644 (file)
@@ -1409,6 +1409,7 @@ static void prefs_account_protocol_set_optmenu(PrefParam *pparam)
                break;
                */
        default:
+               break;
        }
 
        menu = gtk_option_menu_get_menu(optmenu);
index 3ff31a1..3bd2469 100644 (file)
@@ -2197,7 +2197,7 @@ static void prefs_quote_colors_dialog_create(void)
        GtkWidget *uri_label;
        GtkWidget *hbbox;
        GtkWidget *ok_btn;
-       //GtkWidget *cancel_btn;
+       /*GtkWidget *cancel_btn;*/
        GtkWidget *recycle_colors_btn;
        GtkWidget *frame_colors;
 
index b4f26d5..e40fc11 100644 (file)
@@ -639,6 +639,7 @@ MsgInfo *procheader_file_parse(FILE * fp, MsgFlags flags,
                        msginfo->fromspace = g_strdup(hp);
                        break;
                default:
+                       break;
                }
        }
        msginfo->inreplyto = reference;
index d4036bf..3ae9567 100644 (file)
@@ -268,7 +268,7 @@ void procmime_scan_multipart_message(MimeInfo *mimeinfo, FILE *fp)
 
                if (eom) break;
        }
-       //g_message ("** at " __PRETTY_FUNCTION__ ":%d:", __LINE__);
+       /*g_message ("** at " __PRETTY_FUNCTION__ ":%d:", __LINE__);*/
 }
 
 void procmime_scan_encoding(MimeInfo *mimeinfo, const gchar *encoding)
index 170529a..316e456 100644 (file)
@@ -35,6 +35,7 @@ void session_destroy(Session *session)
                news_session_destroy(NNTP_SESSION(session));
                break;
        default:
+               break;
        }
 
        g_free(session->server);
index 4770a39..b2b4871 100644 (file)
@@ -234,6 +234,7 @@ const char *gpgmegtk_sig_status_to_string(GpgmeSigStat status)
                 result = _("Error verifying the signature");
                 break;
        default:
+               break;
         }
 
         return result;
index d17c597..b5f46b4 100644 (file)
@@ -98,7 +98,7 @@ static void summary_search_create(SummaryView *summaryview)
        window = gtk_window_new (GTK_WINDOW_DIALOG);
        gtk_window_set_title (GTK_WINDOW (window), _("Search"));
        gtk_widget_set_usize (window, 450, -1);
-       //gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
+       /*gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);*/
        gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, TRUE);
        gtk_container_set_border_width (GTK_CONTAINER (window), 8);
        gtk_signal_connect(GTK_OBJECT(window), "delete_event",
index 501246e..62d714c 100644 (file)
@@ -586,7 +586,7 @@ GtkCTreeNode * summary_find_next_important_score(SummaryView *summaryview,
        GtkCTreeNode *best_node = NULL;
 
        if (current_node)
-               //node = current_node;
+               /*node = current_node;*/
                node = GTK_CTREE_NODE_NEXT(current_node);
        else
                node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list);
@@ -617,7 +617,7 @@ GtkCTreeNode * summary_find_prev_important_score(SummaryView *summaryview,
        GtkCTreeNode *best_node = NULL;
 
        if (current_node)
-               //node = current_node;
+               /*node = current_node;*/
                node = GTK_CTREE_NODE_PREV(current_node);
        else
                node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list);
@@ -1101,7 +1101,7 @@ static GtkCTreeNode *summary_find_next_unread_msg(SummaryView *summaryview,
 
        if (current_node)
                node = current_node;
-               //node = GTK_CTREE_NODE_NEXT(current_node);
+               /*node = GTK_CTREE_NODE_NEXT(current_node);*/
        else
                node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list);
 
@@ -1180,7 +1180,7 @@ static GtkCTreeNode *summary_find_prev_unread_msg(SummaryView *summaryview,
 
        if (current_node)
                node = current_node;
-               //node = GTK_CTREE_NODE_PREV(current_node);
+               /*node = GTK_CTREE_NODE_PREV(current_node);*/
        else
                node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list_end);
 
@@ -1484,7 +1484,7 @@ void summary_sort(SummaryView *summaryview, SummarySortType type)
        gtk_ctree_sort_node(ctree, NULL);
 
        gtk_ctree_node_moveto(ctree, summaryview->selected, -1, 0.5, 0);
-       //gtkut_ctree_set_focus_row(ctree, summaryview->selected);
+       /*gtkut_ctree_set_focus_row(ctree, summaryview->selected);*/
 
        prefs_folder_item_set_config(summaryview->folder_item,
                                     summaryview->sort_type,
@@ -3063,6 +3063,7 @@ static void summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
                gtk_widget_grab_focus(summaryview->folderview->ctree);
                return;
        default:
+               break;
        }
 
        if (!summaryview->selected) {
@@ -3169,6 +3170,7 @@ static void summary_key_pressed(GtkWidget *widget, GdkEventKey *event,
                summary_save_as(summaryview);
                break;
        default:
+               break;
        }
 }
 
@@ -3225,6 +3227,7 @@ static void summary_selected(GtkCTree *ctree, GtkCTreeNode *row,
                }
                break;
        default:
+               break;
        }
 
        if (summaryview->display_msg)
@@ -3265,6 +3268,7 @@ static void summary_col_resized(GtkCList *clist, gint column, gint width,
                prefs_common.summary_col_subject = width;
                break;
        default:
+               break;
        }
 }
 
index 972113e..b9c66d1 100644 (file)
@@ -499,11 +499,12 @@ gint subject_compare(const gchar *s1, const gchar *s2)
        if (!*str1 || !*str2) return -1;
 
        retval = strcmp(str1, str2);
-       //if (retval == 0)
-       //      g_print("\ns1 = %s\ns2 = %s\n"
-       //              "str1 = %s\nstr2 = %s\nmatched.\n",
-       //              s1, s2, str1, str2);
-
+       /*
+       if (retval == 0)
+               g_print("\ns1 = %s\ns2 = %s\n"
+                       "str1 = %s\nstr2 = %s\nmatched.\n",
+                       s1, s2, str1, str2);
+       */
        return retval;
 }
 
@@ -1429,7 +1430,7 @@ gint remove_dir_recursive(const gchar *dir)
        struct dirent *d;
        gchar *prev_dir;
 
-       //g_print("dir = %s\n", dir);
+       /*g_print("dir = %s\n", dir);*/
 
        if (stat(dir, &s) < 0) {
                FILE_OP_ERROR(dir, "stat");
@@ -1447,7 +1448,7 @@ gint remove_dir_recursive(const gchar *dir)
        }
 
        prev_dir = g_get_current_dir();
-       //g_print("prev_dir = %s\n", prev_dir);
+       /*g_print("prev_dir = %s\n", prev_dir);*/
 
        if (!path_cmp(prev_dir, dir)) {
                g_free(prev_dir);
@@ -1482,7 +1483,7 @@ gint remove_dir_recursive(const gchar *dir)
                        continue;
                }
 
-               //g_print("removing %s\n", d->d_name);
+               /*g_print("removing %s\n", d->d_name);*/
 
                if (S_ISDIR(s.st_mode)) {
                        if (remove_dir_recursive(d->d_name) < 0) {