Changeset 295

Show
Ignore:
Timestamp:
07/05/08 03:37:22 (3 months ago)
Author:
mattn
Message:

* more translateable strings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/trunk/contrib/prtview/ConfigDialog.cpp

    r229 r295  
    2929//static char THIS_FILE[] = __FILE__; 
    3030#endif 
     31#include <glib/gi18n.h> 
    3132 
    3233///////////////////////////////////////////////////////////////////////////// 
     
    291292 
    292293  dlg = gtk_window_new (GTK_WINDOW_TOPLEVEL); 
    293   gtk_window_set_title (GTK_WINDOW (dlg), "Portal Viewer Configuration"); 
     294  gtk_window_set_title (GTK_WINDOW (dlg), _("Portal Viewer Configuration")); 
    294295  gtk_signal_connect (GTK_OBJECT (dlg), "delete_event", 
    295296                      GTK_SIGNAL_FUNC (dialog_delete_callback), NULL); 
     
    304305  gtk_container_set_border_width (GTK_CONTAINER (vbox), 5); 
    305306 
    306   frame = gtk_frame_new ("3D View"); 
     307  frame = gtk_frame_new (_("3D View")); 
    307308  gtk_widget_show (frame); 
    308309  gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); 
     
    334335  gtk_table_set_col_spacings (GTK_TABLE (table), 5); 
    335336 
    336   button = gtk_button_new_with_label ("Color"); 
     337  button = gtk_button_new_with_label (_("Color")); 
    337338  gtk_widget_show (button); 
    338339  gtk_table_attach (GTK_TABLE (table), button, 0, 1, 0, 1, 
     
    341342  gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColor3d), NULL); 
    342343 
    343   button = gtk_button_new_with_label ("Depth Color"); 
     344  button = gtk_button_new_with_label (_("Depth Color")); 
    344345  gtk_widget_show (button); 
    345346  gtk_table_attach (GTK_TABLE (table), button, 0, 1, 1, 2, 
     
    355356  gtk_signal_connect (GTK_OBJECT (aa3check), "toggled", GTK_SIGNAL_FUNC (OnAntiAlias3d), NULL); 
    356357 
    357   depthcheck = gtk_check_button_new_with_label ("Depth Cue"); 
     358  depthcheck = gtk_check_button_new_with_label (_("Depth Cue")); 
    358359  gtk_widget_show (depthcheck); 
    359360  gtk_table_attach (GTK_TABLE (table), depthcheck, 1, 2, 1, 2, 
     
    362363  gtk_signal_connect (GTK_OBJECT (depthcheck), "toggled", GTK_SIGNAL_FUNC (OnFog), NULL); 
    363364 
    364   linescheck = gtk_check_button_new_with_label ("Lines"); 
     365  linescheck = gtk_check_button_new_with_label (_("Lines")); 
    365366  gtk_widget_show (linescheck); 
    366367  gtk_table_attach (GTK_TABLE (table), linescheck, 2, 3, 1, 2, 
     
    369370  gtk_signal_connect (GTK_OBJECT (linescheck), "toggled", GTK_SIGNAL_FUNC (OnLines), NULL); 
    370371 
    371   polyscheck = gtk_check_button_new_with_label ("Polygons"); 
     372  polyscheck = gtk_check_button_new_with_label (_("Polygons")); 
    372373  gtk_widget_show (polyscheck); 
    373374  gtk_table_attach (GTK_TABLE (table), polyscheck, 3, 4, 1, 2, 
     
    384385  gtk_option_menu_set_menu (GTK_OPTION_MENU (zlist), menu); 
    385386 
    386   item = gtk_menu_item_new_with_label ("Z-Buffer Test and Write (recommended for solid or no polygons)"); 
     387  item = gtk_menu_item_new_with_label (_("Z-Buffer Test and Write (recommended for solid or no polygons)")); 
    387388  gtk_widget_show (item); 
    388389  gtk_signal_connect (GTK_OBJECT (item), "activate", 
     
    390391  gtk_menu_append (GTK_MENU (menu), item); 
    391392 
    392   item = gtk_menu_item_new_with_label ("Z-Buffer Test Only (recommended for transparent polygons)"); 
     393  item = gtk_menu_item_new_with_label (_("Z-Buffer Test Only (recommended for transparent polygons)")); 
    393394  gtk_widget_show (item); 
    394395  gtk_signal_connect (GTK_OBJECT (item), "activate", 
     
    396397  gtk_menu_append (GTK_MENU (menu), item); 
    397398 
    398   item = gtk_menu_item_new_with_label ("Z-Buffer Off"); 
     399  item = gtk_menu_item_new_with_label (_("Z-Buffer Off")); 
    399400  gtk_widget_show (item); 
    400401  gtk_signal_connect (GTK_OBJECT (item), "activate", 
     
    444445  gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0); 
    445446 
    446   show3check = gtk_check_button_new_with_label ("Show"); 
     447  show3check = gtk_check_button_new_with_label (_("Show")); 
    447448  gtk_widget_show (show3check); 
    448449  gtk_box_pack_start (GTK_BOX (hbox), show3check, TRUE, TRUE, 0); 
    449450  gtk_signal_connect (GTK_OBJECT (show3check), "toggled", GTK_SIGNAL_FUNC (OnConfig3d), NULL); 
    450451 
    451   portalcheck = gtk_check_button_new_with_label ("Portal cubic clipper"); 
     452  portalcheck = gtk_check_button_new_with_label (_("Portal cubic clipper")); 
    452453  gtk_widget_show (portalcheck); 
    453454  gtk_box_pack_start (GTK_BOX (hbox), portalcheck, TRUE, TRUE, 0); 
    454455  gtk_signal_connect (GTK_OBJECT (portalcheck), "toggled", GTK_SIGNAL_FUNC (OnClip), NULL); 
    455456 
    456   frame = gtk_frame_new ("2D View"); 
     457  frame = gtk_frame_new (_("2D View")); 
    457458  gtk_widget_show (frame); 
    458459  gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); 
     
    482483  gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0); 
    483484 
    484   button = gtk_button_new_with_label ("Color"); 
     485  button = gtk_button_new_with_label (_("Color")); 
    485486  gtk_widget_show (button); 
    486487  gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); 
     
    488489  gtk_widget_set_usize (button, 60, -2); 
    489490 
    490   aa2check = gtk_check_button_new_with_label ("Anti-Alias (May not work on some video cards)"); 
     491  aa2check = gtk_check_button_new_with_label (_("Anti-Alias (May not work on some video cards)")); 
    491492  gtk_widget_show (aa2check); 
    492493  gtk_box_pack_start (GTK_BOX (hbox), aa2check, TRUE, TRUE, 0); 
     
    497498  gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0); 
    498499 
    499   show2check = gtk_check_button_new_with_label ("Show"); 
     500  show2check = gtk_check_button_new_with_label (_("Show")); 
    500501  gtk_widget_show (show2check); 
    501502  gtk_box_pack_start (GTK_BOX (hbox), show2check, FALSE, FALSE, 0); 
     
    506507  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); 
    507508 
    508   button = gtk_button_new_with_label ("OK"); 
     509  button = gtk_button_new_with_label (_("OK")); 
    509510  gtk_widget_show (button); 
    510511  gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0); 
  • GtkRadiant/trunk/radiant/gtkdlgs.cpp

    r289 r295  
    26452645  gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, FALSE, 0); 
    26462646 
    2647   frame = gtk_frame_new ((char*)NULL); 
     2647  frame = gtk_frame_new (NULL); 
    26482648  gtk_widget_show (frame); 
    26492649  gtk_box_pack_start (GTK_BOX (vbox2), frame, FALSE, FALSE, 0); 
  • GtkRadiant/trunk/radiant/gtkfilesel-linux.c

    r183 r295  
    2222 * file for a list of people on the GTK+ Team.  See the ChangeLog 
    2323 * files for a list of changes.  These files are distributed with 
    24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.  
     24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
    2525 */ 
    2626#define LEO 
     
    310310#define TIME_STRING_BUF 50 
    311311 
    312 /* I've put this here so it doesn't get confused with the  
     312/* I've put this here so it doesn't get confused with the 
    313313 * file completion interface */ 
    314314typedef struct _HistoryCallbackArg HistoryCallbackArg; 
     
    455455 
    456456/* pixmap creation function */ 
    457 GtkWidget*                 create_pixmap          (GtkWidget *widget,  
     457GtkWidget*                 create_pixmap          (GtkWidget *widget, 
    458458                                                   const gchar *pixmap_char); 
    459459 
     
    525525                                            gchar** remaining_text, 
    526526                                            CompletionState* cmpl_state); 
    527 static gboolean       check_dir            (gchar *dir_name,  
    528                                             struct stat *result,  
     527static gboolean       check_dir            (gchar *dir_name, 
     528                                            struct stat *result, 
    529529                                            gboolean *stat_subdirs); 
    530530static CompletionDir* open_dir             (gchar* dir_name, 
     
    534534static CompletionDir* open_relative_dir    (gchar* dir_name, CompletionDir* dir, 
    535535                                            CompletionState *cmpl_state); 
    536 static CompletionDirSent* open_new_dir     (gchar* dir_name,  
     536static CompletionDirSent* open_new_dir     (gchar* dir_name, 
    537537                                            struct stat* sbuf, 
    538538                                            gboolean stat_subdirs); 
     
    573573 
    574574static void gtk_file_selection_file_button (GtkWidget *widget, 
    575                                             gint row,  
    576                                             gint column,  
     575                                            gint row, 
     576                                            gint column, 
    577577                                            GdkEventButton *bevent, 
    578578                                            gpointer user_data); 
     
    619619 
    620620//static void gtk_file_selection_home_button (GtkWidget *widget, gpointer data); 
    621 static void gtk_file_selection_bookmark_button (GtkWidget *widget,  
     621static void gtk_file_selection_bookmark_button (GtkWidget *widget, 
    622622                                   GtkFileSelection *fs); 
    623623 
     
    639639static void gtk_file_selection_load_masks(GtkFileSelection *fs); 
    640640 
    641 static gint gtk_file_selection_show_fileop_menu (GtkCList *clist,  
    642                                                  GdkEvent *event,  
     641static gint gtk_file_selection_show_fileop_menu (GtkCList *clist, 
     642                                                 GdkEvent *event, 
    643643                                                 GtkFileSelection *fs); 
    644644 
    645                                                   
     645 
    646646static GtkWindowClass *parent_class = NULL; 
    647647 
     
    695695 
    696696  /* 
    697    * Now, replace backslashes with forward slashes  
     697   * Now, replace backslashes with forward slashes 
    698698   * if necessary. 
    699699   */ 
     
    704704        if (path[index] == '\\') 
    705705          path[index] = '/'; 
    706        
     706 
    707707      updated = 1; 
    708708    } 
    709      
     709 
    710710  return updated; 
    711711} 
     
    795795 
    796796  tc = 0; mc = 0; 
    797          
     797 
    798798  if (mask[0] == 0 && text[0] == 0) return 1; 
    799          
     799 
    800800  if (mask[0] == '*') 
    801801    { 
     
    926926          item->desc=g_strdup(bookmark_data+lp); 
    927927          lp=++cp; 
    928            
     928 
    929929          while (cp < file_info.st_size && bookmark_data[cp] != '>' ) 
    930930            cp++; 
     
    956956} 
    957957 
    958 static void  
    959 gtk_file_selection_add_bookmark (GtkFileSelection *fs, gchar *desc, gchar *path)  
     958static void 
     959gtk_file_selection_add_bookmark (GtkFileSelection *fs, gchar *desc, gchar *path) 
    960960{ 
    961961  /* Add item to menu */ 
     
    973973} 
    974974 
    975 gint  
     975gint 
    976976gtk_file_selection_save_bookmarks (GtkFileSelection *fs) 
    977977{ 
     
    994994      g_free(item_data); 
    995995    } 
    996      
     996 
    997997    close(file); 
    998998  } else { 
     
    11711171  char *dir_title [2]; 
    11721172  char *file_title [2]; 
    1173    
     1173 
    11741174  filesel->cmpl_state = cmpl_init_state (); 
    11751175 
     
    11961196  gtk_box_pack_start (GTK_BOX (filesel->main_vbox), pulldown_hbox, FALSE, FALSE, 0); 
    11971197  gtk_widget_show (pulldown_hbox); 
    1198    
     1198 
    11991199  /* The horizontal box containing create, rename etc. buttons */ 
    12001200 
     
    12281228  gtk_container_set_border_width (GTK_CONTAINER (list_vbox),2); 
    12291229  gtk_widget_show (list_vbox); 
    1230    
     1230 
    12311231  /*  The horizontal box containing the directory and file listboxes  */ 
    12321232//  list_hbox = gtk_hbox_new (FALSE, 3); 
     
    12601260 
    12611261  /* Here we add the bookmark menu button */ 
    1262   #define If we're going to make bookmark a menu, we don't need  
     1262  #define If we're going to make bookmark a menu, we don't need 
    12631263  #define   to keep it in the filesel structure 
    12641264  button=gtk_button_new_with_label(_("Bookmarks")); 
     
    12681268                      (GtkSignalFunc) gtk_file_selection_bookmark_button, 
    12691269                      (gpointer) filesel); 
    1270    
     1270 
    12711271  hbox2 = gtk_hbox_new (FALSE, 2); 
    12721272  gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, FALSE, 0); 
     
    13191319  /* menu for right click file operations */ 
    13201320  filesel->fileop_menu = gtk_menu_new(); 
    1321    
    1322   menu_item = gtk_menu_item_new_with_label ("Rename..."); 
     1321 
     1322  menu_item = gtk_menu_item_new_with_label (_("Rename...")); 
    13231323  gtk_widget_show(menu_item); 
    13241324  gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate", 
     
    13271327  gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item); 
    13281328 
    1329   menu_item = gtk_menu_item_new_with_label ("Delete"); 
     1329  menu_item = gtk_menu_item_new_with_label (_("Delete")); 
    13301330  gtk_widget_show(menu_item); 
    13311331  gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item); 
     
    13381338  gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item); 
    13391339 
    1340   menu_item = gtk_menu_item_new_with_label ("Create Directory..."); 
     1340  menu_item = gtk_menu_item_new_with_label (_("Create Directory...")); 
    13411341  gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate", 
    1342                              (GtkSignalFunc) gtk_file_selection_create_dir,  
     1342                             (GtkSignalFunc) gtk_file_selection_create_dir, 
    13431343                             (gpointer) filesel); 
    13441344  gtk_widget_show(menu_item); 
     
    13491349  gtk_widget_show(menu_item); 
    13501350 
    1351   menu_item = gtk_menu_item_new_with_label ("Properties..."); 
     1351  menu_item = gtk_menu_item_new_with_label (_("Properties...")); 
    13521352  gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate", 
    13531353                             (GtkSignalFunc) gtk_file_selection_properties, 
     
    13681368                      (gpointer) filesel); 
    13691369  gtk_signal_connect (GTK_OBJECT (filesel->dir_list), "button_press_event", 
    1370                       GTK_SIGNAL_FUNC(gtk_file_selection_show_fileop_menu),  
     1370                      GTK_SIGNAL_FUNC(gtk_file_selection_show_fileop_menu), 
    13711371                      (gpointer) filesel); 
    13721372 
     
    13791379  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win, TRUE,TRUE, 0); 
    13801380  //gtk_container_add(GTK_CONTAINER(hpaned), scrolled_win); 
    1381    
     1381 
    13821382  gtk_widget_show (filesel->dir_list); 
    13831383  gtk_widget_show (scrolled_win); 
     
    14111411                     (GtkSignalFunc) gtk_file_selection_mask_entry_callback, 
    14121412                     (gpointer) filesel); 
    1413   gtk_signal_connect(GTK_OBJECT(((GtkCombo *)filesel->mask_entry)->entry),"key-press-event",                            
     1413  gtk_signal_connect(GTK_OBJECT(((GtkCombo *)filesel->mask_entry)->entry),"key-press-event", 
    14141414                     (GtkSignalFunc) gtk_file_selection_mask_entry_key_callback, 
    14151415                     (gpointer) filesel); 
     
    14301430  gtk_widget_set_usize (filesel->file_list, FILE_LIST_WIDTH, FILE_LIST_HEIGHT); 
    14311431  gtk_signal_connect (GTK_OBJECT (filesel->file_list), "select_row", 
    1432                       (GtkSignalFunc) gtk_file_selection_file_button,  
     1432                      (GtkSignalFunc) gtk_file_selection_file_button, 
    14331433                      (gpointer) filesel); 
    14341434  gtk_signal_connect (GTK_OBJECT (filesel->file_list), "key-press-event", 
    14351435                      (GtkSignalFunc) gtk_file_selection_files_list_key_callback, 
    14361436                      (gpointer) filesel); 
    1437    
     1437 
    14381438  gtk_signal_connect (GTK_OBJECT (filesel->file_list), "button_press_event", 
    1439                       GTK_SIGNAL_FUNC(gtk_file_selection_show_fileop_menu),  
     1439                      GTK_SIGNAL_FUNC(gtk_file_selection_show_fileop_menu), 
    14401440                      (gpointer) filesel); 
    14411441 
     
    14521452  /* action area for packing buttons into. */ 
    14531453  filesel->action_area = gtk_hbox_new (TRUE, 0); 
    1454   gtk_box_pack_start (GTK_BOX (filesel->main_vbox), filesel->action_area,  
     1454  gtk_box_pack_start (GTK_BOX (filesel->main_vbox), filesel->action_area, 
    14551455                      FALSE, FALSE, 2); 
    14561456  gtk_widget_show (filesel->action_area); 
     
    14631463 
    14641464  /*  The selection entry widget  */ 
    1465    
     1465 
    14661466  entry_vbox = gtk_vbox_new (FALSE, 0); 
    14671467  gtk_box_pack_end (GTK_BOX (filesel->main_vbox), entry_vbox, FALSE, FALSE, 0); 
     
    14961496                    (GtkAttachOptions) (0), 0, 0); 
    14971497  gtk_widget_show (label); 
    1498    
     1498 
    14991499 
    15001500  filesel->history_combo = gtk_combo_new(); 
     
    15051505  gtk_widget_show(filesel->history_combo); 
    15061506 
    1507   gtk_signal_connect(GTK_OBJECT(((GtkCombo *)filesel->history_combo)->entry),"key-press-event",                                     
     1507  gtk_signal_connect(GTK_OBJECT(((GtkCombo *)filesel->history_combo)->entry),"key-press-event", 
    15081508                     (GtkSignalFunc) gtk_file_selection_history_combo_callback, 
    15091509                     (gpointer) filesel); 
     
    15831583  gtk_window_set_title (GTK_WINDOW (filesel), title); 
    15841584  /* !!! put check here to figure out if screen > 640x480, if true 
    1585      We need to make the file selection dialog bigger. much bigger..  
     1585     We need to make the file selection dialog bigger. much bigger.. 
    15861586     or maybe we should keep it at a certan percentage of the screen 
    15871587     size? */ 
     
    15981598 
    15991599  return; 
    1600          
     1600 
    16011601  /* delete, create directory, and rename */ 
    16021602/* 
    1603   if (!filesel->fileop_c_dir)  
     1603  if (!filesel->fileop_c_dir) 
    16041604    { 
    16051605      filesel->fileop_c_dir = gtk_button_new_with_label (_("MkDir")); 
    16061606      gtk_signal_connect (GTK_OBJECT (filesel->fileop_c_dir), "clicked", 
    1607                           (GtkSignalFunc) gtk_file_selection_create_dir,  
     1607                          (GtkSignalFunc) gtk_file_selection_create_dir, 
    16081608                          (gpointer) filesel); 
    1609       gtk_box_pack_start (GTK_BOX (filesel->button_area),  
     1609      gtk_box_pack_start (GTK_BOX (filesel->button_area), 
    16101610                          filesel->fileop_c_dir, TRUE,TRUE, 0); 
    16111611      gtk_widget_show (filesel->fileop_c_dir); 
    16121612    } 
    1613          
    1614   if (!filesel->fileop_del_file)  
     1613 
     1614  if (!filesel->fileop_del_file) 
    16151615    { 
    16161616      filesel->fileop_del_file = gtk_button_new_with_label (_("Delete")); 
    16171617      gtk_signal_connect (GTK_OBJECT (filesel->fileop_del_file), "clicked", 
    1618                           (GtkSignalFunc) gtk_file_selection_delete_file,  
     1618                          (GtkSignalFunc) gtk_file_selection_delete_file, 
    16191619                          (gpointer) filesel); 
    1620       gtk_box_pack_start (GTK_BOX (filesel->button_area),  
     1620      gtk_box_pack_start (GTK_BOX (filesel->button_area), 
    16211621                          filesel->fileop_del_file, TRUE,TRUE, 0); 
    16221622      gtk_widget_show (filesel->fileop_del_file); 
     
    16271627      filesel->fileop_ren_file = gtk_button_new_with_label (_("Rename")); 
    16281628      gtk_signal_connect (GTK_OBJECT (filesel->fileop_ren_file), "clicked", 
    1629                           (GtkSignalFunc) gtk_file_selection_rename_file,  
     1629                          (GtkSignalFunc) gtk_file_selection_rename_file, 
    16301630                          (gpointer) filesel); 
    1631       gtk_box_pack_start (GTK_BOX (filesel->button_area),  
     1631      gtk_box_pack_start (GTK_BOX (filesel->button_area), 
    16321632                          filesel->fileop_ren_file, TRUE,TRUE, 0); 
    16331633      gtk_widget_show (filesel->fileop_ren_file); 
     
    16381638} 
    16391639 
    1640 void        
     1640void 
    16411641gtk_file_selection_hide_fileop_buttons (GtkFileSelection *filesel) 
    16421642{ 
    16431643  g_return_if_fail (filesel != NULL); 
    16441644  g_return_if_fail (GTK_IS_FILE_SELECTION (filesel)); 
    1645    
     1645 
    16461646  return; 
    16471647  /* 
    1648   if (filesel->fileop_ren_file)  
     1648  if (filesel->fileop_ren_file) 
    16491649    { 
    16501650      gtk_widget_destroy (filesel->fileop_ren_file); 
     
    17281728  gchar *new_pattern; 
    17291729  gint x; 
    1730          
     1730 
    17311731  g_return_if_fail (filesel != NULL); 
    17321732  g_return_if_fail (GTK_IS_FILE_SELECTION (filesel)); 
     
    17351735  if (filesel->selection_entry) 
    17361736    gtk_entry_set_text (GTK_ENTRY (filesel->selection_entry), pattern); 
    1737          
     1737 
    17381738  if(strchr(pattern,'*') || strchr(pattern,'?')) 
    17391739    { 
     
    17431743        } 
    17441744      gtk_entry_set_text(GTK_ENTRY(filesel->mask_entry),g_strdup(pattern+x+1)); 
    1745        
     1745 
    17461746      if(filesel->mask) g_free(filesel->mask); 
    1747        
     1747 
    17481748      filesel->mask=g_strdup(pattern+x+1); 
    17491749      new_pattern=g_strdup(pattern); 
     
    17911791 
    17921792  filesel = GTK_FILE_SELECTION (object); 
    1793    
     1793 
    17941794  if (filesel->fileop_dialog) 
    17951795    gtk_widget_destroy (filesel->fileop_dialog); 
    1796    
     1796 
    17971797  if (filesel->next_history) 
    17981798    { 
     
    18241824      filesel->mask = NULL; 
    18251825    } 
    1826    
     1826 
    18271827  cmpl_free_state (filesel->cmpl_state); 
    18281828  filesel->cmpl_state = NULL; 
     
    18441844  g_return_val_if_fail (fs != NULL, FALSE); 
    18451845  g_return_val_if_fail (GTK_FILE_SELECTION (fs), FALSE); 
    1846    
     1846 
    18471847  if (event->type == GDK_BUTTON_PRESS) 
    18481848    { 
     
    18511851        { 
    18521852 
    1853           gtk_menu_popup (GTK_MENU (fs->fileop_menu), NULL, NULL, NULL, NULL,  
     1853          gtk_menu_popup (GTK_MENU (fs->fileop_menu), NULL, NULL, NULL, NULL, 
    18541854                          event_button->button, event_button->time); 
    18551855          return TRUE; 
    18561856        } 
    18571857    } 
    1858    
     1858 
    18591859  return FALSE; 
    18601860} 
     
    18671867  GtkWidget *button; 
    18681868  GtkWidget *dialog; 
    1869    
     1869 
    18701870  g_return_if_fail (error_message != NULL); 
    1871    
     1871 
    18721872  /* main dialog */ 
    18731873  dialog = gtk_dialog_new (); 
    18741874  /* 
    18751875  gtk_signal_connect (GTK_OBJECT (dialog), "destroy", 
    1876                       (GtkSignalFunc) gtk_file_selection_fileop_destroy,  
     1876                      (GtkSignalFunc) gtk_file_selection_fileop_destroy, 
    18771877                      (gpointer) fs); 
    18781878  */ 
    18791879  gtk_window_set_title (GTK_WINDOW (dialog), _("Error")); 
    18801880  gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); 
    1881    
     1881 
    18821882  /* If file dialog is grabbed, make this dialog modal too */ 
    18831883  /* When error dialog is closed, file dialog will be grabbed again */ 
     
    18981898  /* yes, we free it */ 
    18991899  g_free (error_message); 
    1900    
     1900 
    19011901  /* close button */ 
    19021902  button = gtk_button_new_with_label (_("Close")); 
    19031903  gtk_signal_connect_object (GTK_OBJECT (button), "clicked", 
    1904                              (GtkSignalFunc) gtk_widget_destroy,  
     1904                             (GtkSignalFunc) gtk_widget_destroy, 
    19051905                             (gpointer) dialog); 
    19061906  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    19201920  g_return_if_fail (fs != NULL); 
    19211921  g_return_if_fail (GTK_IS_FILE_SELECTION (fs)); 
    1922    
     1922 
    19231923  fs->fileop_dialog = NULL; 
    19241924  g_free (fs->fileop_data); 
     
    19361936  gchar *buf; 
    19371937  CompletionState *cmpl_state; 
    1938    
     1938 
    19391939  g_return_if_fail (fs != NULL); 
    19401940  g_return_if_fail (GTK_IS_FILE_SELECTION (fs)); 
     
    19431943  cmpl_state = (CompletionState*) fs->cmpl_state; 
    19441944  path = cmpl_reference_position (cmpl_state); 
    1945    
     1945 
    19461946  full_path = g_strconcat (path, "/", dirname, NULL); 
    1947   if ( (mkdir (full_path, 0755) < 0) )  
    1948     { 
    1949       buf = g_strconcat ("Error creating directory \"", dirname, "\":  ",  
     1947  if ( (mkdir (full_path, 0755) < 0) ) 
     1948    { 
     1949      buf = g_strconcat ("Error creating directory \"", dirname, "\":  ", 
    19501950                         g_strerror(errno), NULL); 
    19511951      gtk_file_selection_fileop_error (fs, buf); 
    19521952    } 
    19531953  g_free (full_path); 
    1954    
     1954 
    19551955  gtk_widget_destroy (fs->fileop_dialog); 
    19561956  gtk_file_selection_populate (fs, "", FALSE); 
    19571957} 
    1958    
     1958 
    19591959static void 
    19601960gtk_file_selection_create_dir (gpointer data) 
     
    19711971  if (fs->fileop_dialog) 
    19721972          return; 
    1973    
     1973 
    19741974  /* main dialog */ 
    19751975  fs->fileop_dialog = dialog = gtk_dialog_new (); 
    19761976  gtk_signal_connect (GTK_OBJECT (dialog), "destroy", 
    1977                       (GtkSignalFunc) gtk_file_selection_fileop_destroy,  
     1977                      (GtkSignalFunc) gtk_file_selection_fileop_destroy, 
    19781978                      (gpointer) fs); 
    19791979  gtk_window_set_title (GTK_WINDOW (dialog), _("Create Directory")); 
     
    19901990                     FALSE, FALSE, 0); 
    19911991  gtk_widget_show(vbox); 
    1992    
     1992 
    19931993  label = gtk_label_new(_("Directory name:")); 
    19941994  gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0); 
     
    19981998  /*  The directory entry widget  */ 
    19991999  fs->fileop_entry = gtk_entry_new (); 
    2000   gtk_box_pack_start (GTK_BOX (vbox), fs->fileop_entry,  
     2000  gtk_box_pack_start (GTK_BOX (vbox), fs->fileop_entry, 
    20012001                      TRUE, TRUE, 5); 
    20022002  GTK_WIDGET_SET_FLAGS(fs->fileop_entry, GTK_CAN_DEFAULT); 
    20032003  gtk_widget_show (fs->fileop_entry); 
    2004    
     2004 
    20052005  /* buttons */ 
    20062006  button = gtk_button_new_with_label (_("Create")); 
    20072007  gtk_signal_connect (GTK_OBJECT (button), "clicked", 
    2008                       (GtkSignalFunc) gtk_file_selection_create_dir_confirmed,  
     2008                      (GtkSignalFunc) gtk_file_selection_create_dir_confirmed, 
    20092009                      (gpointer) fs); 
    20102010  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    20122012  GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); 
    20132013  gtk_widget_show(button); 
    2014    
     2014 
    20152015  button = gtk_button_new_with_label (_("Cancel")); 
    20162016  gtk_signal_connect_object (GTK_OBJECT (button), "clicked", 
    2017                              (GtkSignalFunc) gtk_widget_destroy,  
     2017                             (GtkSignalFunc) gtk_widget_destroy, 
    20182018                             (gpointer) dialog); 
    20192019  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    20342034  gchar *full_path; 
    20352035  gchar *buf; 
    2036    
     2036 
    20372037  g_return_if_fail (fs != NULL); 
    20382038  g_return_if_fail (GTK_IS_FILE_SELECTION (fs)); 
     
    20402040  cmpl_state = (CompletionState*) fs->cmpl_state; 
    20412041  path = cmpl_reference_position (cmpl_state); 
    2042    
     2042 
    20432043  full_path = g_strconcat (path, "/", fs->fileop_file, NULL); 
    2044   if ( (unlink (full_path) < 0) )  
    2045     { 
    2046       buf = g_strconcat ("Error deleting file \"", fs->fileop_file, "\":  ",  
     2044  if ( (unlink (full_path) < 0) ) 
     2045    { 
     2046      buf = g_strconcat ("Error deleting file \"", fs->fileop_file, "\":  ", 
    20472047                         g_strerror(errno), NULL); 
    20482048      gtk_file_selection_fileop_error (fs, buf); 
    20492049    } 
    20502050  g_free (full_path); 
    2051    
     2051 
    20522052  gtk_widget_destroy (fs->fileop_dialog); 
    20532053  gtk_file_selection_populate (fs, "", FALSE); 
     
    20642064  gchar *filename; 
    20652065  gchar *buf; 
    2066    
     2066 
    20672067  g_return_if_fail (fs != NULL); 
    20682068  g_return_if_fail (GTK_IS_FILE_SELECTION (fs)); 
     
    20762076 
    20772077  fs->fileop_file = filename; 
    2078    
     2078 
    20792079  /* main dialog */ 
    20802080  fs->fileop_dialog = dialog = gtk_dialog_new (); 
    20812081  gtk_signal_connect (GTK_OBJECT (dialog), "destroy", 
    2082                       (GtkSignalFunc) gtk_file_selection_fileop_destroy,  
     2082                      (GtkSignalFunc) gtk_file_selection_fileop_destroy, 
    20832083                      (gpointer) fs); 
    20842084  gtk_window_set_title (GTK_WINDOW (dialog), _("Delete File")); 
     
    20892089  if (GTK_WINDOW(fs)->modal) 
    20902090      gtk_window_set_modal (GTK_WINDOW(dialog), TRUE); 
    2091    
     2091 
    20922092  vbox = gtk_vbox_new(FALSE, 0); 
    20932093  gtk_container_set_border_width(GTK_CONTAINER(vbox), 8); 
     
    21022102  gtk_widget_show(label); 
    21032103  g_free(buf); 
    2104    
     2104 
    21052105  /* buttons */ 
    21062106  button = gtk_button_new_with_label (_("Delete")); 
    21072107  gtk_signal_connect (GTK_OBJECT (button), "clicked", 
    2108                       (GtkSignalFunc) gtk_file_selection_delete_file_confirmed,  
     2108                      (GtkSignalFunc) gtk_file_selection_delete_file_confirmed, 
    21092109                      (gpointer) fs); 
    21102110  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    21122112  GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); 
    21132113  gtk_widget_show(button); 
    2114    
     2114 
    21152115  button = gtk_button_new_with_label (_("Cancel")); 
    21162116  gtk_signal_connect_object (GTK_OBJECT (button), "clicked", 
    2117                              (GtkSignalFunc) gtk_widget_destroy,  
     2117                             (GtkSignalFunc) gtk_widget_destroy, 
    21182118                             (gpointer) dialog); 
    21192119  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    21372137  gchar *old_filename; 
    21382138  CompletionState *cmpl_state; 
    2139    
     2139 
    21402140  g_return_if_fail (fs != NULL); 
    21412141  g_return_if_fail (GTK_IS_FILE_SELECTION (fs)); 
     
    21442144  cmpl_state = (CompletionState*) fs->cmpl_state; 
    21452145  path = cmpl_reference_position (cmpl_state); 
    2146    
     2146 
    21472147  new_filename = g_strconcat (path, "/", file, NULL); 
    21482148  old_filename = g_strconcat (path, "/", fs->fileop_file, NULL); 
    21492149 
    21502150  if (strcmp (new_filename, old_filename)) 
    2151     if ((rename (old_filename, new_filename)) < 0)  
     2151    if ((rename (old_filename, new_filename)) < 0) 
    21522152      { 
    2153         buf = g_strconcat ("Error renaming file \"", file, "\":  ",  
     2153        buf = g_strconcat ("Error renaming file \"", file, "\":  ", 
    21542154                           g_strerror(errno), NULL); 
    21552155        gtk_file_selection_fileop_error (fs, buf); 
     
    21572157  g_free (new_filename); 
    21582158  g_free (old_filename); 
    2159    
     2159 
    21602160  gtk_widget_destroy (fs->fileop_dialog); 
    21612161  gtk_file_selection_populate (fs, "", FALSE); 
    21622162} 
    2163    
     2163 
    21642164static void 
    21652165gtk_file_selection_file_mode_confirmed (GtkWidget *widget, gpointer data) 
     
    21802180  if (chmod (filename, mode) == -1) 
    21812181    { 
    2182       gchar *buf = g_strconcat ("Error changing file mode of \"", filename, "\":  ",  
     2182      gchar *buf = g_strconcat ("Error changing file mode of \"", filename, "\":  ", 
    21832183                                g_strerror (errno), NULL); 
    21842184      gtk_file_selection_fileop_error (fs, buf); 
     
    22012201  GtkWidget *button; 
    22022202  gchar *buf; 
    2203    
     2203 
    22042204  g_return_if_fail (fs != NULL); 
    22052205  g_return_if_fail (GTK_IS_FILE_SELECTION (fs)); 
     
    22112211  if (strlen(fs->fileop_file) < 1) 
    22122212          return; 
    2213    
     2213 
    22142214  /* main dialog */ 
    22152215  fs->fileop_dialog = dialog = gtk_dialog_new (); 
    22162216  gtk_signal_connect (GTK_OBJECT (dialog), "destroy", 
    2217                       (GtkSignalFunc) gtk_file_selection_fileop_destroy,  
     2217                      (GtkSignalFunc) gtk_file_selection_fileop_destroy, 
    22182218                      (gpointer) fs); 
    22192219  gtk_window_set_title (GTK_WINDOW (dialog), _("Rename File")); 
     
    22242224  if (GTK_WINDOW(fs)->modal) 
    22252225    gtk_window_set_modal (GTK_WINDOW(dialog), TRUE); 
    2226    
     2226 
    22272227  vbox = gtk_vbox_new(FALSE, 0); 
    22282228  gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); 
     
    22302230                     FALSE, FALSE, 0); 
    22312231  gtk_widget_show(vbox); 
    2232    
     2232 
    22332233  buf = g_strconcat ("Rename file \"", fs->fileop_file, "\" to:", NULL); 
    22342234  label = gtk_label_new(buf); 
     
    22402240  /* New filename entry */ 
    22412241  fs->fileop_entry = gtk_entry_new (); 
    2242   gtk_box_pack_start (GTK_BOX (vbox), fs->fileop_entry,  
     2242  gtk_box_pack_start (GTK_BOX (vbox), fs->fileop_entry, 
    22432243                      TRUE, TRUE, 5); 
    22442244  GTK_WIDGET_SET_FLAGS(fs->fileop_entry, GTK_CAN_DEFAULT); 
    22452245  gtk_widget_show (fs->fileop_entry); 
    2246    
     2246 
    22472247  gtk_entry_set_text (GTK_ENTRY (fs->fileop_entry), fs->fileop_file); 
    22482248  gtk_editable_select_region (GTK_EDITABLE (fs->fileop_entry), 
     
    22522252  button = gtk_button_new_with_label (_("Rename")); 
    22532253  gtk_signal_connect (GTK_OBJECT (button), "clicked", 
    2254                       (GtkSignalFunc) gtk_file_selection_rename_file_confirmed,  
     2254                      (GtkSignalFunc) gtk_file_selection_rename_file_confirmed, 
    22552255                      (gpointer) fs); 
    22562256  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    22582258  GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); 
    22592259  gtk_widget_show(button); 
    2260    
     2260 
    22612261  button = gtk_button_new_with_label (_("Cancel")); 
    22622262  gtk_signal_connect_object (GTK_OBJECT (button), "clicked", 
    2263                              (GtkSignalFunc) gtk_widget_destroy,  
     2263                             (GtkSignalFunc) gtk_widget_destroy, 
    22642264                             (gpointer) dialog); 
    22652265  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), 
     
    23462346  if (fs->fileop_dialog) 
    23472347          return; 
    2348    
     2348 
    23492349  /* main dialog */ 
    23502350  fs->fileop_dialog = dialog = gtk_dialog_new (); 
    23512351  gtk_signal_connect (GTK_OBJECT (dialog), "destroy", 
    2352                       (GtkSignalFunc) gtk_file_selection_fileop_destroy,  
     2352                      (GtkSignalFunc) gtk_file_selection_fileop_destroy, 
    23532353                      (gpointer) fs); 
    23542354  priv = fs->fileop_data = g_malloc (sizeof (PropertiesPrivate)); 
     
    23612361  if (GTK_WINDOW(fs)->modal) 
    23622362    gtk_window_set_modal (GTK_WINDOW(dialog), TRUE); 
    2363    
     2363 
    23642364  /* Dialog guts go here */ 
    23652365  notebook = gtk_notebook_new (); 
     
    23712371  fs->fileop_file = gtk_entry_get_text (GTK_ENTRY (fs->selection_entry)); 
    23722372  filename = g_strconcat(path, "/", fs->fileop_file, NULL); 
    2373   if (strlen(fs->fileop_file) > 0 && !(stat(filename, &statbuf)))  
     2373  if (strlen(fs->fileop_file) > 0 && !(stat(filename, &statbuf))) 
    23742374  { 
    23752375    /* stats page */ 
     
    23802380    gtk_table_set_row_spacings (GTK_TABLE (table), 4); 
    23812381    gtk_table_set_col_spacings (GTK_TABLE (table), 6); 
    2382      
     2382 
    23832383    label = gtk_label_new (_("Statistics")); 
    23842384    gtk_widget_show (label); 
     
    23922392                      (GtkAttachOptions) (0), 0, 0); 
    23932393    gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); 
    2394      
     2394 
    23952395    label = gtk_label_new (_(path)); 
    23962396    gtk_widget_show (label); 
     
    24002400    gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); 
    24012401    gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); 
    2402      
     2402 
    24032403    label = gtk_label_new (_("File Name:")); 
    24042404    gtk_widget_show (label); 
     
    24072407                      (GtkAttachOptions) (0), 0, 0); 
    24082408    gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); 
    2409      
     2409 
    24102410    fs->fileop_entry = entry = gtk_entry_new (); 
    24112411    gtk_widget_show (entry); 
     
    24162416    if (access (filename, W_OK)) 
    24172417      gtk_widget_set_sensitive( GTK_WIDGET (entry), FALSE); 
    2418      
     2418 
    24192419    hseparator = gtk_hseparator_new (); 
    24202420    gtk_widget_show (hseparator); 
     
    24222422                      (GtkAttachOptions) (GTK_FILL), 
    24232423                      (GtkAttachOptions) (GTK_FILL), 0, 0); 
    2424      
     2424 
    24252425    /* file type and size */ 
    24262426    label = gtk_label_new (_("Type:")); 
     
    24652465                      (GtkAttachOptions) (0), 0, 0); 
    24662466    gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); 
    2467      
     2467 
    24682468    label = gtk_label_new (_("Size:")); 
    24692469    gtk_widget_show (label); 
     
    24722472                      (GtkAttachOptions) (0), 0, 0); 
    24732473    gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); 
    2474      
     2474 
    24752475    label = gtk_label_new (_(g_strdup_printf ("%ld bytes", statbuf.st_size))); 
    24762476    gtk_widget_show (label); 
     
    24792479                      (GtkAttachOptions) (0), 0, 0); 
    24802480    gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); 
    2481      
     2481 
    24822482    hseparator = gtk_hseparator_new (); 
    24832483    gtk_widget_show (hseparator); 
     
    24852485                      (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 
    24862486                      (GtkAttachOptions) (GTK_FILL), 0, 0); 
    2487      
     2487 
    24882488    /* file dates */ 
    24892489    label = gtk_label_new (_("Created:")); 
     
    24932493