~ubuntu-branches/ubuntu/oneiric/irssi/oneiric

« back to all changes in this revision

Viewing changes to src/fe-common/core/windows-layout.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2007-11-02 18:13:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071102181328-vg4v2tuqeviu16g9
Tags: 0.8.12-2ubuntu1
* Merge with Debian, remaining Ubuntu changes:
  - Added debian/patches/90irc-ubuntu-com.dpatch (Launchpad #52690).
  - Modify Maintainer value to match the DebianMaintainerField spec.
  - debian/irssi.prerm: Do not alternative. LP: #67698.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
14
    GNU General Public License for more details.
15
15
 
16
 
    You should have received a copy of the GNU General Public License
17
 
    along with this program; if not, write to the Free Software
18
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
    You should have received a copy of the GNU General Public License along
 
17
    with this program; if not, write to the Free Software Foundation, Inc.,
 
18
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
*/
20
20
 
21
21
#include "module.h"
219
219
void windows_layout_save(void)
220
220
{
221
221
        CONFIG_NODE *node;
 
222
        GSList *sorted;
222
223
 
223
224
        iconfig_set_str(NULL, "windows", NULL);
224
225
        node = iconfig_node_traverse("windows", TRUE);
225
226
 
226
 
        g_slist_foreach(windows, (GFunc) window_save, node);
 
227
        sorted = windows_get_sorted();
 
228
        g_slist_foreach(sorted, (GFunc) window_save, node);
 
229
        g_slist_free(sorted);
227
230
        signal_emit("layout save", 0);
228
231
 
229
232
        printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,