Diff for /np2/x11/gtk2/gtk_menu.c between versions 1.19 and 1.21

version 1.19, 2011/12/17 14:09:31 version 1.21, 2011/12/17 14:37:09
Line 576  cb_bmpsave(GtkAction *action, gpointer u Line 576  cb_bmpsave(GtkAction *action, gpointer u
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),          gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),
             TRUE);              TRUE);
         if (strlen(bmpfilefolder) == 0) {          if (strlen(bmpfilefolder) == 0) {
Line 611  cb_bmpsave(GtkAction *action, gpointer u Line 610  cb_bmpsave(GtkAction *action, gpointer u
         if (utf8) {          if (utf8) {
                 path = g_filename_from_utf8(utf8, -1, NULL, NULL, NULL);                  path = g_filename_from_utf8(utf8, -1, NULL, NULL, NULL);
                 if (path) {                  if (path) {
                           gchar *ext = file_getext(path);
                           if (strlen(ext) != 3 || file_cmpname(ext, "bmp")) {
                                   gchar *tmp = g_strjoin(".", path, "bmp", NULL);
                                   g_free(path);
                                   path = tmp;
                           }
                         file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder));                          file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder));
                         sysmng_update(SYS_UPDATEOSCFG);                          sysmng_update(SYS_UPDATEOSCFG);
                         fh = file_create(path);                          fh = file_create(path);
Line 649  cb_change_font(GtkAction *action, gpoint Line 654  cb_change_font(GtkAction *action, gpoint
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         utf8 = g_filename_to_utf8(np2cfg.fontfile, -1, NULL, NULL, NULL);          utf8 = g_filename_to_utf8(np2cfg.fontfile, -1, NULL, NULL, NULL);
         if (utf8) {          if (utf8) {
                 gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);                  gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);
Line 736  cb_diskopen(GtkAction *action, gpointer  Line 740  cb_diskopen(GtkAction *action, gpointer 
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         utf8 = g_filename_to_utf8(fddfolder, -1, NULL, NULL, NULL);          utf8 = g_filename_to_utf8(fddfolder, -1, NULL, NULL, NULL);
         if (utf8) {          if (utf8) {
                 gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);                  gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);
Line 845  cb_ataopen(GtkAction *action, gpointer u Line 848  cb_ataopen(GtkAction *action, gpointer u
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         utf8 = g_filename_to_utf8(hddfolder, -1, NULL, NULL, NULL);          utf8 = g_filename_to_utf8(hddfolder, -1, NULL, NULL, NULL);
         if (utf8) {          if (utf8) {
                 gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);                  gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);
Line 932  cb_atapiopen(GtkAction *action, gpointer Line 934  cb_atapiopen(GtkAction *action, gpointer
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         utf8 = g_filename_to_utf8(hddfolder, -1, NULL, NULL, NULL);          utf8 = g_filename_to_utf8(hddfolder, -1, NULL, NULL, NULL);
         if (utf8) {          if (utf8) {
                 gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);                  gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);
Line 1033  cb_newdisk(GtkAction *action, gpointer u Line 1034  cb_newdisk(GtkAction *action, gpointer u
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),          gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),
             TRUE);              TRUE);
         if (strlen(fddfolder) == 0) {          if (strlen(fddfolder) == 0) {
Line 1177  cb_sasiopen(GtkAction *action, gpointer  Line 1177  cb_sasiopen(GtkAction *action, gpointer 
         if (dialog == NULL)          if (dialog == NULL)
                 goto end;                  goto end;
   
         g_object_set(G_OBJECT(dialog), "show-hidden", TRUE, NULL);          gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(dialog), TRUE);
         gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);  
         utf8 = g_filename_to_utf8(hddfolder, -1, NULL, NULL, NULL);          utf8 = g_filename_to_utf8(hddfolder, -1, NULL, NULL, NULL);
         if (utf8) {          if (utf8) {
                 gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);                  gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), utf8);

Removed from v.1.19  
changed lines
  Added in v.1.21


RetroPC.NET-CVS <cvs@retropc.net>