Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: GObject


Related Topics
Gtk

In the News (Sat 19 Dec 09)

  
  GObject - Wikipedia, the free encyclopedia
The GLib Object System, or GObject, is a free software library (covered by the LGPL) that provides a portable object system designed for use both directly in C programs and through bindings to other languages.
Though GObject has its own separate set of documentation [1] and is usually compiled into its own shared library file, the source code for GObject resides in the GLib source tree and is distributed along with GLib.
GObject libraries do not sufer from this since GObject based library's, the exact exported names of the functions are defined in the code and never change, even when switching compilers.
en.wikipedia.org /wiki/GObject   (1833 words)

  
 GObject   (Site not responding. Last check: 2007-10-12)
GObjects are one example of instantiable types in the GType type system.
GObjects are reference counted, so your wrapper should hold a reference to the object, and release it when the wrapper is destroyed.
Unfortunately there doesn't seem to be a version of this function that doesn't use C varargs at the moment, which limits its usefulness to language bindings.
www.gnome.org /~jamesh/language-bindings/gobject.html   (547 words)

  
 new gtk2-perl
In general, this process will claim a reference on the GObject (with g_object_ref()), so that the C object stays alive so long as there is a perl wrapper for it.
A GObject is created with one reference which must be explicitly removed by its owner.
This map lists the TYPE macro for each of the GObject types in all of the gtk headers (including gdk, gdk-pixbuf, atk, and pango), along with the actual name of the class, name of the package into which it is to be blessed, and the base type (not exactly the fundamental type).
gtk2-perl.sourceforge.net /doc/new-gtk2-perl.html   (3951 words)

  
 GNOMEnclature: Getting ready for GNOME 2, Part 2
GObject does do a lot of stuff behind the scenes, allowing you to create subclasses of existing classes, interfaces to classes (which we will discuss later in this article) and more.
In addition to the many improvements to GObject, Glib 2 introduces an OOP concept called "interfaces." To understand what interfaces are, let's look at an example.
However, if you've created or are planning to create your own custom signals, you should read the GObject GSignal reference documentation (see Resources) to catch up on some of the changes that may apply to you.
www-128.ibm.com /developerworks/library/l-gnome2.html   (2011 words)

  
 GObject
GObject is the fundamental type providing the common attributes and methods for all object types in GTK+, Pango and other libraries based on GObject.
All the fields in the GObject structure are private to the GObject implementation and should never be accessed directly.
Multiple toggle references may be added to the same gobject, however if there are multiple toggle references to an object, none of them will ever be notified until all but one are removed.
developer.gnome.org /doc/API/2.0/gobject/gobject-The-Base-Object-Type.html   (2549 words)

  
 Anatomy of a Formatting Object C source code file
GObject convention is to maintain a pointer to the parent GObject class.
GObject conventions require a _get_type() function that registers the object type and returns its assigned GType value.
Registering a GObject type requires passing a filled-in GTypeInfo structure and the type of the parent class to a registration function.
xmlroff.sourceforge.net /release/latest/docs/fo-c-file.html   (1169 words)

  
 CORBA-Served PFC: GObject
The GObject foundation defines the GfcPArchive PObject serialization archive form to be an unbounded sequence of octets.
It is intended that this form contain the serialization stream of a PObject-based object (or objects) so that they may be transmitted as an argument to a method, or returned as the result of a method.
The GObject foundation defines the GfcXli extended-length integer type that corresponds to the content of the RsaXli extended-length integers of the Rivest, Shamir, and Adleman encryption support library.
www.grc.nasa.gov /WWW/price000/pfc/htc/gobject.html   (1969 words)

  
 GOB2 2.0.13 Manual page   (Site not responding. Last check: 2007-10-12)
GObject Builder is a simple preprocessor for easily creating GObject objects.
But it is really just a simple preprocessor for creating GObjects for use in C or C++ and it is not a programming language.
The semantics are otherwise the same as for the "destroywith" and "destroy" keywords, except that you use "unrefwith" and "unref".
www.5z.com /jirka/gob2.1.html   (7411 words)

  
 Sub-classing GObject in Python
GObject is commonly known as the part of GLib that provides the Object Oriented features that C lacks.
One of the nice things that GObject provides is a class mechanism with the kind of things you are used to work within an Object Oriented language like inheritance, polymorph-ism, interfaces and virtual methods.
GObject will make sure that the type of the new value matches the type of your property and that the value is in the appropriate range if this is needed (for char, int, long, float and double types) before calling this method.
www.sicem.biz /personal/lgs/docs/gobject-python/gobject-tutorial.html   (3335 words)

  
 Re: Generic Library for C.
