Re: How to stop signal in the folowing case?

2004-05-12 Thread J. Ali Harlow
On 2004.05.11 14:01 Paul Davis wrote:

this doesn't cause never ending recursion if MY_VALUE is a single
value. gtk_spin_button_set_value (foo, val) does nothing if val is
equal to the current value.
this is a classic problem for Model-View-Controller programming, and
blocking the signal is not normally the right way to deal with it.
It isn't? Oh dear.

I have a very similar problem at the moment with a model containing
a floating point variable and two controllers: a GtkHScale and a
GtkSpinButton. The controllers are added to the model as subscribers.
This works fine if you use the spin button to change the variable -
the hscale moves to match and it all looks very nice. Clicking in the
gutter of the hscale also works. The problem is if you move the hscale
by dragging it. This causes an oscillation between two values (one
int and a close floating point number). I assume that the spin button
is reacting to having it's adjustment set to a non-integer value by
rounding it and something similar is happenind with the hscale.
I was planning to simply lock the value in the model during the
publishing phase to solve the problem, but it sounds as though that
might not be the best approach. So, what _should_ I be doing?
Cheers,

--
J. Ali Harlow
[EMAIL PROTECTED]
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Installing GTK+ on MSW - help!!

2004-05-12 Thread Dov Grobgeld
(I'm taking the freedom to CC to the gtk-list as the issue may be of
general interest.)

Yes, you may use cygwin for compiling. You might want to have a look
at the following file for an example:

   http://cvs.gnome.org/viewcvs/giv/giv/makefile.mingw?view=markup

This makefile assumes that the gtk developer package has been unzip'd
in /usr/local under cygwin. Especially note the -mms-bitfields
-mno-cygwin flags that are necessary in order to get the executable
not to be dependent on the GPL'd cygwin.dll .

Regarding my earlier comment on the use of nsis for making an install
program, you may want to have a look on:

   http://cvs.gnome.org/viewcvs/giv/giv/giv.nsi?view=markup

This creates an installation routine that is dependent on the 
installation of the Gtk runtime package.

Regards,
Dov

