Re: standard window and 'open/save' dialogue
- From: Iain <tigermilk btinternet com>
- To: jonathan chetwynd <jonathan peepo com>
- Cc: gtk app <gtk-app-devel-list gnome org>
- Subject: Re: standard window and 'open/save' dialogue
- Date: 22 Nov 2000 18:25:46 +0000
I'd like to change the standard window to just 3 items:
a program icon, how do I specify this ie use my own icons
a title
a 32x32 close button.
all in gtk+
This is a feature of the window manager.
If you are using a very themable window manager (Sawfish/Enlightenment/maybe
others I can't remember) it is a simple case of creating a new theme that has
these features. I know sawfish can do the program icon's and I'd assume E can too.
Your program has no control over what the window border looks like apart from
specifying what controls it has (but if you make it so your window manager only
puts a close button there, then you don't have to worry about it).
See sawfish.themes.org or e.themes.org for themeing tutorials.
Soon I'd like to change the standard open/save dialogue, which again is far
too
complex for my clients. They only need to search/save in their home
directory, and initially do not even need a directory. Currently their
networked ms doesn't allow them to save at all, with any surety of finding
their work.
Here it might be simplist to just hide the widgets in GtkFileSelection that you
don't want them to have. By doing
gtk_widget_hide (GTK_FILE_SELECTION (filesel)->dir_list);
should remove the directory list. There's other widgets in it that you might not
want, you could look in gtkfilesel.h to see all the ones that are there.
Note that the chances are this isn't going to be compatible when Gtk2 comes out,
so if you are concerned about that, then maybe creating your own file selector
widget might be the best way to do it.
If you know a fine URL or book on this topic please advise me.
Honestly I'd prefer to find out myself how to use it.
If the resources aren't readilly to hand please mail me your code, but I
cope best with a project based approach like eric's, he just happens not to
have dealt with these topics.
Hmmm, Havoc Pennington's GTK/GNOME Advanced Development describes how to write
custom widgets pretty well. The URL for it is on developer.gnome.org somewhere.
iain
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]