GStrings and sorting GLists

2006-12-17 Thread Hadron Quark
Are there no comparison operations other than g_string_equal in order to facilitate the sorting of GList objects that contain GStrings? -- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GStrings and sorting GLists

2006-12-17 Thread Yeti
On Sun, Dec 17, 2006 at 04:00:42AM +0100, Hadron Quark wrote: Are there no comparison operations other than g_string_equal in order to facilitate the sorting of GList objects that contain GStrings? I'm not sure how g_string_equal() facilitates sorting when it returns only TRUE/FALSE for

RE: Problem with gtk

2006-12-17 Thread Tony Freeman
Hello, int main () { int i; while (i 25000) printf (%d\n, i); } Create a file called test.c and add these lines: #include stdio.h int main (int argc, char *argv[]) { int i = 0; while (i 25000) {

Proper way to show unique icon in treeview

2006-12-17 Thread Tony Freeman
Hello, I need help understanding how one would create a treeview so that the first column is an icon and the second column is text. The icon and text represent the type of machine the user can choose (linux workstation, linux server, hp). I want to have a different icon for each machine;

RE :Problem with gtk (done mistake)

2006-12-17 Thread Naveen Kumar
Hi all, Please excuse for my mistake... I am very sorry for sending a wrong part of the code it is actually.. #include stdio.h int main () { int i=0; while(i 264000) printf(%d\n,i++); } it works very fine in my machine without any problem. (it takes around 1.2 minutes) 2)If try to run the

Memory Issue

2006-12-17 Thread Preeti Joshi
Hi, I am attaching a small piece of sample code that explains my problem. int main (int argc, char *argv[]) { GtkWidget *window1; #ifdef ENABLE_NLS bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); textdomain (PACKAGE); #endif gnome_init (try, VERSION, argc, argv); window1 =

Re: GStrings and sorting GLists

2006-12-17 Thread Freddie Unpenstein
On Sun 12/17, David [EMAIL PROTECTED] wrote: Are there no comparison operations other than g_string_equal in order to facilitate the sorting of GList objects that contain GStrings? Any C stringcomparison function is usable on gstring-str. Yes, you have to write the one-line wrapper

Re: Proper way to show unique icon in treeview --with code

2006-12-17 Thread James Scott Jr
Tony, I don't claim to be an expert but I have used IconViews TreeViews. I have never seen it attempted the way you show. Using GDK_TYPE_PIXBUF as the column type is all I have every tried, based on code I've seen from others, and it has always worked. Here are a few observation of your code.