~onli/simdock/master

« back to all changes in this revision

Viewing changes to src/myFrame.cc

  • Committer: onli
  • Date: 2012-04-06 18:46:04 UTC
  • Revision ID: git-v1:c186d24a5ff5c490c9301a747e7089699bbe75c5
first step for interactive settings: interactive setting (without specific app-update)

Show diffs side-by-side

added added

removed removed

Lines of Context:
447
447
void
448
448
MyFrame::OnSettings (wxCommandEvent & WXUNUSED (event))
449
449
{
450
 
  simSettings initSettings = *settings;
451
 
  //initSettings = settings;
452
 
  /*
453
 
     { LEFT_BORDER, RIGHT_BORDER, BOTTOM_BORDER, ICONW, ICONH,
454
 
     PERCENT, RANGE,
455
 
     SPACER, BG_HEIGHT, bgPath, SHOW_REFLEXES,
456
 
     REFLEX_SCALING, REFLEX_ALPHA
457
 
     }; */
458
 
  settingsDialog = new SettingsDialog (this, &initSettings);
459
 
 
460
 
  if (settingsDialog->ShowModal () == wxID_OK)
461
 
    {
462
 
 
463
 
      simSettings *settings = settingsDialog->GetSettings ();
464
 
      if (settings)
465
 
        {
466
 
          simGconf_saveSettings (settings);
467
 
          wxMessageBox (_T
468
 
                        ("Changes will have effect\nthe next time you will start the application"),
469
 
                        _T ("SimDock"), wxOK | wxICON_INFORMATION, NULL);
470
 
        }
471
 
 
472
 
    }
473
 
  settingsDialog->Destroy ();
 
450
    simSettings initSettings = *settings;
 
451
 
 
452
    settingsDialog = new SettingsDialog (this, &initSettings);
 
453
    settingsDialog->Show();
 
454
 
 
455
    // the setting-window spawns wrongly only on the workspace simdock
 
456
    // was started on, so show it now on the current workspace
 
457
    GdkWindow * settingsWindow = gtk_widget_get_window(settingsDialog->GetHandle());
 
458
    gdk_x11_window_move_to_current_desktop(settingsWindow);
 
459
    settingsDialog->ShowModal();
474
460
}
475
461
 
476
462
void