On Tue, May 11, 2004 at 04:17:47PM -0700, Jamil wrote:
 Wow!
 You just saved me a whole lot of time and effort. Thanks man!!
 Look, just one more question, I am compiling using cygwin, would that be
 ok with the binary package of GTK+ you're suggesting?
 
 TIA
 
 -Original Message-
 From: Dov Grobgeld [mailto:[EMAIL PROTECTED] 
 Sent: May 11, 2004 3:57 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Installing GTK+ on MSW - help!!
 
 If you don't explicitely want to, you don't need to compile gtk in
 order to compile against it under Windows. You can just grab the 
 precompiled gtk+-libraries from:
 
http://www2.arnes.si/~sopjsimo/gimp/stable.html
 
 Get Gtk+2 for Windows as well as the Developer files at the bottom
 of the page. (Isn't there a FAQ about this somewhere?)
 
 Possibly you also have to manually set up pkg-config to give the
 correct --cflags and --libs paths afterwards. I don't remember 
 exactly what I did.
 
 (I also recommend creating an installation e.g. with the NSIS installer
 to make it really easy for your client.)
 
 Regards,
 Dov
 
 On Tue, May 11, 2004 at 12:15:47PM -0700, Jamil wrote:
  Oops! Sorry for the HTML stuff
  Here we go again.
  I am in the process of installing GTK+ in my computer and as you know
  there are other libraries that have to be installed in advance.
  
  I am now trying to install libiconv-1.9.1 but I get an error that has
  thrown me off, that is because the OS I am installing is a WinXPensive
  using CYGWIN. I know, I know, but I am only doing this because a
 client
  wants one of my applications to work on the bloodies OS. I am really a
  Penguin kind of guy.
  
   
  
  Any way, here is the problem.
  
  Compiler
  
  
  
   Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
  
  Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld
  --with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
  --libdir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man
  --infodir=/usr/share/info
  --enable-languages=c,ada,c++,f77,pascal,java,objc --enable-libgcj
  --enable-threads=posix --with-system-zlib --enable-nls
  --without-included-gettext --enable-interpreter
 --enable-sjlj-exceptions
  --disable-version-specific-runtime-libs --enable-shared
  --disable-win32-registry --enable-java-gc=boehm
  --disable-hash-synchronization --verbose --target=i686-pc-cygwin
  --host=i686-pc-cygwin --build=i686-pc-cygwin
  
  Thread model: posix
  
  gcc version 3.3.1 (cygming special)
  
   
  
  Error
  
  ~
  
   /usr/bin/install: cannot remove `/usr/lib/../bin/cygiconv-2.dll':
  Permission denied
  
  make[1]: *** [install] Error 1
  
  make: *** [install] Error 2
  
   
  
  Can any one help??
  
   
  
  Thanks folks!!
  ___
  gtk-list mailing list
  [EMAIL PROTECTED]
  http://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Replacement of GtkOptionMenu by GtkOptionBox

2004-05-12 Thread Jean Bréfort
Hi,

I am currently  trying to repplace occurrences of the deprecated
GtkOptionMenu by GtkComboBox. I would like to know if it is possible to
make one of the options insensitive. The following code comes from
gnumeric (src/dialogs/dialog-stf-export.c). 


   gtk_widget_set_sensitive (
   GTK_WIDGET (g_list_nth_data (GTK_MENU_SHELL 
 (gtk_option_menu_get_menu (state-format.transliterate))-children,
   TRANSLITERATE_MODE_TRANS)),
   FALSE);*/

With which code can I replace this to obtain the same behavior?

Regards,

Jean


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Changing property from RC file

2004-05-12 Thread Roger Leigh
On Sat, May 08, 2004 at 10:19:27AM -0500, Canek Peláez Valdés wrote:
 Hi; I want to know if it's possible to change some Widget's property
 through a RC file. I want that my invisible char in entries be a little
 circle, not an asterisk. I've a screen shot:

What about the invisible char property of GtkEntry?  You could set it
in your gtkrc.  From the docs:

invisible-char (guint : Read / Write) 
The character to use when masking entry contents (in password mode).


-- 
Roger Leigh

Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


configure can't find libjpeg.so

2004-05-12 Thread Mike
Howdy,

New to this list. I actually subscribed but haven't rec'd the (automated)
response yet. So feel free to reply to me directly. If I get a solution I'll
post a summary.

Trying to configure gtk+-2.4.1 on Tru64 5.1B unix. Configure exits with:

checking for tiffio.h... yes
checking for jpeg_destroy_decompress in -ljpeg... no
configure: WARNING: *** JPEG loader will not be built (JPEG library not
found) ***
configure: error:
*** Checks for JPEG loader failed. You can build without it by passing
*** --without-libjpeg to configure but some programs using GTK+ may
*** not work properly
bash-2.05b#

Libjpeg.so is buried in /opt/java131/jre/lib/alpha/libjpeg.so, with a link
to it from /usr/shlib/libjpeg.so. But it definitely is there, I installed it
yesterday.

I spotted a prior thread on this but it ended with the user not having had
libjpeg.so anywhere on his computer; that is not the case with me.

Any ideas?

Thanks,

Mike
[EMAIL PROTECTED]



___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: configure can't find libjpeg.so

2004-05-12 Thread Jean Bréfort
Le mar 11/05/2004  23:41, Mike a crit :
 Howdy,
 
 New to this list. I actually subscribed but haven't rec'd the (automated)
 response yet. So feel free to reply to me directly. If I get a solution I'll
 post a summary.
 
 Trying to configure gtk+-2.4.1 on Tru64 5.1B unix. Configure exits with:
 
 checking for tiffio.h... yes
 checking for jpeg_destroy_decompress in -ljpeg... no
 configure: WARNING: *** JPEG loader will not be built (JPEG library not
 found) ***
 configure: error:
 *** Checks for JPEG loader failed. You can build without it by passing
 *** --without-libjpeg to configure but some programs using GTK+ may
 *** not work properly
 bash-2.05b#
 
 Libjpeg.so is buried in /opt/java131/jre/lib/alpha/libjpeg.so, with a link
 to it from /usr/shlib/libjpeg.so. But it definitely is there, I installed it
 yesterday.
 
 I spotted a prior thread on this but it ended with the user not having had
 libjpeg.so anywhere on his computer; that is not the case with me.

In such a situation, it is generally useful and instructive to consult
what went wrong in config.log. The error might come from the compiler 
(as missing headers?) or from the linker (as a missing library).

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: configure can't find libjpeg.so

2004-05-12 Thread Valdis . Kletnieks
On Tue, 11 May 2004 14:41:35 PDT, Mike [EMAIL PROTECTED]  said:

 Libjpeg.so is buried in /opt/java131/jre/lib/alpha/libjpeg.so, with a link
 to it from /usr/shlib/libjpeg.so. But it definitely is there, I installed it
 yesterday.

Let's see what the config.log file says about that test program.

One of 3 things happened:

1) You didn't have a -ljpeg listed in the command line for some reason.

2) It was there, but the system didn't look in /usr/shlib and/or there wasn't
a -L flag telling it where to look (doubful, as 'man ld' on my Tru64 box says
that /usr/shlib is the first place it looks).

3) It found the .so, but had issues with it's format or something and refused
to use it (possibly the test symbol jpeg_destroy_decompress wasn't found
because it wasn't included, or other similar build error).


pgp0.pgp
Description: PGP signature
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: configure can't find libjpeg.so

2004-05-12 Thread Valdis . Kletnieks
On Tue, 11 May 2004 14:41:35 PDT, Mike [EMAIL PROTECTED]  said:

 Libjpeg.so is buried in /opt/java131/jre/lib/alpha/libjpeg.so, with a link
 to it from /usr/shlib/libjpeg.so. But it definitely is there, I installed it
 yesterday.

Oh, and (4): go down that long /opt/ list, and verify all the permissions
are correct all the way down - wouldn't be the first time I've run into
a libfoo.so that was owned by 'user1' and mode 600, and user2 can't get
it to work... :)


pgp0.pgp
Description: PGP signature
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Replacement of GtkOptionMenu by GtkOptionBox

2004-05-12 Thread John Cupitt
Jean Bréfort wrote:
I am currently  trying to repplace occurrences of the deprecated
GtkOptionMenu by GtkComboBox. I would like to know if it is possible to
make one of the options insensitive. 
Hi, known bug and on the cards for 2.6, apparently.

http://bugzilla.gnome.org/show_bug.cgi?id=135875

I ran into this with save dialogs. You can select the separator in the popdown directory list, causing huge confusion.

John
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Changing property from RC file

2004-05-12 Thread Sven Neumann
Hi,

Roger Leigh [EMAIL PROTECTED] writes:

 On Sat, May 08, 2004 at 10:19:27AM -0500, Canek Peláez Valdés wrote:
  Hi; I want to know if it's possible to change some Widget's property
  through a RC file. I want that my invisible char in entries be a little
  circle, not an asterisk. I've a screen shot:
 
 What about the invisible char property of GtkEntry?  You could set it
 in your gtkrc.  From the docs:
 
 invisible-char (guint : Read / Write)   
 The character to use when masking entry contents (in password mode).

That's an object property, not a style property, so unless I missed
something, you can't set it from gtkrc.


Sven

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK configure can't find tiffio.h

2004-05-12 Thread Costello, John
I'm trying to configure gtk but it cannot seem to find the tiffio.h file. 

If I try it with the --without-libtiff it will skip it and give me a similar error for 
the jpeg package. I cannot seem to figure out why this is happening. Some info is 
below. How do I point it to correct directory where tiffio.h is? Any help is 
appreciated. 

--- Its giving me this error:

checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... no
checking tiffio.h presence... no
checking for tiffio.h... no
configure: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***
configure: error:
*** Checks for TIFF loader failed. You can build without it by passing
*** --without-libtiff to configure but some programs using GTK+ may

--- config.log says this:
configure:11709: $? = 0
configure:11720: result: yes
configure:11733: checking tiffio.h usability
configure:11742: gcc -c -g -O2 -Wall  conftest.c 5
configure:11770:20: tiffio.h: No such file or directory
configure:11745: $? = 1
configure: failed program was:
#line 11735 configure
#include confdefs.h

--- My tiff packages is installed in 
/usr/local/packages/tiff-v3.6.1/

--- My LD_LIBRARY_PATH is this:
/usr/dt/lib:/usr/lib:/usr/local/packages/jpeg-6b/lib:/usr/local/packages/tiff-v3.6.1/lib:/usr/local/packages/libpng-1.0.5/lib:/usr/local/packages/gcc-3.3.3/lib:/usr/local/packages/glib-2.4.0/lib:/usr/local/packages/atk-1.6.0/lib:/usr/local/packages/pango-1.4.0/lib:/vobs/RUNTIME/mtix/lib/SunOS:/usr/local/lib

--- PKG_CONFIG_PATH:
/usr/local/pkgconfig-0.15.0/bin:/usr/local/packages/glib-2.4.0/lib/pkgconfig:/usr/local/packages/atk-1.6.0/lib/pkgconfig:/usr/local/packages/pango-1.4.0/lib/pkgconfig

--- PATH:
/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin:/opt/ODI/ostore/bin:/usr/openwin/bin:/usr/dt/bin:/usr/proc/bin:/usr/xpg4/bin:/opt/SUNWspro/bin:/usr/java/bin:/opt/SUNWrtvc/bin/:/usr/ucb:/vobs/RUNTIME/mtix/bin/SunOS:/vobs/RUNTIME/mtix/scripts:/usr/local/bin:/usr/local/packages/gtk+-1.2.10/include:/vobs/COTS/libjpeg/jpeg-6b/include:/vobs/COTS/wxWindows-2.4.2/include:/usr/local/packages/glib-2.4.0/bin:/usr/local/packages/tiff-v3.6.1/include:/usr/local/packages/libpng-1.0.5/include:/usr/local/include:.

I am also running Solaris 8.

thanks,
John
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: GTK configure can't find tiffio.h

2004-05-12 Thread Costello, John
Nevermind, I figured out the problem,

I had to set LIBTIFF, LIBPNG and LIBJPEG to the packages' lib directories 



-Original Message-
From: Costello, John 
Sent: Wednesday, May 12, 2004 11:26 AM
To: [EMAIL PROTECTED]
Subject: GTK configure can't find tiffio.h


I'm trying to configure gtk but it cannot seem to find the tiffio.h file. 

If I try it with the --without-libtiff it will skip it and give me a similar error for 
the jpeg package. I cannot seem to figure out why this is happening. Some info is 
below. How do I point it to correct directory where tiffio.h is? Any help is 
appreciated. 

--- Its giving me this error:

checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... no
checking tiffio.h presence... no
checking for tiffio.h... no
configure: WARNING: *** TIFF loader will not be built (TIFF header files not found) ***
configure: error:
*** Checks for TIFF loader failed. You can build without it by passing
*** --without-libtiff to configure but some programs using GTK+ may

--- config.log says this:
configure:11709: $? = 0
configure:11720: result: yes
configure:11733: checking tiffio.h usability
configure:11742: gcc -c -g -O2 -Wall  conftest.c 5
configure:11770:20: tiffio.h: No such file or directory
configure:11745: $? = 1
configure: failed program was:
#line 11735 configure
#include confdefs.h

--- My tiff packages is installed in 
/usr/local/packages/tiff-v3.6.1/

--- My LD_LIBRARY_PATH is this:
/usr/dt/lib:/usr/lib:/usr/local/packages/jpeg-6b/lib:/usr/local/packages/tiff-v3.6.1/lib:/usr/local/packages/libpng-1.0.5/lib:/usr/local/packages/gcc-3.3.3/lib:/usr/local/packages/glib-2.4.0/lib:/usr/local/packages/atk-1.6.0/lib:/usr/local/packages/pango-1.4.0/lib:/vobs/RUNTIME/mtix/lib/SunOS:/usr/local/lib

--- PKG_CONFIG_PATH:
/usr/local/pkgconfig-0.15.0/bin:/usr/local/packages/glib-2.4.0/lib/pkgconfig:/usr/local/packages/atk-1.6.0/lib/pkgconfig:/usr/local/packages/pango-1.4.0/lib/pkgconfig

--- PATH:
/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin:/opt/ODI/ostore/bin:/usr/openwin/bin:/usr/dt/bin:/usr/proc/bin:/usr/xpg4/bin:/opt/SUNWspro/bin:/usr/java/bin:/opt/SUNWrtvc/bin/:/usr/ucb:/vobs/RUNTIME/mtix/bin/SunOS:/vobs/RUNTIME/mtix/scripts:/usr/local/bin:/usr/local/packages/gtk+-1.2.10/include:/vobs/COTS/libjpeg/jpeg-6b/include:/vobs/COTS/wxWindows-2.4.2/include:/usr/local/packages/glib-2.4.0/bin:/usr/local/packages/tiff-v3.6.1/include:/usr/local/packages/libpng-1.0.5/include:/usr/local/include:.

I am also running Solaris 8.

thanks,
John
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Changing property from RC file

2004-05-12 Thread Roger Leigh
On Wed, May 12, 2004 at 03:59:04PM +0200, Sven Neumann wrote:
 Hi,
 
 Roger Leigh [EMAIL PROTECTED] writes:
 
  On Sat, May 08, 2004 at 10:19:27AM -0500, Canek Peláez Valdés wrote:
   Hi; I want to know if it's possible to change some Widget's property
   through a RC file. I want that my invisible char in entries be a little
   circle, not an asterisk. I've a screen shot:
  
  What about the invisible char property of GtkEntry?  You could set it
  in your gtkrc.  From the docs:
  
  invisible-char (guint : Read / Write) 
  The character to use when masking entry contents (in password mode).
 
 That's an object property, not a style property, so unless I missed
 something, you can't set it from gtkrc.

Sorry, that was wishful thinking on my part.  Having both has-frame
and invisible-char as style properties would be very nice.


-- 
Roger Leigh

Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


compiling gtk 2.2.0

2004-05-12 Thread Costello, John
Has anyone compiled GTK on Solaris? I had no trouble with compiling it on Linux but 
Solaris is giving me many problems. 

I got configure to finally finish but now for some reason when I run make, it is not 
including my libpng/include tiff/include or jpeg/include directories when it tries to 
compile io-png.lo, io-tiff.lo, and io-jpeg.lo, respectively. I manually compiled those 
adding in the include directories but now when I get to Making all in stock-icons 
(in gtk+-2.2.0/gtk/stock-icons) it's giving me this problem:

GDK_PIXBUF_MODULE_FILE=../../gdk-pixbuf/gdk-pixbuf.loaders 
../../gdk-pixbuf/gdk-pixbuf-csource  \
   --raw --build-list stock_add_16  ./stock_add_16.png 
  stock_add_24./stock_add_24.png   
stock_align_center_16  ./stock_align_center_16.png  
stock_align_center_24   ./stock_align_center_24.png  
stock_align_justify_16 ./stock_align_justify_16.png 
stock_align_justify_24  ./stock_align_justify_24.png 
stock_align_left_16 ./stock_align_left_16.png
stock_align_left_24./stock_align_left_24.png 
stock_align_right_16   ./stock_align_right_16.png   
stock_align_right_24./stock_align_right_24.png   stock_apply_20
 ./stock_apply_20.png stock_cancel_20 
./stock_cancel_20.png
stock_dnd_multiple_32   ./stock_dnd_multiple_32.png  
stock_bottom_16./stock_bottom_16.png
stock_bottom_24 ./stock_bottom_24.png
stock_cdrom_16 ./stock_cdrom_16.png  stock_cdrom_24
 ./stock_cdrom_24.png stock_clear_24 
./stock_clear_24.png  stock_close_20 
./stock_close_20.png stock_close_24  
./stock_close_24.png stock_colorselector_24 
./stock_colorselector_24.png stock_color_picker_25   
./stock_color_picker_25.png  ./gtkstockpixbufs.h ||\
   ( rm -f ./gtkstockpixbufs.h  false )
failed to load ./stock_add_16.png: Couldn't recognize the image file format for file 
'./stock_add_16.png'
*** Error code 1
make: Fatal error: Command failed for target `gtkstockpixbufs.h'




Any ideas?

thanks,
John
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [gtkmm] Entry() popup menuitems

2004-05-12 Thread Murray Cumming
On Wed, 2004-05-12 at 13:41 -0600, Diana Esch-Mosher wrote:
 Is there any convenient way to delete the input methods or the insert
 unicode control character items from the Entry() right-click popup?  If
 so - how do I get the handle to this menu for a treeview text cell? 

It's probably not easy. But I'm CCing this to [EMAIL PROTECTED] in case
anybody knows of a way.

-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Top Level Window - Eliminating Rollup / Resize / Minimize / Maximize, ect

2004-05-12 Thread Chris Caron (OTI)
Without the nice functionality that Gtk 2.4 offers, is there still an
old fashioned way of eliminating these menu options from the windows
in GNOME using GTK in C.
Basically I want to remove the whole feature that the X Windows Manager 
offers at the top left.  The drop down that exists on all windows.
I need it to be disabled, or all submenus removed/disabled.  Is this 
possible at all?

The commented out lines below list functions that the newer GTK library
(2.4) offers.  But presently that isn't an option for me to upgrade that.
I basically want to PIN the main window to the desktop, without any
ability to move it, roll it up, or what have you.
Hope someone out there can help :)

/* Main Gui creation */ 
mainwin = gnome_app_new(PROG_NAME, _(PROG_NAME));
 gtk_container_set_border_width(GTK_CONTAINER(mainwin),0);
gtk_object_set (GTK_OBJECT (mainwin),GtkWindow::type,
GDK_WINDOW_TOPLEVEL,NULL);
gtk_window_set_default_size(GTK_WINDOW(mainwin),gdk_screen_width
(),gdk_screen_height ()-24);
gtk_window_set_policy (GTK_WINDOW(mainwin), FALSE,FALSE,FALSE); /* not
resizable */
 gtk_window_set_position(GTK_WINDOW(mainwin),GTK_WIN_POS_CENTER);
gtk_signal_connect(GTK_OBJECT(mainwin),
delete_event,GTK_SIGNAL_FUNC(close_gui_event), NULL);
gtk_signal_connect(GTK_OBJECT(mainwin),
destroy_event,GTK_SIGNAL_FUNC(close_gui_event), NULL);
//gtk_window_stick(GTK_WINDOW(mainwin));
//gtk_window_maximize(GTK_WINDOW(mainwin));
//gtk_window_fullscreen(GTK_WINDOW(mainwin));
  //   gtk_window_set_decorated(GTK_WINDOW(mainwin),FALSE);
gnome_app_create_menus(GNOME_APP(mainwin), mainmenu);
sbar = gnome_appbar_new(FALSE, TRUE, GNOME_PREFERENCES_USER);
gnome_app_set_statusbar(GNOME_APP(mainwin), sbar);
gnome_app_install_menu_hints(GNOME_APP(mainwin), mainmenu);
... and so on

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [gtkmm] Entry() popup menuitems

2004-05-12 Thread Murray Cumming
On Wed, 2004-05-12 at 15:26 -0600, Diana Esch-Mosher wrote:
 If I override the button_press for the Entry() I should be able to get
 rid of the menu entirely - which would be fine. Since this Entry() is in
 a treeview how do I get the handle to the Entry() widget to do this? I'm
 already overriding the button_press for the treeview and this is not
 sufficient to intercede.

TreeViews use CellRenderers. You might need to derive a custom
cellrenderer, from the existing cellrenderer. Then you must specify the
use of that cellrenderer instead of using gtkmm's
TreeView::append_column_editable() convenience template:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch08s02.html#id2494853

There is a custom cellrenderer example in gtkmm, in
examples/customcellrenderer/.

But this is a lot of work, and if you just hide the whole context menu,
I think people will miss the cut, copy, and paste menu items. I doubt
this is worth the bother.

 On Wed, 2004-05-12 at 15:49, Murray Cumming wrote:
  On Wed, 2004-05-12 at 13:41 -0600, Diana Esch-Mosher wrote:
   Is there any convenient way to delete the input methods or the insert
   unicode control character items from the Entry() right-click popup?  If
   so - how do I get the handle to this menu for a treeview text cell? 
  
  It's probably not easy. But I'm CCing this to [EMAIL PROTECTED] in case
  anybody knows of a way.
 -- 
 Diana Esch-Mosher [EMAIL PROTECTED]
 Los Alamos National Laboratory
 
-- 
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


It is fonts yet again

2004-05-12 Thread lrcgtk
I used the pango font_name to set the fonts of almost all of the
widgets in my program.

However, the menu fonts are immune to change. 

I've tried just about every thing I could think of to set the font
using the gtkrc file, however, they stubbornly refuse to change. 

I have 48 buttons in a table. Any time I click on one of them I want
to be able to choose from three choices: manual, auto on, or auto off.

It is implemented as a 2 x 24 table.
Each item in the table is a menu.

All is well and good. They are of the size, color and font that I want
(for now anyways).

When I click on each of these menus (menus of one item), It brings up
a menu of three items. Which is how it should be. It's just that the
submenu is of a smaller font than I want. 

Are fonts controlled differently in submenus than they are elsewhere? 


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list