I came back to C from C++, primarily because of GObject.
In gobject, things that are common to all instantiations of an object, are
gobject has a large overhead for binding gobjects to other languages.
www.usenetlinux.com /t-383286.html   (2214 words)

  
 Writing Language Bindings for GTK+ 2.0
It's object model is based on top of the GObject library, which is part of glib.
One of the aims of the GObject system was to make it easy to use from a language binding.
A GObject class can be subclassed, can have a number of signals and may implement a number of interfaces.
www.gnome.org /~jamesh/language-bindings   (482 words)

  
 Glib::xsapi
The GObject user data mechanism is not typesafe, and thus is used only for unsigned integer values; the Perl-level hash is available for any type of user data.
To have the Perl wrapper claim ownership of a GObject as part of gperl_new_object(), you unref the object after ref'ing it.
The gobject + perl object together form a combined object that is properly refcounted, i.e.
gtk2-perl.sourceforge.net /doc/pod/Glib/xsapi.html   (4342 words)

  
 OSNews.com
I took a look at GObject documentation, and as far as I could see, GObject are not classes, but pseudo-classes based on structures, as Jay Developer said.
Gobject is an object system with classes, instances, properties, methods, inheritance, signals and slots.
Gobject is very much a existing useful system and thats the only way c could have object oriented mechanisms for gtk+
www.osnews.com /comment.php?news_id=6795&limit=no   (10013 words)

  
 Duvall does XOOGA: Gobject Class Reference
A Gobject, or Game Object, is instantiated to represent every object (for example, paddle or spaceship) that exists in the game.
This function takes the Gobject's image and location information and uses it to draw the Gobject to the screen.
Gobject is not subclassed, and Gobjects differ only by their data and behaviors.
www.duke.edu /~swp3/cps108/xooga/xoogadoc/html/class_gobject.html   (151 words)

  
 gobject Constants   (Site not responding. Last check: 2007-10-12)
GObject IO Condition Constants GObject Param Flag Constants GObject Priority Constants GObject Signal Flag Constants GObject Spawn Flag Constants GObject Built-in Type Constants GObject Version Constants
The IO Condition constants are a set of bit-flags that specify a condition to watch for on an event source.
The Built-in Type constants specify the pre-defined types used by gobject.
www.moeraki.com /pygtktutorial/pygtk2reference/gobject-constants.html   (695 words)

  
 Diary for jamesh
Since the GObject didn't hold a real reference to the wrapper, if the only references on the wrapper were parts of cycles, the GC might think it okay to free the wrapper.
If there are references to the GObject other than the one its wrapper holds, then we obviously don't want to free either.
I came up with a smart solution that seems to handle this very nicely: If the GObject reference count is equal to 1, then the wrapper will visit itself as part of the GC traverse, otherwise it won't visit itself.
www.advogato.org /person/jamesh/diary.html?start=121   (2114 words)

  
 [No title]
This has proved to be a godsend, as it has made things very easy to debug; there's a clean separation between the base of the type system and the stuff on top of it.
In practice, this is a bad idea, fraught with problems; the substitution rules are not easily extendable and are easily broken by extension packages which don't follow the naming conventions.
To hush the warning, you need merely call.PP In general, this process will claim a reference on the GObject (with \&\fIg_object_ref()\fR), so that the C object stays alive so long as there is a perl wrapper for it.
web.mit.edu /contrib/perl5/man/man3/Glib::devel.3   (2571 words)

  
 GstObject   (Site not responding. Last check: 2007-10-12)
GObject +----GstObject +----GstPad +----GstElement +----GstPadTemplate +----GstScheduler +----GstIndex +----GstClock +----GstXML
The most interesting difference between GstObject and GObject is the "floating" reference count.
A GObject is created with a reference count of 1, owned by the creator of the GObject.
www.mcs.vuw.ac.nz /technical/software/doc/gstreamer-0.8/GstObject.html   (919 words)

  
 Chapter 4. GObject: what brings everything together.
All the GTK+ objects and all of the objects in Gnome libraries which use the glib type system inherit from GObject which is why it is important to understand the details of how it works.
Although one can expect all class and instance members (except the fields pointing to the parents) to be set to zero, some consider it good practice to explicitly set them.
Objects which inherit from GObject are allowed to override this constructor class method: they should however chain to their parent constructor method before doing so:
www.le-hacker.org /papers/gobject/ch04.html   (745 words)

  
 GObject (Geotechnical Software Services - API Specification)
