0

I have a Gtk TreeView named phoneBookTreeView

Gtk::TreeView * phoneBookTreeView;

can someone help me how to sort all the contacts inside the TreeView?

if I have a code like this for sorting the contacts byname:

void PhoneBookModel::sortByName( Glib::RefPtr<Gtk::TreeSelection> selection ){
/* Enter SortByName Function here */
}

what would be the function on it?? The PhoneBookModel is a Gtk::TreeStore.

help! help! help! thanks!

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by Nick Evan
0
void PhoneBookModel::sortByName( Glib::RefPtr<Gtk::TreeSelection> selection ){
/* Enter SortByName Function here */
}

>Enter SortByName Function here
I hope this wasn't a request to do your homework, you'll never get free code here, you've to get your grade by turning in your code, not by turning in the code we wrote for you :( ...

0

how about this error? please help me on this: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/list.tcc:287: error: conversion from ‘MRef<ContactEntry*>’ to non-scalar type ‘std::string’ requested
thanks!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.