Glade 2 Tutorial
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."
The original Blade was much better than Blade II, IMHO. The second one's plot was barely there, and what was there wasn't very good. However, Wesley Snipes is excellent in the role regardless, and is still worth catching on TV or video.
If I'm not wrong, glade files can also be importd in qt designer (qt's gui builder). Nice work.
"It's too bad that stupidity isn't painful." - Anton LaVey
...GTK's packing method is a pain in the ass :)
Getting rid of xul(xml user interface language) would be good for responsive gui.
Finally, an article that defines what the thing is instead of assuming that we've all heard of 'Zxzzy Underlayer II.3M'.
good thing they didnt try to make it an IDE. it is better if you keep the design modular. otherwise things get messy. Specially in GUI building tool., messy architecture can lead to memory leaks and other issues.
Consensus is good, but informed dictatorship is better
Where's the pdf/ps/etc? Ok, I know, pdfs are not GNU, but still. I like reading tutorials in paper form rather than html. I'm sure there is a way for "rapid" translation.
But when are they going to write an OpenGL-accelerated desktop? I'm still waiting for a Quartz Extreme for Linux. That's what's holding me back from adopting it right now. Is it really that hard to do? Sheesh.
--sdem
Why am i not surprised that Slashdot readers haven't heard of air freshener....
Don't make too big of a deal about Glade. With all the recent frivolous lawsuits, SC Johnson Wax will be all over 'em.
Karma: The shiznight, mostly because I am the Drizzle.
Can we have articles like this listed and catalogued in a single place somewhere ?
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 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.
/. Article reviewers take heed or i will out you.
Pah, Glade, when I was at school all we had was Visual Basic....oh...hold on...
is there a non Adobe PDF plugin available? I have a browser on my phone that can view PDF (all smaller than 30kb) So why do I have to load 15-16 meg monster of a plugin to view them on my computer?
There is no god
What is the linux community coming to when people actually write tutorials on how to use applications. Man pages with so many options they resemble a form of Hieroglyph were just about acceptable. Worse was to follow a lot half heart how-to's which fortunately seldom explained what you actually wanted.
Next thing you know linux apps will be come fully documented, with samples and context sensitive help. Anyone will be able to use them !!
Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
What truth?
There is no dupe
Plus, if you use new and improved Glade II, your UIs won't smell like shit.
Chr0m0Dr0m!C
GNOME has some wonderful technologies at it's disposal, but the documentation is crap. Reading someone else's code is not the best way to learn imho, and some decent documentation covering bonobo etc is just what the doctor ordered.
The problem with slashdot is that most of its users were bullied and stuffed into lockers as kids!
Nonetheless, I work with Glade on weekends for fun. Here are some other interesting links that you'll undoubtedly enjoy:
http://developer.gnome.org/
http://www.daa.com.au/~james/pygtk/
http://www.student.oulu.fi/~jlof/gtkglarea/
Family my ass
But what Linux needs is a fresh look and a fresh batch of research into creating a truly intuitive desktop computing experience.
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 Linux more easy to use. It's too hard.
So are you trying to say it is completely useless then ?
Something strange is happening here. I am not seeing any kind of adverse effect to the machine from being slashdotted. Its chugging along fine, happily serving up pages.
/proc/cpuinfo
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 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
Remember Lexington Green!
Howabout you make a gui of the nigger i killed thats lying in the river.
Slashdot has been asked for your IP, there will soon be a warennt out for your arrest
it's a round fucking world last time i checked. i hate stupid dicks like you who are like "America! YEAH!" and "Proud to be an American". Jack asses like you are the reason there is no fucking peace in the world.. .. you believe american should be able to do whatever the hell it wants just because, well, because. we can bomb this guy or bomb that... we (and/or our corporations) can fuck over the rest of the world and then we whine like pussies when someone fights back. swine like you are dipshits... maybe someday we'll all JOIN the world rather than try to be alienated from it
oh wait, that says glAde... damn, a man can dream though.
Comment removed based on user account deletion
One of the best features is the plethora of plug ins available here
IANAL, but it seems fortunate to me that the Glade developers inserted into the FAQ included with the source distribution an explicit waiver of rights over generated C code. Glade, which is GPLed, appears to insert into generated projects at least one file support.c which is not meant to be edited and which may be required for the project to function. Without the waiver, I wonder if a Glade produced project could be considered a derived work.
For the sake of clarity, I suggest that if someone decides to GPL a tool which which inserts an equivalent of a template into the output, he or she needs to explicitly state in the license file whether generated output is considered a derived work and therefore subject to the GPL. Years ago the FSF was forced to explicitly state that output from GNU Bison was not bound by the GPL. In the case of Bison, a large portion of Bison's yyparse function was being inserted into the output. Whether or not output the size of support.c or other code inserted from Glade would meet a similar standard is I suspect unknown.
Can you make Glade Plugins with it? That would be awesome, my apartment smells like burnt marijuana buds and i think the neighbors are getting suspicous.
What Glade cannot do:
* 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.
Keep your packets off my GNU/Girlfriend!
Or is it tied down to linux? That would b a major disadvantage with the SCO lawsuit against linux. I'm moving all my applications over to FreeBSD.
I use glade all the time. It beats the heck out
of figuring out how to write the interfaces myself.
Biggest problem I've found is the glade-- module
created C++ source files that require a lot of work
to compile though. Nevertheless, its saved me lots
of time by cutting down on classwork time.
nipplehead
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.
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 :).
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 windows and linux, too!
Lack of any point of reference is really making things difficult. As I'm finding typical with Linux apps, a good tutorial on the basics of any given app are really hard to find! For the "bigger" stuff, I've given up online and surf the asiles of my local book shop for O'reilly books, but the coolest stuff out there suffers from a serious lack of understanding by anyone who didn't write it! Heck, I may even have to get off by but and write some docs myself, but I wouldn't have a clue where to start learning enough not to look stupid.
First, Windows 95 was so much better than Windows 3.1 that anybody who had Win3.1 immediately upgraded.
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 walking into an electronics store wanting "that internet thing" would go home with a pre-built system running Win95. Then they would call support to ask how to plug it in.
Without checking any facts, I believe most systems sold then were Compaq or Gateway. IBM and HP were expensive. Dell was for direct sales.
Now there is much inertia to switching people from Windows. Wait until most companies have banned Windows. Then corporate workers will be comfortable with the new interface and insist on it for home.
I spend my life entertaining my brain.
"A GUI is a man made construct, its not natural and unlikely to invoke emotional reponses within us . "
Obviously someone who's never seen a: KDE-GNOME, Windows-Macintosh, OS/2-Windows, Amiga-everyone else, battle.
when i read the title i thought it had something to do with new air fresheners. (Glade)
Now I've got to google to find out what "Zxzzy Underlayer II.3M" is. Why didn't you provide links or an explanation in you message?
Sorry, but all the best apps are on KDE, hands down.
This is a small portion of the qt designer manual..
.glade extension is associated with Glade files.
.glade file.
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 automagic process, you have to check if the conversion went well (e.g., there are some widgets - it mentions GnomePapreSelector - that have no Qt equivalent).
"It's too bad that stupidity isn't painful." - Anton LaVey
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 (although with OOP you have other ways to obtain the same separation).
Ciao
----
FB
Pressing the Build button is about the worst thing you could ever do in Glade.
.glade file, and then use libglade to load and build the interface at runtime. .glade files are very simple to parse so building the interface at runtime is very fast, and you have far more freedom to alter the interface at any point in the future.
Save the
Don't press Build!
Tii many acronyms in the world...
Ciao
----
FB
No. The power of glade2 drove out the American infidel swine from Iraq.
I was a bit surprised to see the example application was written (of all things) in C. Besides being harder and taking longer to write, it's too hard to change (and going to be flaky since a SEGV is so much easier to hit.)
/. comment:
:-) Docs and code available under the LGPL: http://www.async.com.br/projects/kiwi/
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
from Kiwi import Delegates, FrameWork, mainquit
class Farenheit(Delegates.GladeDelegate):
widgets = ["quitbutton", "temperature",
"celsius", "farenheit" ]
def __init__(self):
Delegates.GladeDelegate.__init__(self,
"faren", delete_handler=mainquit)
def convert_temperature(self, temp):
farenheit = (temp * 9/5.0) + 32
celsius = (temp - 32) * 5/9.0
return farenheit, celsius
def clear_temperature(self):
self.farenheit.set_text("")
self.celsius.set_text("")
def on_quitbutton__clicked(self, *args):
self.view.hide_and_quit()
def after_temperature__changed(self, entry, *args):
temp = entry.get_text().strip() or None
if temp is None:
self.clear_temperature()
else:
farenheit, celsius = self.convert_temperature(float(temp))
self.farenheit.set_text("%.2f" % farenheit)
self.celsius.set_text("%.2f" % celsius)
delegate = Farenheit()
delegate.show_and_loop()
It's Python, of course
Read this support page at microsoft:
HOWTO: Make VC++ Recognize File Extensions as C/C++ Files
Blade is based on a comic book and well pre-dates buffy.
god. geeks are so pathetic. i bet you expect buffy to jump out of the tv and on to your 300lb gut and ride you like a drunk coyote. dumbass
> 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-learning anything.
Where Docbook needs improvement is better tools. So programmers like yourself should be helping documentation volunteers build these tools instead of re-inventing the (documentation standards) wheel!