Re: GtkFileChooserDialog, Glade and header bars

2015-09-06 Thread Tristan van Berkom
> On Sep 5, 2015, at 1:09 PM, rastersoft wrote: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hi all: > > I'm using a GtkFileChooserDialog created with Glade, but I receive a > warning when I create it: > > Warning: Content a

Re: GtkFileChooserDialog, Glade and header bars

2015-09-06 Thread rastersoft
gt; Hi all: > > I'm using a GtkFileChooserDialog created with Glade, but I receive a > warning when I create it: > > Warning: Content added to the action area of a dialog using > header bars > > I suspect that this is because I added Cancel and OK buttons into it &g

GtkFileChooserDialog, Glade and header bars

2015-09-05 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi all: I'm using a GtkFileChooserDialog created with Glade, but I receive a warning when I create it: Warning: Content added to the action area of a dialog using header bars I suspect that this is because I added Cancel a

GtkFileChooserDialog

2015-01-19 Thread Nicolas Jäger
Hi Phil and Tristan, gtk and gtkmm users, I know what were my mistakes. First, I'm using gtk...mm since few days, so I didn't take care enough when looking for examples on internet by if I was watching a pure gtk3 example or gtkmm3... that point makes me messing some functions made for gtk3 and g

Re: glade3, how to get the response of GtkFileChooserDialog somwhere in my code and open a file?

2015-01-17 Thread Tristan Van Berkom
On Sat, 2015-01-17 at 00:57 -0500, Nicolas Jäger wrote: > Hi g(tk)uys, > > I have a GtkFileChooserDialog with two buttons, one Open and one > Cancel. They have the respective Response ID set to "0" and "1". So > when I select a file and click on "Open&qu

glade3, how to get the response of GtkFileChooserDialog somwhere in my code and open a file?

2015-01-16 Thread Nicolas Jäger
Hi g(tk)uys, I have a GtkFileChooserDialog with two buttons, one Open and one Cancel. They have the respective Response ID set to "0" and "1". So when I select a file and click on "Open" GTK sents the code "0" somewhere, but I don't know how to get thi

Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-03 Thread Emmanuel Thomas-Maurin
On 02/03/2012 01:17 AM, Ferdinand Ramirez wrote: > --- On Thu, 2/2/12, Emmanuel Thomas-Maurin wrote: > >> I think you may use something like: >> gtk_editable_set_position(GTK_EDITABLE(entry), -1) >> > > The problem is that I don't seem to have access to location_entry in > GtkFileChooser for me

Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Ferdinand Ramirez
--- On Thu, 2/2/12, Emmanuel Thomas-Maurin wrote: > I think you may use something like: > gtk_editable_set_position(GTK_EDITABLE(entry), -1) > The problem is that I don't seem to have access to location_entry in GtkFileChooser for me to use the above function. Do you know how I can get hold o

Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Emmanuel Thomas-Maurin
On 02/02/2012 10:23 PM, Ferdinand Ramirez wrote: > If I set the filename using gtk_file_chooser_set_current_name from a callback > method for key-press-event, the filename shows up in the text entry box, but > the cursor position is at 0 once the filename has been set. How do I set the > cursor

cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Ferdinand Ramirez
If I set the filename using gtk_file_chooser_set_current_name from a callback method for key-press-event, the filename shows up in the text entry box, but the cursor position is at 0 once the filename has been set. How do I set the cursor position to be at the end of the string I set as the file

Re: Problem with GtkFileChooserDialog select_folder action

2009-09-04 Thread Allin Cottrell
On Fri, 4 Sep 2009, John Stebbins wrote: > The problem occurs when I create a GtkFileChooserDialog with action > GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER and then set the default folder > with gtk_file_chooser_set_filename or gtk_file_chooser_select_filename. > Attempting to click &q

Problem with GtkFileChooserDialog select_folder action

2009-09-04 Thread John Stebbins
The problem occurs when I create a GtkFileChooserDialog with action GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER and then set the default folder with gtk_file_chooser_set_filename or gtk_file_chooser_select_filename. Attempting to click "Ok" gives the message "The folder could not be

GtkFileChooserDialog position

2008-10-16 Thread Tomas Soltys
Hi, I have a question about positioning of the file-chooser dialog. The position of the dialog is not correct. I'm using the latest stable version of GTK 2.14.3. The code is compiled on win32. --- CODE -- GtkWidget *dialog; dialog = gt

