logo       


Re: Gtk2::Gdk::Screen and $widget->size_request: msg#00058

Subject: Re: Gtk2::Gdk::Screen and $widget->size_request

On Thursday, June 12, 2003, at 05:53 PM, Gavin Brown wrote:

GType 'GdkScreenX11' is not registered with GPerl; representing this
object as first known parent type 'GdkScreen' instead at
gdkscreentest.pl line 13.

Gdk uses private subclasses to implement backend-specific stuff... this is one of these. by calling gperl_object_set_no_warn_unreg_subclass in the boot code for the GdkScreen binding module, i can disable this warning. the problem is:


Can't locate object method "get_width" via package "Gtk2::Gdk::Screen"
at gdkscreentest.pl line 14.

eh, that's because no bindings for GdkScreen have been written yet.

i just commited GdkScreen.xs, so if you get the most current CVS and do a complete rebuild (specifically, rerun Makefile.PL to add the new file to the build), you should have gdk screen working.

oh yeah -- GdkScreen's methods exist only in 2.2.x.


Secondly, the GTK docs suggest that I can call size_request() on a
realized widget to get the on-screen dimensions, but I get a "can't
locate object method" error.

size_request isn't bound, but that's not really what you want to use to find out the on-screen dimensions --- that's what $widget->allocation is for.

the size request is how big the widget wants to be, the allocation is how big the widget actually is.


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe