unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre-Charles David <pierre-charles.david@wanadoo.fr>
Subject: Re: GTK file selector
Date: Fri, 16 Dec 2005 19:53:23 +0100	[thread overview]
Message-ID: <1134759204.9530.6.camel@localhost.localdomain> (raw)

> These sound like reasonable features.  What is missing is something
> to give the user a clue to them.

The Gtk+ file chooser supports the addition of arbitrary widgets, which
are shown below the file list. One could use a toggle button to make the
"Show hidden files" feature visible:

toggle = gtk_check_button_new_with_label ("Show hidden files.");
gtk_widget_show (toggle);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog),
                                   toggle);
g_signal_connect (G_OBJECT (toggle_button), "clicked",
                  G_CALLBACK (toggle_visibility), G_OBJECT(dialog));

with:

static void toggle_visibility(GtkWidget *widget, gpointer data)
{
  GtkFileChooser *dialog = GTK_FILE_CHOOSER(data);
  gboolean visible = ! gtk_file_chooser_get_show_hidden(dialog);
  gtk_file_chooser_set_show_hidden(dialog, visible);
}

The default visibility state could also be exposed as an Emacs
configuration variable.

             reply	other threads:[~2005-12-16 18:53 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-16 18:53 Pierre-Charles David [this message]
2005-12-17 10:57 ` GTK file selector Juri Linkov
2005-12-18 17:02   ` Jan D.
  -- strict thread matches above, loose matches on Subject: below --
2005-12-14  9:27 Jérôme Marant
2005-12-14 14:06 ` Aidan Kehoe
2005-12-14 14:38   ` Jérôme Marant
2005-12-14 19:41     ` Eli Zaretskii
2005-12-14 20:33       ` Jérôme Marant
2005-12-14 20:00     ` Jan Djärv
2005-12-16 20:10       ` Jérôme Marant
2005-12-16 20:16         ` Jan Djärv
2005-12-16 20:28           ` Jérôme Marant
2005-12-16 22:00         ` Paul Pogonyshev
2005-12-14 15:25 ` Mario Domenech Goulart
2005-12-14 20:30   ` Jérôme Marant
2005-12-14 15:28 ` Frank Schmitt
2005-12-15  9:00   ` Stephen Berman
2005-12-16  1:52     ` Richard M. Stallman
2005-12-15 12:59   ` Juri Linkov
2005-12-15 15:52     ` Aidan Kehoe
2005-12-16  7:56       ` Juri Linkov
2005-12-16 11:38         ` Aidan Kehoe
2005-12-16 12:49           ` Juri Linkov
2005-12-16 15:40             ` Romain Francoise
2005-12-17 10:44               ` Kaloian Doganov
2005-12-17 15:16                 ` Romain Francoise
2005-12-16 16:27             ` Kim F. Storm
2005-12-16 20:54             ` Chong Yidong
2005-12-16 20:08           ` Nick Roberts
2005-12-16 22:23             ` David Kastrup
2005-12-16 23:23               ` Jérôme Marant
2005-12-16 23:38                 ` David Kastrup
2005-12-17 13:05                   ` Jérôme Marant
2005-12-17 15:22                     ` David Kastrup
2005-12-17 22:21                       ` Aidan Kehoe
2005-12-18  0:38                         ` David Kastrup
2005-12-18 11:07                           ` Aidan Kehoe
2005-12-18 12:56                       ` Jérôme Marant
2005-12-18 13:40                         ` David Kastrup
2005-12-18 17:37                           ` Stephen J. Turnbull
2005-12-18 17:57                             ` David Kastrup
2005-12-18 20:37                         ` Xavier Maillard
2005-12-18 22:36                           ` Miles Bader
2005-12-18 23:33                             ` Stefan Monnier
2005-12-19 14:07                             ` Xavier Maillard
2005-12-19  1:41                           ` Tom Tromey
2005-12-19  2:26                             ` Alfred M. Szmidt
2005-12-19  5:33                               ` Tom Tromey
2005-12-18 22:33                         ` Miles Bader
2005-12-17 15:27                     ` Eli Zaretskii
2005-12-17 22:02               ` Aidan Kehoe
2005-12-18 20:59                 ` Juri Linkov
2005-12-22 15:26                 ` Lőrentey Károly
2005-12-17 16:22             ` Stephen J. Turnbull
2005-12-18  5:24               ` Nick Roberts
2005-12-18 10:25                 ` Aidan Kehoe
2005-12-18 12:23                   ` David Kastrup
2005-12-18 12:47                     ` Aidan Kehoe
2005-12-18 12:57                       ` David Kastrup
2005-12-18 12:14                 ` David Kastrup
2005-12-18 14:47                 ` Stephen J. Turnbull
2005-12-18 15:07                   ` David Kastrup
2005-12-18 19:26                   ` Eli Zaretskii
2005-12-19  4:38                   ` Richard M. Stallman
2005-12-17 16:52           ` Nikita Danilov
2005-12-16 20:13     ` Jan Djärv
2005-12-17 10:57       ` Juri Linkov
2005-12-18 17:02         ` Jan D.
2005-12-19  4:40           ` Richard M. Stallman
2005-12-19 23:18             ` Jan D.
2005-12-20  0:36               ` Jan D.
2005-12-20 16:33                 ` Richard M. Stallman
2005-12-20 19:21                   ` Jan D.
2005-12-21  5:30                     ` Richard M. Stallman
2005-12-22  9:27                       ` Jan D.
2005-12-22 22:20                         ` Richard M. Stallman
2005-12-23  0:09                           ` David Kastrup
2005-12-23 11:38                           ` Jan D.
2005-12-23 18:09                             ` Richard M. Stallman
2005-12-24 20:29                               ` Jan D.
2005-12-25 19:06                                 ` Richard M. Stallman
2005-12-27 10:47                                   ` Jan D.
2005-12-27 13:31                                     ` Jan D.
2005-12-27 16:42                                       ` Stefan Monnier
2005-12-28 10:50                                         ` Jan D.
2005-12-20  5:32               ` Richard M. Stallman
2005-12-20  6:35                 ` Jan D.
2005-12-21  2:58                   ` Richard M. Stallman
2005-12-19 23:45             ` Richard M. Stallman
2005-12-17 13:06       ` Jérôme Marant
2005-12-14 16:18 ` Reiner Steib
2005-12-14 21:23   ` Jérôme Marant
2005-12-14 16:20 ` Emfox Zhou
2005-12-15  2:08 ` Richard M. Stallman
2005-12-16 20:05   ` Jérôme Marant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1134759204.9530.6.camel@localhost.localdomain \
    --to=pierre-charles.david@wanadoo.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).