Re: GtkFileChooserDialog: something funny?

2008-09-26 Thread Allin Cottrell
ect_unref: assertion `G_IS_OBJECT > > (object)' failed > > > > on calling gtk_widget_destroy() on a GtkFileChooserDialog. > > I guess this patch was incomplete or broken in its application to > > 2.14.3. Line 937 in gtkfilechooserdefault.c, namely > > >

Re: GtkFileChooserDialog: something funny?

2008-09-26 Thread Allin Cottrell
GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed on calling gtk_widget_destroy() on a GtkFileChooserDialog. I guess this patch was incomplete or broken in its application to 2.14.3. Line 937 in gtkfilechooserdefault.c, namely g_object_unref (impl->file

Re: GtkFileChooserDialog: something funny?

2008-09-26 Thread Allin Cottrell
On Fri, 26 Sep 2008, Tor Lillqvist wrote: > > Any ideas on what's going on? > > http://bugzilla.gnome.org/show_bug.cgi?id=553135#c8 ? Thanks, got it. -- Allin Cottrell Department of Economics Wake Forest University ___ gtk-app-devel-list mailing lis

Re: GtkFileChooserDialog: something funny?

2008-09-26 Thread Tor Lillqvist
> Any ideas on what's going on? http://bugzilla.gnome.org/show_bug.cgi?id=553135#c8 ? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkFileChooserDialog: something funny?

2008-09-26 Thread Allin Cottrell
After updating to glib 2.18.1, gtk 2.14.3 and pango 1.22.0 I'm seeing some funny behavior from GtkFileChooserDialog, which has started to emit a GLib-GObject-CRITICAL message on destruction. Simple test case, based on the example in the documentation for GtkFileChooserDialog:

Re: GtkFileChooserDialog and GtkFileChooser problem

2007-11-13 Thread zz
On Monday 12 November 2007 23:24:51 [EMAIL PROTECTED] wrote: >> Hi, >> I'm experiencing a little problem with GtkFileChooserDialog and >> GtkFileChooser: I'm writing an app that needs to select a path to operate on >> it. This path could be a file or a di

GtkFileChooserDialog and GtkFileChooser problem

2007-11-12 Thread zz
Hi, I'm experiencing a little problem with GtkFileChooserDialog and GtkFileChooser: I'm writing an app that needs to select a path to operate on it. This path could be a file or a directory (to be handled recursively). While it was possible to select a file OR a directory wi

Re: GtkFileChooserDialog too slow

2007-10-17 Thread Emmanuele Bassi
On Tue, 2007-10-16 at 21:20 -0400, Andrew Smith wrote: > And oh, I meant to post this to gtk-devel not gtk-app-devel. Should I > send a copy there also? no need to: you should have opened a bug on bugzilla instead of using the mailing list. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.

Re: GtkFileChooserDialog too slow

2007-10-17 Thread Emmanuele Bassi
On Tue, 2007-10-16 at 19:27 -0400, Andrew Smith wrote: > Hi > > Try to navigate to /usr/bin using a no-frills GtkFileChooserDialog. My > computer is a bit old, but it's far from being obsolete and it sometimes > takes minutes (!!) to display that directory. because it needs

Re: GtkFileChooserDialog too slow

2007-10-16 Thread Andrew Smith
Iain * a écrit : > On 10/17/07, Andrew Smith <[EMAIL PROTECTED]> wrote: > >> Will you please fix it? I need to navigate to /usr/bin once in a while >> to select what app to open files with from Firefox, and the experience >> ranges from annoying to `kill firefox-bin` because I don't have the time

Re: GtkFileChooserDialog too slow

2007-10-16 Thread Iain *
On 10/17/07, Andrew Smith <[EMAIL PROTECTED]> wrote: > Will you please fix it? I need to navigate to /usr/bin once in a while > to select what app to open files with from Firefox, and the experience > ranges from annoying to `kill firefox-bin` because I don't have the time > to wait for the file c

GtkFileChooserDialog too slow

2007-10-16 Thread Andrew Smith
Hi Try to navigate to /usr/bin using a no-frills GtkFileChooserDialog. My computer is a bit old, but it's far from being obsolete and it sometimes takes minutes (!!) to display that directory. I implemented a very similar file list using a GtkTreeView in my own application and readin

Re: Customizing GtkFileChooserDialog

2007-05-28 Thread Olivier Guilyardi
Emmanuele Bassi wrote: > On Mon, 2007-05-28 at 17:51 +0200, Olivier Guilyardi wrote: >> >> I need to add some extra saving options to a GtkFileChooserDialog. In this >> purpose I'm trying to access its vbox with: >> >> GtkWidget *label = gtk_button_new_wit

Re: Customizing GtkFileChooserDialog

2007-05-28 Thread Emmanuele Bassi
On Mon, 2007-05-28 at 17:51 +0200, Olivier Guilyardi wrote: > Hi, > > I need to add some extra saving options to a GtkFileChooserDialog. In this > purpose I'm trying to access its vbox with: > > GtkWidget *label = gtk_button_new_with_label ("test"); > gtk_cont

Re: Customizing GtkFileChooserDialog

2007-05-28 Thread Scott Horowitz
On 5/28/07, Olivier Guilyardi <[EMAIL PROTECTED]> wrote: > Hi, > > I need to add some extra saving options to a GtkFileChooserDialog. In this > purpose I'm trying to access its vbox with: > > GtkWidget *label = gtk_button_new_with_label ("test"); > gt

Customizing GtkFileChooserDialog

2007-05-28 Thread Olivier Guilyardi
Hi, I need to add some extra saving options to a GtkFileChooserDialog. In this purpose I'm trying to access its vbox with: GtkWidget *label = gtk_button_new_with_label ("test"); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (file_chooser_dialog)->vbox), label); But it has no e

Gtk-CRITICAL with a GtkFileChooserDialog

2007-05-19 Thread Vincent Torri
Hey, I create a GtkFileChooserDialog, then I set its current folder to my home dir, then I create a GtkFileChooserButton. When I run the prog, I get: (test_gtk:22697): Gtk-CRITICAL **: gtk_file_system_path_to_uri: assertion `path != NULL' failed I have gtk+ 2.10.11 I would like to