The sibling object immediately behind this object (or null if this object is in back, or it is not attach to a parent).
If the specified segment is not a child of this GObject, this call has no effect.
A GObject does not need a style instance; in this case all style elements are inherited.
geosoft.no /graphics/G/docs/no/geosoft/cc/graphics/GObject.html   (1624 words)

  
 [No title]   (Site not responding. Last check: 2007-10-12)
The problem is that a light must be enabled before the objects that it lights are drawn.
If you add the lights as GObjects, you would still have to deal with them in some special way.
For example, you could traverse the scene graph once to turn on all the lights, once to draw the objects, and once to turn off the lights.
math.hws.edu /eck/cs324/s01/prog3.txt   (542 words)

  
 GObject FAQ | Tiago Cogumbreiro   (Site not responding. Last check: 2007-10-12)
Considering that you are going to name your class name Human and want it to belong to Nature namespace, in Java it's the equivalent of package and in Python of module, you have to add this boiler code in the header:
The first macros and functions are the standard convention for GObject objects and you should keep on following it, if you want your classes to be easely usuable by other Gtk+ or simply GObject users.
However there are certain cases where you want to explicitly tell the user that certain properties must be initialized with a certain value.
s1x.homelinux.net /documents/gtk/gobject-faq.html   (1464 words)

  
 gob2(1): GObject Builder - Linux man page
Depending on the style you may want to include all destruction/initialization code together with the definition of the data member.
Thus you may want to put arbitrary code which will then be inserted into the "finalize" method of GObject.
The OBJECT type is one of the types that doesn't have a 'default_value' and it only has an 'object_type' attribute (in addition to nick and blurb of course) that is the exact object type that this property accepts.
www.die.net /doc/linux/man/man1/gob2.1.html   (7098 words)

  
 gobject Functions   (Site not responding. Last check: 2007-10-12)
gobject module but are not directly associated with a specific class.
Each parameter type may be specified as a gobject type, type ID or instance.
For example, to add a signal to the gtk.Window type called "my-signal" that calls a handler with a gtk.Button widget and an integer value and a return value that is a boolean, use:
www.pygtk.org /pygtk2reference/gobject-functions.html   (2057 words)

  
 GOB: the GObject Builder   (Site not responding. Last check: 2007-10-12)
GOB (GOB2 anyway) is a preprocessor for making GObjects with inline C code so that generated files are not edited.
GObject has little type safety, GOB improves on it.
Doing a GObject based gob is more of a job for gob2 as it will require quite a bit of rethinking of the syntax and some of the internals.
www.5z.com /jirka/gob.html   (1439 words)

  
 GstObject
"deep-notify" void user_function (GstObject *gstobject, GObject *arg1, GParamSpec *arg2, gpointer user_data); "object-saved" void user_function (GstObject *gstobject, gpointer arg1, gpointer user_data); "parent-set" void user_function (GstObject *gstobject, GObject *arg1, gpointer user_data); "parent-unset" void user_function (GstObject *gstobject, GObject *arg1, gpointer user_data);
The deep notify signal is used to be notified of property changes.
Is emitted when the parent of an object is set.
gstreamer.freedesktop.org /data/doc/gstreamer/0.8.7/gstreamer/html/GstObject.html   (684 words)

  
 ASPN : Python Cookbook : Pseudo threads with generators and PyGTK/gnome-python   (Site not responding. Last check: 2007-10-12)
This makes it simpler to write code, since you do not have to care about nasty locks.
""" from __future__ import generators import gobject import time import traceback class GIdleThread(object): """This is a pseudo-"thread" for use with the GTK+ main loop.
This class does act a bit like a thread, all code is executed in the callers thread though.
aspn.activestate.com /ASPN/Cookbook/Python/Recipe/327082   (559 words)

  
 The Glib Object system v0.10.0
I'd like to thank Owen Taylor, Tim Janik and especially James Henstridge for their help on IRC, when I was trying to figure out the why of some of GObject aspects.
Fix sample code in GObject section, thanks to comments from Marek Peteraj and Christophe Fergeau gnome dot org>
Add discussion of the detail parameter to the GSignal sections per suggestion from paolo borelli ().
le-hacker.org /papers/gobject   (772 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.