GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GTK/C Glade 2 questions

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Peter
Familiar Face


Joined: 10 May 2008
Posts: 12

PostPosted: Mon May 12, 2008 3:57 pm    Post subject: GTK/C Glade 2 questions Reply with quote

Glade 2 folks:

I have a strange problem. In my project setting option I can set the prorgam name
to ANYTHING, but after "make' the created executible always has a name 'codes' regardless what I set as program name .

What's going on?
Peter
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 426
Location: Portland, OR USA

PostPosted: Mon May 12, 2008 6:58 pm    Post subject: Reply with quote

It's been a while since I've used Glade 2... and even then I typically didn't use it's "Build" function, however, it sounds like you might want to try a 'make clean' and then re-run 'make'. Or maybe an 'autoreconf' before 'make'.

Sorry I can't be more helpful, that method of using Glade has been deprecated for some time.
Back to top
Peter
Familiar Face


Joined: 10 May 2008
Posts: 12

PostPosted: Mon May 12, 2008 8:28 pm    Post subject: Reply with quote

Micah Carrick wrote:
It's been a while since I've used Glade 2... and even then I typically didn't use it's "Build" function, however, it sounds like you might want to try a 'make clean' and then re-run 'make'. Or maybe an 'autoreconf' before 'make'.

Sorry I can't be more helpful, that method of using Glade has been deprecated for some time.


It did not help...
So how do you create your UI? Glade ?
Peter

PS: I would be using Glade 3, (although it might be a bit too fresh..)
but I have RHED 5 on my PC and it came with glade 2. The RH depository does not have Galde 3 on the install list and I am too inexperienced to rebuild. Maybe soon they will add Glade 3...
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 426
Location: Portland, OR USA

PostPosted: Mon May 12, 2008 9:10 pm    Post subject: Reply with quote

Yes, I'm using Glade 3 which is available under many distros as "glade-3" (as opposed to "glade" which is Glade 2).

But more importantly, most people switched to using Glade along with libglade even back in the Glade 2 days.

Rather than using the "Build" feature of glade to generate code to build your GUI, you simply use the project file (with the .glade extension) to dynamically generate the UI at runtime. The .glade file is actually an XML file which is why you see us posting XML in some of the examples around here.

Libglade is a library which loads the UI for you, and as of GTK+ 2.12, GtkBuilder is available which does the same thing in (almost) the same way.

Here is a very simple example: http://www.gtkforums.com/about187.html

Simply paste that XML stuff into a text document and save it as 'hello.glade' and then you can open it with Glade 2 to see what it looks like. The source to use that glade file is also included.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP