Re: GtkEntry
- From: Gus Koppel <gtk spamkiller bytechase cx>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkEntry
- Date: Fri, 17 Oct 2003 01:14:13 +0200
Harring Figueiredo wrote:
There is only one problem: If the user chose the button as the input
method and selected the file using the FileSelection, the Entry never
had the focus int the first place.
I will just put yet another check on the FileSelection call and check
before I return.
Certainly. You wouldn't want to put complex testing functionality inside
a specific event handler funbction, would you? Write a separate function
like test_filename () and call it on either
1. the filename GtkEntry lost focus or
2. the GtkFileSelection concluded with GTK_RESPONSE_ACCEPT /
GTK_RESPONSE_OK.
You could even call this function if, for instance, your application
supports a file menu containing a last recently used (LRU) file list and
the user selects a recently used filename from that menu.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]