Glade 2 Tutorial 147
Renartthefox writes "Rikke D. Giles has written a new tutorial for Glade II. Glade is a program designed to enable the quick building of graphical user interfaces for GTK+ and GNOME applications. However, it can be used with any desktop environment in linux, as long as the GTK+ and/or GNOME libraries are installed."
I liked the first one better (Score:1, Funny)
Re:Something stinks (Score:3, Funny)
also.. (Score:5, Interesting)
Re:also.. (Score:3, Interesting)
Does that mean that you could write an app that parses the glade xml and generate not only the gtk widgets on the fly (already possible) but also qt, with the user deciding which one they want?
Now that would be cool
Re:also.. (Score:3, Interesting)
Or rather, you could, but it'd be almost just as easy to do as writing for both toolkits without it - ie. not at all. You still need to work with the widgets in your code (at least defining callbacks), and thus you'll need separate codepaths. Also, you'd need to include stuff for both toolkits, which means that the user will need to have both installed even if they use only one of them.
What you could do is have that choice at compile-time. Write the backend completely toolkit-independent, then ha
Re:also.. (Score:2)
Put all the ui-independant stuff in libraries, then get the build process to build both frontends. Then you can package it up as "program-backend" "program-kde" "program-gtk", for those who use packages.
The only trouble I can see is that it would mean that your "backend" wouldn't be able to use qt/gtk libraries, which would be a major blow. I don't really know what the solution is to that problem, and I don't know how
I found it back.. (Score:2)
Importing Glade Files
Glade is a free GUI builder for GTK+ and GNOME written by Damon Chaplin. The
Qt Designer has been tested with Glade files up to version 0.6.0 and might work with later versions as well.
Although Glade does not target Qt, the layout system and the widget set of GTK+ are similar to those of Qt, so the filter will retain most of the information in the
This is not an automag
Re:also.. (Score:2)
Mozilla and Phoenix need this (Score:3, Interesting)
Re:Mozilla and Phoenix need this (Score:4, Informative)
Yes I know there is a GTK+ port for Windows but neither it is fast itself or just having Windows support in addition to X11 support is enough.
Re:Mozilla and Phoenix need this (Score:1)
Re:Mozilla and Phoenix need this (Score:1)
Re:Mozilla and Phoenix need this (Score:3, Insightful)
Thank you (Score:4, Insightful)
Should be MANDATORY! Quit the tech-acronyms! (Score:1)
not an IDE (Score:2)
Re:not an IDE (Score:2, Informative)
from the faq:
"...you can import the glade toolkit bindings into Eclipse [eclipse.org] running on Mono [go-mono.com] using the open source IKVM [ikvm.net] Java virtual machine for
love, peace, hope, dock
miguel
Re:not an IDE (Score:5, Interesting)
Glade was only a stepping stone for me to using the raw GTK api. I find GTK in C to be quite elegant. The only real wart I found is that Popped-up menus are reparented in a fake GtkWindow, where as top levels aren't. Baring that, raw GTK in C is good enough for me.
"The world is fundamentally functional and relational." -- Quote from a grayheaded Silicon Valley dude, there's wisdom.
Re:not an IDE (Score:1)
"I learned about glade by trying DIASCE2, a Visual IDE for Glade. "
By the way, the url for DiaSCE2 is http://diasce.es.gnome.org [gnome.org].
SilaxAnjuta (Score:4, Interesting)
It's a very good thing they didn't try to make an IDE, because one already exists: Anjuta [sourceforge.net]. And best of all, Anjuta not only offers all the usual editor/compiler mumbo-jumbo, but it also calls Glade for GUI creation.
If you're trying to start out GNOME/GTK development, Anjuta's the IDE of choice (as far as I can see). Of course, all I did in it was make a little "Hello, world!" app that would hide the message when you click a button. But it was very simple to make and had full i18n support -- for 5 minutes from start to finish, that's not half-bad :).
Re:Anjuta (Score:2)
It's a very good thing they didn't try to make an IDE, because one already exists: Anjuta. And best of all, Anjuta not only offers all the usual editor/compiler mumbo-jumbo, but it also calls Glade for GUI creation.
I've been enjoying Anjuta as well, with one minor bitch, for which I haven't solved the problem. It saves C++ files with a .cc extension. Since I use wxWindows, and I want my stuff to compile in MSVC++, I need to have a .cpp extension instead, but there appears to be no way to change the defa
Re:Anjuta (Score:1)
I'm not entirely sure what you mean by that as you can save a file with any extension including .cpp. If you mean the class creator plug-in then once you've e
Re:Anjuta (Score:2)
Re:Anjuta (Score:2)
Here's a recipe for frustration:
1. Install Mandrake Linux
2. Install Anjuta
3. Try and create a project with Anjuta, and build it
4. Write to developers, ask why a simple project with nothing added to it doesn't goddamn work
5. Get lame ass "I dunno" from development team
Dear God, if the simplest "build default project" screws the pooch, how do they expect anything else to work? I wonder if the Anjuta that this project is named after is like that - pretty but
Where's the pdf? (Score:3, Interesting)
Re:Where's the pdf? (Score:1)
Then you can easily convert that PS file using ps2pdf.
SERIOUSLY OT:Where's the pdf? (Score:1)
Re:SERIOUSLY OT:Where's the pdf? (Score:2, Informative)
Re:SERIOUSLY OT:Where's the pdf? (Score:3, Informative)
[PS2PDF]
comment = PS to PDF
printable = yes
public = yes
guest ok =yes
read only = yes
create mode = 0700
directory =
printer name = PS2P
Re:Where's the pdf? (Score:3, Informative)
Re:Where's the pdf? (Score:2)
That said, I'm not familiar with html2pdf. But I'd rather export them (pdfs) from an OpenOffice document than depend on the html to get a connected document right.
Re:Where's the pdf? (Score:3, Informative)
why not? adobe have released the PS and PDF formats very openly and as a direct result GNU programs (such as ghostscript) are ready to read them with no patent issues or reverse engineering required.
Re:Where's the pdf? (Score:1)
Re:Where's the pdf? (Score:3, Interesting)
In what way is PDF a windows thing? I write documents in LaTeX (using vim as the editor), compile them to pdf under FreeBSD and people can look at them on *nix, Windows and Mac. And they contain things like tables of contents that make sense when printed (which will in theory be possible with CSS3 but, let's face it, that's not going to be ready for a long time). Oh, and the character spacing etc makes them a lot easier to read than the same content in html render
Re:Where's the pdf? (Score:1, Interesting)
Re:Well, OK, (Score:3, Interesting)
Re:Well, OK, (Score:2, Insightful)
Not trying to flamebait but it'll be a cold day in hell when Microsoft uses openGL over it's own DirectX technology.
Re:Well, OK, (Score:2)
I hate to break this to you (Score:3, Interesting)
Windows isn't intuitive, but because it's so popular, people have had to learn how to get work done and consistent interfaces across Microsoft applications helps this.
But if Linux hackers want a new crowd of free software users, they need to attract them not only with the low price of open source software, but a high intuitivity index of the software itself.
Someone please make L
Re:I hate to break this to you (Score:2, Informative)
Re:I hate to break this to you (Score:2)
Self preservation, feelings, sex, these things are intuitive to us as humans after millions of years of evolution. A GUI is a man made construct, its not natural and unlikely to invoke emotional reponses within us .
A GUI is a paradigm represented to the user. The quality of the paradigm varies between implementations but they all will have a few key elements which tune the user to expect a certain response to a certain action, ie its not intuit
Re:I hate to break this to you-GUI Stress. (Score:1, Funny)
Obviously someone who's never seen a: KDE-GNOME, Windows-Macintosh, OS/2-Windows, Amiga-everyone else, battle.
Re:I hate to break this to you (Score:3, Insightful)
That's debatable. Microsoft provided a visual metaphor that people could associate with. From there, it was easy for people to grasp on to. For example, 'folder' makes more sense than 'directory'.
Though I agree with you that Linux is too hard and it needs a 'truely intuitive' desktop, I don't think you give enough credit to MS for the
Re:I hate to break this to you (Score:1)
As for why Windows is on top, it has almost nothing to do with their UI. Millions of people flocked to it because they thought they needed a computer, and the only ones they could get were Dells, Microns, Compaqs, etc and those ONLY came with Windows. Working in tech support, you quickly learn that Windows is nothing like "intuitive". Microsoft is in the position it's
Re:I hate to break this to you (Score:2)
No argument there.
"As for why Windows is on top, it has almost nothing to do with their UI. Millions of people flocked to it because they thought they needed a computer, and the only ones they could get were Dells, Microns, Compaqs, etc and those ONLY came with Windows."
Heh. And what exactly caused them to flock? Seriously, computers were around long before Wind
Windows95's popularity (Score:1)
Second, Win95 appeared in 1995, just as the web became the killer app for the general populace. It wasn't Win95 that made people buy computers; it was Netscape and Amazon. Netscape had matured the year before, and Amazon opened in July 1995. Win95 is what they got stuck with because the only other OS for the general public was Apple, and a computer with the Apple OS was much more expensive. Someone wa
Re:I hate to break this to you (Score:1)
A few things: The Internet, e-mail, web-browsning, pr0n, their kids, computer games, BBSes, and the old-guard geeks who already had computers. Honestly, most people (read: non-geeks) don't like computers. Their "Computer" constantly frustrates them, crashes, does unexpected things, and refuses to boot up after they've installed some new
Re:I hate to break this to you (Score:1)
You think people flocked to Windows because they could figure how to make it work ? You are beyond me.
I have still to see a newcomer grasp anything about Windows. Most people are forced to use it and go to forma
Re:I hate to break this to you (Score:2)
So... tell us why Mac didn't rise to power during the 95 net boom?
Re:I hate to break this to you (Score:1)
Have you ever tried Workbench of OS/2? It was so perfectly intuitive that nobody wanted to use it - you could forget all your prior experiences. E.g.: Drop a color on the desktop -> desktop gets this color. Double click on development object -> object kicks the other dependent objects to make themselves.
What is people really want is a Windows that behaves exactly lik
Re:Well, OK, (Score:1)
After Longhorn's released and there's something to copy off of.
Re:Well, OK, (Score:1)
Re:Well, OK, (Score:2)
I don't understand what that has to do with what I said. Clarfify?
Re:Well, OK, (Score:2)
Um, no, that's not what I was saying. Notice I used the word 'copy' in my original post.
Shhhhh! (Score:5, Funny)
Re:Shhhhh! (Score:5, Funny)
Or at least just the plug-ins.
Re:Shhhhh! (Score:2)
Great, but..... (Score:5, Interesting)
If I happen to be wanting to learn Glade 2 now, this article will be really useful. Otherwise, I could bookmark it for future reference (assuming it'll still be there in a few months time) - or download it, and save it on a directory somewhere.
What about having somewhere such as the Linux Documentation Project [tldp.org] keep a collection of articles like this (or keep a list of dated bookmarks to useful external articles) - simultaneously making both the Linux Documentation Project, and the articles in links to, more useful resources to more people.
Re:Great, but..... (Score:3, Insightful)
It's a valid question... and, Google sucks for finding things like this. Sorry. Trust me.. Google is going to miss a lot of things, or perhaps you would filter them out by your keywords.
"Subject" matter like this can be grouped under a directory, like Open Directori, Yahoo (if they maintained theirs anymore which they don't), LDP, etc.
Anyways, the best place to "find these things" is the FootNotes (GNOME) website.
I think it's funny how people keep associating GTK a
Re:Great, but..... (Score:1)
If enough people do that, then google will naturally work better.
Re:Great, but..... (Score:2)
Get a web page, and keep a list of links you find useful or interesting.
If enough people do that, then google will naturally work better.
So you're saying that someone who likes Glade 2 should create a FFA page, link to Glade 2, and get Glade banned from Google? That's a good idea.
I'd also point out that the #1 reason Google wouldn't display this page at the top of an otherwise relevant set of keywords is because the page is new. Google and PageRank favors older, more established pages. So no matte
Re:Great, but..... (Score:1)
Re:Great, but..... (Score:2)
Perhaps one of the reasons why google ignores new pages and pages designed to screw their rankings is that people like me, who are google's customers, don't want brand new pages in the rankings, and don't want control over the ranking passed to anybody who can spew out hundreds of pages linking to the same thing. Why should the Glade2 tutorial be in google now ? It is on slashdot. The question is, 18 months from now, will I be able to find the Glade2 tutorial ? Only if you bookmark it, and much more easily
Re:Great, but..... (Score:2)
The question is, 18 months from now, will I be able to find the Glade2 tutorial ? Only if you bookmark it, and much more easily if you publish your bookmarks.
I forgot to mention a couple of things.
First: Free-for-all link farms and crap have brought Google and the other engines to a point where they have to consider them spam and ban sites listed in them. They have had problems with these link farms polluting the results. One of the ways they identify a link farm is by seeing a lot of links on a page t
You've got it lucky these days (Score:5, Insightful)
When will it end ?? (Score:5, Funny)
Next thing you know linux apps will be come fully documented, with samples and context sensitive help. Anyone will be able to use them !!
Re:When will it end ?? (Score:2)
GNOME needs more user friendly documentation. (Score:5, Insightful)
Re:GNOME needs more user friendly documentation. (Score:3, Interesting)
Unfortunately, it's still put to shame by MSDN. The docs are sometimes missing, sometimes wrong..... when I encounter these things I write a patch and submit it, it only takes a few minutes,
Not Invented Here? (Score:1)
> Really, at some point Linux needs to leave its fascination with SGML/DocBook behind. I hate it for so many reasons. It really sucks. A custom solution I think could do what DocBook does better, faster and with less hassle.
No, DocBook/SGML is entirely appropriate because it is a standard. As a documentation volunteer, I find no joy in having to relearn a DTD because the project maintainer wants to roll his own. I appreciate that once I learn the DocBook DTD, I can help other projects without re-learni
Re:Not Invented Here? (Score:2)
Additional Glade info (Score:5, Interesting)
Nonetheless, I work with Glade on weekends for fun. Here are some other interesting links that you'll undoubtedly enjoy:
http://developer.gnome.org/ [gnome.org]
http://www.daa.com.au/~james/pygtk/ [daa.com.au]
http://www.student.oulu.fi/~jlof/gtkglarea/ [student.oulu.fi]
You Killed Our Server! You Bastards! NOT! (Score:5, Interesting)
Hmm, must be some kind of multi GHz Quad Processor heavy iron type of box, right?
Nope.
P75, 48megs of ram. No kidding.
cat
model : Pentium 75+
vendor_id : GenuineIntel
bogomips : 40.04
Granted, I'm only seeing 109 current connections to the web server right now. But its running just fine. This is probably mostly due to our colocation hosts at VDomainHosting [vdomainhosting.com] having enough available bandwidth to serve things up in a timely manner. Thanks guys!
And thanks to Rikke for such a great tutorial. She presented it a few weeks ago at the Linux Fest NW event, to a packed room.
Brian
KPLUG Webmaster
Re:You Killed Our Server! You Bastards! NOT! (Score:1)
Re:You Killed Our Server! You Bastards! NOT! (Score:1)
Re:You Killed Our Server! You Bastards! NOT! (Score:1, Informative)
a) have shit bandwidth
and/or
b) have dynamic content.
The page you are serving is just text. There's nothing that that's going to want to make users click around (unless they're a huge glade fan) and you don't have anything dynamic.
And you obviously have enough bandwidth.
So it's never going to get "slashdotted"
It's very easy to survive a slashdotting, as long as you have bandwidth. Stop the page being dynamically generated (if it is) and you're fine.
Sata
Re:The authorities have been contacted (Score:1)
Re:The authorities have been contacted (Score:1)
Re: (Score:1)
Many options (Score:2, Funny)
Licensing thoughts (Score:2)
For the sake of clarity, I suggest that if someone decides to G
from the article (Score:2)
* Glade doesn't develop the 'backend' of your application
I'm interested in the toolkit that set that expectation. I'm pretty sure it's not Emacs.
sweet replacement for MS VB! (Score:2)
I ran accross PHP-GTK which is really, really cool! It lets you write VB-style apps as PHP scripts. What I haven't been able to find are any good tutorials that relate more directly to VB users. I've been playing with Dev-PHP editor, and it's almost a drop-in replacement [not code-wise silly, but exactly matches features for the task!] It runs with wi
misunderstood title (Score:1)
libglade (Score:2)
This is not a new approach (Motif had it with UML, for instance) but lately has been neglegted in favor of code generators. I think it is time to reconsider this choice (althoug
UIL, not UML (Score:2)
Do *not* press Build (Score:2, Informative)
Save the
Don't press Build!
Why C/C++? Check out Kiwi, PyGTK and libglade. (Score:1)
I've done some work on a framework for PyGTK (0.6 only for the moment, but GTK+2 support is coming) that makes writing an app like this one trivial. In fact, the examples include a temperature converter app (`just like ye ole Mr. Raskin said'). The code is so tiny it can fit in a
Re:Is it portable to FreeBSD? (Score:2)
Re:I Like Glade (Score:2)