LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2005, 09:09 PM   #1
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
Some Gnome/GTK+/C Questions...


Phew... here it goes. You'll have to forgive me for being such a rookie. I've been keeping questions as I work and here are the one's I haven't been able to resolve...

1. Is there a function as part of one of the standard libraries to exract the filename from a given full path, or some common method of doing this?

2. I know Glib has g_sortarray, but requires the GArray data type. What if I just have a regular array I need to sort? (it's an array from a comma separated list of values pulled out of an INI file. I need to alphabetize the list)

3. If using libglade, how would I reference a GnomeAppBar? glade_xml_get_widget() needs GtkWidget data type but a gnome_appbar_push() needs GnomeAppBar type.

4. Another libglade question... if libglades creating the GUI, doesn't that mean there is interface objects in memory that may never be used? LIke an about dialog or file selector dialog? They may not be "visible", but do they still have memory allocated to them?

Thanks for taking the time to read this.

Micah
 
Old 05-03-2005, 04:11 AM   #2
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
1. g_path_get_basename() in glib. Also, writing your own using strrchr() and strcpy() shouldn't be hard.

2. The standard C library has qsort().
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk buffer questions infamous41md Programming 0 08-14-2004 12:36 AM
Some questions about GTK-GNUTELLA... Ausar Linux - Newbie 3 08-11-2004 05:31 PM
A couple of C/Gtk+ questions elluva Programming 2 05-24-2004 08:34 AM
General GTK questions Onemessedupjedi Programming 5 12-09-2003 06:22 AM
gtk questions jpc82 Programming 1 11-04-2003 01:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration