Changeset 90ee6b7c31468b9b240ffdce54f2f6e4345f1608

Show
Ignore:
Timestamp:
07/29/2008 06:01:49 AM (4 months ago)
Author:
Dave Foster <daf@minuslab.net>
git-committer:
Dave Foster <daf@minuslab.net> 1217336509 -0400
git-parent:

[db7338733205016856ef3f34ff3991c2dfd07aa8]

git-author:
Dave Foster <daf@minuslab.net> 1217336509 -0400
Message:

Modified the apply button logic to only close when not multiheaded, or the full xin mode is selected.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/NWindow.cc

    rf36e3b5 r90ee6b7  
    105105/** 
    106106 * Handles the user pressing the apply button.  Grabs the selected items and 
    107  * calls set_bg on it. It also saves the bg and closes the application. 
     107 * calls set_bg on it. It also saves the bg and closes the application if  
     108 * the app is not multiheaded, or the full xin desktop is selected. 
    108109 */ 
    109110void NWindow::sighandle_click_apply (void) { 
     
    122123    Config::get_instance()->set_bg(thedisp, file, mode, bgcolor); 
    123124 
    124                 hide(); 
    125  
    126     // quit 
    127     Gtk::Main::quit(); 
     125    if (!this->is_multihead || thedisp == "xin_-1") 
     126    { 
     127        hide(); 
     128        Gtk::Main::quit(); 
     129    } 
    128130} 
    129131