Re: GtkFileChooserDialog: response from Location

2007-02-07 Thread Braden McDaniel
On Wed, 2007-02-07 at 20:56 -0500, Braden McDaniel wrote: > It seems that--by default, at least--pressing "Enter" in the Location > entry of a GtkFileChooserDialog does not constitute a "response" (that > is, it does not close the dialog). > > Can this be chang

Re: GtkFileChooserDialog: response from Location

2007-02-07 Thread Leandro A. F. Pereira
Hello, Braden! On 2/7/07, Braden McDaniel <[EMAIL PROTECTED]> wrote: > > (I came across in the > course of googling about this. But it just left me more confused; > particularly Federico's last comment about there being "no location > dialog anymo

GtkFileChooserDialog: response from Location

2007-02-07 Thread Braden McDaniel
It seems that--by default, at least--pressing "Enter" in the Location entry of a GtkFileChooserDialog does not constitute a "response" (that is, it does not close the dialog). Can this be changed? Or can it be fudged? (I came across <http://bugzilla.gnome.org/show_bu

Re: Adjusting GtkFileChooserDialog appearance

2006-12-04 Thread Reed Hedges
You can go in and mess with the contents of the dialog. Somewhere I think I have a function that "walks" the tree of widgets within it printing out relevant information. Such a solution is completely and horribly non-portable between versions of GTK of course. (So yeah, it would be great if

Adjusting GtkFileChooserDialog appearance

2006-12-04 Thread Vladislav Grinchenko
Hi, I am trying to scale down the width of the GtkFileChooser dialog to fit in 320x240 display geometry. One annoying thing is that the [+ Add][- Remove] buttons of the 'Places' left-side pane define its minimal width. There is no property to hide it all together (which I would like to do ver

Re: A few GtkFileChooserDialog questions

2005-08-26 Thread Sven Neumann
Hi, Douglas Vechinski <[EMAIL PROTECTED]> writes: > First, is it possible to make a GtkFileChooserDialog when in > GTK_FILE_CHOOSER_ACTION_SAVE action to "activate" when the user presses > Enter or Return in the name entry box so that one does not have to move > the m

Re: A few GtkFileChooserDialog questions

2005-08-25 Thread Douglas Vechinski
On Thu, 2005-08-25 at 21:40 +0200, Sven Neumann wrote: > Hi, > > Douglas Vechinski <[EMAIL PROTECTED]> writes: > > > First, is it possible to make a GtkFileChooserDialog when in > > GTK_FILE_CHOOSER_ACTION_SAVE action to "activate" when the user presses &

A few GtkFileChooserDialog questions

2005-08-25 Thread Douglas Vechinski
Couple of questions concerning the GtkFileChooserDialog. First, is it possible to make a GtkFileChooserDialog when in GTK_FILE_CHOOSER_ACTION_SAVE action to "activate" when the user presses Enter or Return in the name entry box so that one does not have to move the mouse to the S

Question about GtkFileChooserDialog

2005-07-26 Thread Michal Porzuczek
Hi, When using the GtkFileChooserDialog, is there a way to get the number of files in the folder you select or when saving check if the file you select already exists in the folder or dosen't in the case of opening? Thanks a lot, Michal ___ gt

Re: closing a GtkFileChooserDialog (The Saltydog)

2005-07-11 Thread Muthiah Annamalai
> > > >the dialog stays open until my_subroutine returns > and as the sub is a > >very long time-demanding sub, it is annoying to see > the dialog stuck > >opened.. > > Probably you must use, gtk_widget_hide() on the dialog, before you enter your subroutine? Cheers Muthu. ___

Re: closing a GtkFileChooserDialog

2005-07-09 Thread The Saltydog
On 7/9/05, Eduardo M KALINOWSKI <[EMAIL PROTECTED]> wrote: > If you only call the function to destroy the dialog after your long > subroutine, it will only be destroyed after the subroutine, naturally. > You must call gtk_widget_destroy before calling the subroutine. Besides, > it might be necessar

Re: closing a GtkFileChooserDialog

2005-07-09 Thread Eduardo M KALINOWSKI
The Saltydog wrote: >I have an annoying problem... > >Open a GtkFileChooserDialog, select the file, click "Open"... then >execute a time-demanding subroutine. The dialog doesn't close until >the subroutine exists.

closing a GtkFileChooserDialog

2005-07-09 Thread The Saltydog
I have an annoying problem... Open a GtkFileChooserDialog, select the file, click "Open"... then execute a time-demanding subroutine. The dialog doesn't close until the subroutine exists. This is a snap of the code: ** if

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread Colossus
John Cupitt wrote: If you have an entry plus a GtkFileChooserButton, you'll have the same text displayed twice, once in the entry and once in the button. It would look a bit odd. You are right ! Anyway I thought something completely different, what to use a treeview showing all the sub/folder

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread John Cupitt
On 6/22/05, Colossus <[EMAIL PROTECTED]> wrote: > John Cupitt wrote: > > > http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooserButton.html > > Mmm but how can I have the gtk_entry automatically "filled" with the > path choosen with GtkFileChooserButton ?? I'm calling the dialog who > creates

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread Colossus
John Cupitt wrote: http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooserButton.html Mmm but how can I have the gtk_entry automatically "filled" with the path choosen with GtkFileChooserButton ?? I'm calling the dialog who creates the gtk_entry and the GtkFileChooserButton from another fu

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-22 Thread Colossus
John Cupitt wrote: http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooserButton.html Many thanks !! -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Calling GTkFileChooserDialog from a GtkDialog

2005-06-21 Thread John Cupitt
On 6/22/05, Colossus <[EMAIL PROTECTED]> wrote: > I have a dialog with a Gtk_entry and a button. I want to > display a GtkFileChooserDialog when the user pushes the > button from the GtkDialog; the choosen path should be > displayed into the Gtk entry. How can I achieve this

Calling GTkFileChooserDialog from a GtkDialog

2005-06-21 Thread Colossus
Hi, I have a dialog with a Gtk_entry and a button. I want to display a GtkFileChooserDialog when the user pushes the button from the GtkDialog; the choosen path should be displayed into the Gtk entry. How can I achieve this ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http

GtkFileChooserDialog do not reacts when clicking on button NEW

2005-05-17 Thread Colossus
GtkWidget *new_archive_dialog; GtkWidget *hbox; GtkWidget *archive_types; int i; new_archive_dialog = gtk_file_chooser_dialog_new ("Create a new archive", GTK_WINDOW(MainWindow), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_NEW, GTK_RESPONSE_ACCEPT, NULL);