Would you like the db logo on the left or the right? You can move it now

This commit is contained in:
Timothy Warren 2012-02-22 21:32:06 -05:00
parent 07359fb7b8
commit a4f8dbfd2d

View File

@ -249,6 +249,7 @@ class Main extends GtkWindow {
*/ */
public function set_icon($col, $cell, $model, $iter) public function set_icon($col, $cell, $model, $iter)
{ {
$col->set_reorderable(TRUE);
$info = $model->get_value($iter, 0); $info = $model->get_value($iter, 0);
$db_type = strtolower($info->type); $db_type = strtolower($info->type);
$img_file = BASE_DIR."/images/{$db_type}-logo-32.png"; $img_file = BASE_DIR."/images/{$db_type}-logo-32.png";
@ -274,6 +275,7 @@ class Main extends GtkWindow {
*/ */
public function set_label($col, $cell, $model, $iter) public function set_label($col, $cell, $model, $iter)
{ {
$col->set_reorderable(TRUE);
$info = $model->get_value($iter, 0); $info = $model->get_value($iter, 0);
$cell->set_property('text', $info->name); $cell->set_property('text', $info->name);
} }