Re: Gtk2::MessageDialog title

2009-11-24 Thread Kevin Ryde
muppet sc...@asofyet.org writes:

 With a compliant window manager, at least.

Compliant in the sense of rigid, instead of flexible :-).

-- 
People laugh when they hear I've still got an 8-track in my car.
I say you can make a perfectly good mix on an 8-track if you're
organised, but I think a 24-track desk will fit some time.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Gtk2::MessageDialog title

2009-11-23 Thread Kevin Ryde
muppet sc...@asofyet.org writes:

 But beware that the gnome human interface guidelines say that alert
 windows should have no title,

You'd probably want the application name in there at least, to know
what's to blame, in particular if it gets iconified so the message text
can't be seen.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Gtk2::MessageDialog title

2009-11-23 Thread muppet

On Nov 23, 2009, at 3:49 PM, Kevin Ryde wrote:

 muppet sc...@asofyet.org writes:
 
 But beware that the gnome human interface guidelines say that alert
 windows should have no title,
 
 You'd probably want the application name in there at least, to know
 what's to blame, in particular if it gets iconified so the message text
 can't be seen.

Alerts are supposed to be modal and parented to prevent that.  With a 
compliant window manager, at least.

--
zella (crying):  I want...
us:  What?
zella (still crying):  I want...  something!


___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


RE: Gtk2::MessageDialog title

2009-11-22 Thread Jeff Hallock

 Of course.  Gtk2::MessageDialog isa Gtk2::Dialog isa Gtk2::Window, so just 
 just
 Gtk2::Window::set_title().  See below.

I did actually look at Gtk2::Dialog but didn't see it there either.  Should 
have just kept moving up?/down? the hierarchy.


It is in Gtk2::Window - the parent of Gtk2::Dialog

http://library.gnome.org/devel/gtk/stable/GtkDialog.html#GtkDialog.object-hierarchy




 But beware that the gnome human interface guidelines say that alert windows
 should have no title, as the title would normally just duplicate the text of 
 the
 message...  so, depending on what you're doing, you might actually want to 
 blank
 out the title.

 http://library.gnome.org/devel/hig-book/stable/windows-alert.html.en



Thank you very much for this, will check out the rest of the HIG to make sure 
I'm staying on track.


 For each widget in Gtk2 there is a man page; each man page has a HIERARCHY
 section, which shows the class ancestry for that type. Or you can look at 
 the C
 api reference on gtk.org, which has the same info in a different format.

Wasn't aware I could also refer to the C api reference.  Thanks again.


I prefer using the C api reference - 
http://library.gnome.org/devel/gtk/stable/index.html.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Gtk2::MessageDialog title

2009-11-20 Thread muppet


On Nov 20, 2009, at 11:01 PM, Zettai Muri wrote:


Is it possible to set the title of a MessageDialog?


Of course.  Gtk2::MessageDialog isa Gtk2::Dialog isa Gtk2::Window, so  
just just Gtk2::Window::set_title().  See below.



But beware that the gnome human interface guidelines say that alert  
windows should have no title, as the title would normally just  
duplicate the text of the message...  so, depending on what you're  
doing, you might actually want to blank out the title.


http://library.gnome.org/devel/hig-book/stable/windows-alert.html.en



I have the following:

sub show_duplicate_dialog
{
#
# A modal dialog.  Note that the message is a printf-style format.
#
my($duplicate) = @_;
my($dialog) = Gtk2::MessageDialog-new (undef,
'destroy-with-parent',
'error', # message type
'ok', # which set of buttons?
#printf format:
\%s\ already selected.,
$duplicate);


$dialog-set_title (Fooo);


my($response) = $dialog-run;
$dialog-destroy;

}

But can't work out how to add a title to the dialog box that appears.


For each widget in Gtk2 there is a man page; each man page has a  
HIERARCHY section, which shows the class ancestry for that type. Or  
you can look at the C api reference on gtk.org, which has the same  
info in a different format.


--
Applause is an addiction, like heroin or checking your email.
  -- Sideshow Mel

___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Gtk2::MessageDialog title

2009-11-20 Thread Zettai Muri


 Of course.  Gtk2::MessageDialog isa Gtk2::Dialog isa Gtk2::Window, so just 
 just 
 Gtk2::Window::set_title().  See below.

I did actually look at Gtk2::Dialog but didn't see it there either.  Should 
have just kept moving up?/down? the hierarchy.
 
 
 But beware that the gnome human interface guidelines say that alert windows 
 should have no title, as the title would normally just duplicate the text of 
 the 
 message...  so, depending on what you're doing, you might actually want to 
 blank 
 out the title.
 
 http://library.gnome.org/devel/hig-book/stable/windows-alert.html.en
 
 

Thank you very much for this, will check out the rest of the HIG to make sure 
I'm staying on track.

 
 For each widget in Gtk2 there is a man page; each man page has a HIERARCHY 
 section, which shows the class ancestry for that type. Or you can look at the 
 C 
 api reference on gtk.org, which has the same info in a different format.

Wasn't aware I could also refer to the C api reference.  Thanks again.


  
__
Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
Enter now: http://au.docs.yahoo.com/homepageset/

___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list