Re: FileChooserButton API suggestion

2007-05-07 Thread Cezary Krzyzanowski

> Dnia 04-05-2007, pią o godzinie 11:53 -0400, Matthias Clasen
> napisał(a):
> > On 5/3/07, Cezary Krzyzanowski <[EMAIL PROTECTED]> wrote:
> > 
> > > So first I propose to make some note in the documentation (and
> maybe in
> > > the FAQ), that the supplied dialog needs to have RESPONSE_ACCEPT
> as the
> > > positive result.
> > >
> > > The second thing is to stop GTKFileChooserButton from changing the
> title
> > > in the supplied dialog.
> > 
> > Two good proposals, imo. Can you file a bug so that we don't forget
> about them ?

Here it is:
http://bugzilla.gnome.org/show_bug.cgi?id=436576

Thx
[EMAIL PROTECTED]

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


Re: FileChooserButton API suggestion

2007-05-04 Thread Matthias Clasen
On 5/3/07, Cezary Krzyzanowski <[EMAIL PROTECTED]> wrote:

> So first I propose to make some note in the documentation (and maybe in
> the FAQ), that the supplied dialog needs to have RESPONSE_ACCEPT as the
> positive result.
>
> The second thing is to stop GTKFileChooserButton from changing the title
> in the supplied dialog.

Two good proposals, imo. Can you file a bug so that we don't forget about them ?
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


FileChooserButton API suggestion

2007-05-03 Thread Cezary Krzyzanowski
Hello!

I've fought a few hours with the working of GTKFileChooserButton. I
wanted to have a menu item and the button in toolbar opening the same
GTKFileChooserDialog. To make this happen I've constructed the
GTKFileChooserButton using the constructor, that allows passing my
custom GTKFIleChooserDialog.

The problem is, that the dialog HAS TO have a button with
RESPONSE_ACCEPT, otherwise the button won't set it's label and icon
accordingly after selecting a file. I had my 'Open' button in the dialog
use RESPONSE_OK and it displayed only the icon, the label was empty.

The second issue is with the title. Even when supplying my own
FileChooserDialog with the title set to something custom,
FileChooserButton resets the dialogs title to default.

So first I propose to make some note in the documentation (and maybe in
the FAQ), that the supplied dialog needs to have RESPONSE_ACCEPT as the
positive result.

The second thing is to stop GTKFileChooserButton from changing the title
in the supplied dialog.

Best regards
[EMAIL PROTECTED]

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