PHP-GTK
Sunday, April 20, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkListStore::move_after
GtkListStore::prependnext

Last updated: Sun, 12 May 2013
view this page in English

GtkListStore::move_before

Moves the given iter just before position. If position is null, the row will be moved at the end of the list.

See also: move_after() , insert_before()

Example 97. Moving a row before another one

<?php
$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
 
$tokio  = $store->insert(0, array('Tokio', 34100000));
$mexico = $store->insert(1, array('Mexico city', 22650000));
$seoul  = $store->insert(2, array('Seoul', 22250000));
 
//move Seoul before Mexico
$store->move_before($seoul, $mexico);
 
//show the list
function echoRow($store, $path, $iter) {
    echo $store->get_value($iter, 0) . "\r\n";
}
$store->foreach('echoRow');
?>

User Contributed Notes
gtk.gtkliststore.method.move_before.php
add a note about notes
There are no user contributed notes for this page.


previousGtkListStore::move_after
GtkListStore::prependnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:59 2013 CEST