Re: I18n problem

2003-02-11 Thread Andrew E. Makeev
Sven Neumann wrote:


Hi,

"Andrew E. Makeev" <[EMAIL PROTECTED]> writes:

 

I have problem to get STOCK items internationalized on my machine.
(Sorry, couldn't take a look at FAQs, it looks like GTK site is down
for now.)

What exactly should I set up to get STOCK items have appeared in
Russian?  For now they are appearing all in English.
   


it should work transparently, there is nothing you have to do. Is I18N
working for non-stock messages? Are you sure that your locale setting
is valid and supported?


Salut, Sven

 

Forget about it.
It was spec file again :-\ .

Unfortunatelly, we gonna live with it.

Regards,
-andrew


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



Problems compiling gtk-2.2.1

2003-02-11 Thread Manolis Paissios
Hi
I have trouble compiling gtk-2.2.1 
I have succesfully installed glib 2.2.1 pango 1.2.1 and atk-1.2.0
Libpng-1.2.5 is also installed on the system but
Gtk fails in the gdk-pixbuf directory whith the following error:

---
creating test-gdk-pixbuf
LOADERS=`echo libpixbufloader-*.la` ; \
if test "x$LOADERS" != 'xlibpixbufloader-*.la' ; then \
echo "Writing a gdk-pixbuf.loader file to use when running examples before 
installing gdk-pixbuf."; \
../gdk-pixbuf/gdk-pixbuf-query-loaders $LOADERS > ./gdk-pixbuf.loaders ;\
else \
echo "No dynamic modules found; will use only static modules for uninstalled 
example programs."; \
touch gdk-pixbuf.loaders; \
fi
Writing a gdk-pixbuf.loader file to use when running examples before installing 
gdk-pixbuf.
make[1]: *** [gdk-pixbuf.loaders] Error 139
make[1]: Leaving directory `/tmp/downloads/GTK-GNOME/GTK/gtk+-2.2.1/gdk-pixbuf'
make: *** [all-recursive] Error 1
---

if i try a make again compile advances to other dirs but later i get errors in the gtk 
and demo directories
concerning png files of the following type"

---
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'
---

Thanks in advance for any help
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



HELP MEEE !!!!!!!!!! HOW TO SAVE THE LOADED IMAGE !!!!

2003-02-11 Thread IT_Beam

HAI FRIENDS,
I HAVE CREATED AN IMAGE VIEWER WITH GTK2..
I COULD LOAD AN IMAGE..WITH FILE OPEN..

BUT, HOW CAN I SAVE THE SAME IMAGE TO A PARTICULAR
DIR???
PLS I NEED CODINX A LG FOR IT...
CHECK IS THIS CODING WRITE?

void ok_button_pressed_save(GtkWidget *widget,
gpointer data){
  
char *tempp;
  int length;
 
tempp=gtk_file_selection_set_filename(GTK_FILE_SELECTION(filesave));
  length=strlen(tempp);

  
  
}

void display_filesaveAs(GtkWidget *widget,gpointer
data){
  
  filesave=gtk_file_selection_new("Save");
 
//gtk_file_selection_complete(GTK_FILE_SELECTION(filesave),"*.*");
 
gtk_window_set_position(GTK_WINDOW(filesave),GTK_WIN_POS_CENTER);
  gtk_widget_show(filesave);

 
gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(filesave)->ok_button),"clicked",GTK_SIGNAL_FUNC(ok_button_pressed_save),data);

 
gtk_signal_connect_object(GTK_OBJECT(GTK_FILE_SELECTION(filesave)->ok_button),"clicked",GTK_SIGNAL_FUNC(gtk_widget_destroy),GTK_OBJECT(filesave));
 
gtk_signal_connect_object(GTK_OBJECT(GTK_FILE_SELECTION(filesave)->cancel_button),"clicked",GTK_SIGNAL_FUNC(gtk_widget_destroy),GTK_OBJECT(filesave));
   
  
}

OR I HAVE TO USE 
tempp=gtk_file_selection_get_filename(GTK_FILE_SELECTION(filesave));

instead of 'set'...
pls i need ur help...HELP ME ...

THANX A LOT!!



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



TreeView performance

2003-02-11 Thread Tim Flechtner
hello all,
  i am writing a trading application that displays updates to financial 
contracts in real time, using a TreeView widget.  there can be four to 
five hundred updates coming in a second, and under this load my 
application takes about 60% of the cpu time of my dual processor 2.53 
mhz box.  through experimentation, i noticed that when i commented out 
the code which updates text in its various columns (but all the other 
processing, and rendering of colors still occurs), my cpu usage falls to 
 2%.
  this leads me to believe that the TreeView widget just wasn't 
intended to be used for this sort of purpose.  i'm just writing in the 
hopes that maybe there's something easy i could do which would lose me 
about 55% of the cpu usage. :)  this is not a criticism of the widget at 
all, i think its really flexible, and once the learning curve has been 
climbed, convienent to use (which is why i want to do so :) ).  any 
comments are greatly appreciated.

  i'm posting to both the gtk and gtkmm list, because i'm using gtkmm, 
but am not sure if the processing overhead is being incurred in the 
template instantiations of my columns or the the core tree_view widget.

thanks!
-tim

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


Trouble installing gtk+-2.2.1

2003-02-11 Thread Luis Miguel








Greets!

 

Im currently installing
gtk+-2.2.1 and the problem is that in the ./configure
line it outputs an error:

 

checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1...
Package pango was not found in the pkg-config search path.

Perhaps
you should add the directory containing `pango.pc' 

to the PKG_CONFIG_PATH
environment variable

No
package 'pango' found

 

configure: error: Library
requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config
can find them.

 

Other
info:

 

echo $PKG_CONFIG_PATH

/usr/local/bin/lib/pkgconfig:
/usr/local/bin/lib/pkgconfig

 

find / -iname “pango.pc”

/usr/local/bin/lib/pkgconfig/pango.pc

 

 

What must I do to pango be detected by pkg-config?

 

[][]Thx in advance








Re: TreeView performance

2003-02-11 Thread Valdis . Kletnieks
On Tue, 11 Feb 2003 09:02:10 CST, Tim Flechtner <[EMAIL PROTECTED]>  said:
>i am writing a trading application that displays updates to financial 
> contracts in real time, using a TreeView widget.  there can be four to 
> five hundred updates coming in a second, and under this load my 
> application takes about 60% of the cpu time of my dual processor 2.53 

Optimization:

The screen refresh is almost certainly 75 times a second or less, and
you can almost certainly get away with actually updating only 20-30 times
a second.

>   through experimentation, i noticed that when i commented out 
> the code which updates text in its various columns (but all the other 
> processing, and rendering of colors still occurs), my cpu usage falls to 2%.

Try adding code that says "only update the text every 20 data updates, or at most
20 times a second".



msg12348/pgp0.pgp
Description: PGP signature


Automated regression testing of GUIs written with gtk+

2003-02-11 Thread Richard Shann
Hi,
There doesn't seem to have been much discussion of automated testing of 
applications written using gtk+. I have

written a small example which exploits the gtk_key_snooper_install() 
function. The installed snooper records keypresses storing them in a 
file. On playback the snooper function substitutes keypresses from the 
file for the

keypresses actually made by the tester. (So this is not quite automated, 
unless you put a small lead weight on the Enter key!)

I have two main questions:

1) would it be possible to have a gtk_event_snooper_install() function 
to allow a similar stunt to be performed on more general events - I 
wrote such a thing (for Tcl/Tk) about five years ago, it was quite a 
hairy experience. Any takers?

2) can I get rid of my small lead weight? That is, would something like 
gtk_main_do_event() or XSendEvent() enable  me to truly automate the tests?

Attached is a small example of such a snooper function for those who 
prefer C to English - it doesn't cope with sending keypresses too fast 
for the window drawing functions to keep up, but it gives the idea. It 
is GPL of course.

Richard Shann








/* snooper function installed by gtk_key_snooper_install (snooper, testfilename)
* if a file exists of name testfilename then it supplies keypresses to substitute
* for the ones typed by the user - ie it "plays back" the test. If not it creates
* a new test by storing each keypress from the user into a file of that name.
* In this version the speed of playback is limited, otherwise keypresses may be sent
* to the wrong window.
*/
#include 
#include 
static gint snooper(GtkWidget *grab_widget, GdkEventKey *event, gpointer func_data)
{
 static FILE *fp; /* file containing keypress events */
 static gboolean recording = FALSE; /* we are recording keystrokes */
 GdkWindow *window;
 guint32 time;
 gchar *string;
 gchar *testfile = (gchar*)func_data;/* name of test file containing keypresses */
 
 window=event->window;
 time=event->time;
 if(!fp)
   fp=fopen(testfile, "r");
 if(!fp) /* it is a new file, so we are recording a new test */ {
   fp=fopen(testfile, "w");
   recording = TRUE;
 }
 g_assert(fp); /* can't open the file */
 if(recording) {
   fwrite(event,sizeof(*event), 1, fp);
   fwrite(event->string, event->length, 1, fp);
 } else /* playing back keystrokes from file */ {
   fread(event,sizeof(*event), 1, fp);
   string = (gchar*)g_malloc(event->length+1); /* memory leak? - ok for test rig */
   g_assert(string);
   fread(string, event->length, 1, fp);
   *(string+event->length) = 0; /* null terminate */
   /* freshen the stale pointers and time */
   event->window = window;
   event->time = time;
   event->string = string;
 }
 
 return 0; /* allow the keypress to be acted on normally */
}



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


Re: Automated regression testing of GUIs written with gtk+

2003-02-11 Thread Soeren Sandmann
Richard Shann <[EMAIL PROTECTED]> writes:

> 2) can I get rid of my small lead weight? That is, would something
> like gtk_main_do_event() or XSendEvent() enable  me to truly automate
> the tests?

Take a look at the gnome-test-tool, which you can check out of the
gnome cvs.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



text entry "growing" (Long)

2003-02-11 Thread Carl B. Constantine
In the screenshot I sent around yesterday
 you see
a text entry field in the upper right quadrant. All is well, except that
when I input text into this field, it "grows" out and that's even before
the text reaches the edge of the field. I don't get it.

That upper quadrant is a frame with a table layout container. That field
is spanning a few rows and columns. I've tried it with X Expand property
both on and off. The effect isn't as pronounced with it off but it does
still happen and grows the rest of my layout off the edge of the window.

So, what can I do to stop/fix this? Here's my glade file with only the
dispatcher window. Any help is muchly appreciated.


 
http://glade.gnome.org/glade-2.0.dtd";>




  1000
  665
  True
  True
  Dispatcher
  GTK_WINDOW_TOPLEVEL
  GTK_WIN_POS_NONE
  False
  True
  False
  

  

  True
  False
  0

  

  True
  10
  11
  False
  0
  0

  

  True
  Due Out
  False
  False
  GTK_JUSTIFY_LEFT
  False
  False
  0
  0.5
  5
  2


  0
  1
  4
  5
  

  

  

  True
  Schedule
  False
  False
  GTK_JUSTIFY_LEFT
  False
  False
  0
  0.5
  7
  5


  0
  1
  1
  2
  

  

  

  True
  0
  0.5
  GTK_SHADOW_ETCHED_IN

  

  True
  True
  GTK_POLICY_NEVER
  GTK_POLICY_ALWAYS
  GTK_SHADOW_NONE
  GTK_CORNER_TOP_LEFT

  

  True
  True
  True
  False
  False
  True

  

  

  

  True
  Trip Queue
  False
  False
  GTK_JUSTIFY_LEFT
  False
  False
  0.5
  0.5
  0
  2


  label_item

  


  2
  3
  1
  3
  fill
  fill

  

  

  True


  1
  2
  1
  10
  4
  fill

  

  

  True
  GTK_ORIENTATION_HORIZONTAL
  GTK_TOOLBAR_ICONS
  True

  

  True
  button1
  True

  

  

  True
  button2
  True

  

  

  True
  button3
  True

  

  

  True
  button4
  True

  

  

  True
  button5
  True

  

  

  True
  button6
  True

  

  

  True
  button7
  True

  


  0
  3
  0
  1
  

  

  

  True
  Off Shift
  False
  False
  GTK_JUSTIFY_LEFT
  False
  False
  0
  0.5
  5
  6


  0
  1
  7
  8
  

  

  

  True
  True
  GTK_POLICY_NEVER
  GTK_POLICY_NEVER
  GTK_SHADOW_NONE
  GTK_CORNER_TOP_LEFT

  

  True
  True
   

glib event loop thrashing on solaris x86?

2003-02-11 Thread Tim Flechtner
hi!
  this is a somewhat vague question, which i apologize for.  i'm just 
trying for suggestions of where i should look to find my glitch:

i am running on a dual processor x86 solaris 8 box, and my gtkmm 
application seems to spend a lot of time thrashing in the glib event 
loop.  truss reveals lots of this:

ioctl(4, FIONREAD, 0x0804657C)= 0
gettimeofday(0x08046584)= 0
poll(0x0832D400, 2, 0)= 0
gettimeofday(0x080465A4)= 0
ioctl(4, FIONREAD, 0x0804657C)= 0
gettimeofday(0x08046584)= 0
poll(0x0832D400, 2, 0)= 0
gettimeofday(0x080465A4)= 0

top reports my cpu usage at around 60%, which seems very high for the 
amount of processing that is going on.  has anyone run into a similar 
situation?  if so, can you suggest things i might be doing wrong?

thanks!
-tim

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


Problem while using framebuffer... Help

2003-02-11 Thread Binoj VB








Hello, 

 

I am new to Linux GUI programming (also Linux) and I have a
requirement where I should use frame buffer in-order to bye-pass the Xserver. Currently I am using RH 8, and I am confused with
the GTK versions that I need to select in-order to get the display. Also
another requirement is I should use only GTK ***

 

I need to know whether I should use the combination of GTK
and DirectFB or only GTK+-2.2.0. or
any thing else? 

 

I installed GTK+-2.2 after struggling a lot. I have to replace
Glib, ATK, Pango and a few others to get the same
working. I was able to create GUI’s on Xserver
and was not able to run in init 3 mode.

Another Problem I faced here is when
I restarted the machine in init 5 mode the whole system went into a toss. I guess
gnome is looking for some other libraries. 

 

Now I installed RH 8 on another machine and downloaded GTK+
on DirectFB with great expectation. 

 

Configure –enable-debug=no –with-gtktarget=Linux-fb
–disable-shadowfb –disable-module
–with-included-loaders=xpm,png,jpeg

I was through with the installation and the above is the configuration
options that I choose. 

 

Then I did a make and make install. 

 

Now I found the /dev/fb is not
active and there after I activated it.

 As my video card
is ATI MACH 64, I used the module atyfb.o. (Using insmod atyfb.0)

Still there were problems and I had to recompile the kernel.
I recompiled selecting the options specified here

 



http://www.linux.org/docs/ldp/howto/Framebuffer-HOWTO-5.html



5.6 Got a
ATI card? 

[Note:
This information is at best, only second-hand or third-hand, since I don't have
an ATI card to test it with. Feel free to correct me if I am wrong or flame
me!] 8) 

ATI cards
can be used with the vesafb driver, but you may or
may not have problems, depending on how horribly broken the card is.
Fortunately, there is the atyfb framebuffer
driver available to use. Assuming you are using menuconfig,
do the following: 

Go into
the Code Maturity Level menu, and enable the prompt for development and/or
incomplete drivers [note this may change for future kernels - when this
happens, this HOWTO will be revised] 

Go into
the Console Drivers menu and select the following: 


 VGA Text Console 
 Video Selection
 Support 
 Support for frame
 buffer devices (experimental) 
 ATI Mach64 display
 support 
 Advanced Low Level
 Drivers 
 Select Mono, 2bpp,
 4bpp, 8bpp, 16bpp, 24bpp and 32bpp packed pixel drivers 
 Optionally, select the
 following, if you wish to use the compiled in fonts 
 
  Select compiled-in
  fonts 
  Select Sparc console 12x22 font 
 


Rebuild
your kernel. Then you will need to modify your lilo.conf
file to enable the atyfb device. The quickest and
simplest way is re-use the following 

# LILO configuration fileboot = /dev/hda3delay = 30promptvga = 792    # You need to do this so it boots up in a sane state# Linux bootable partition config beginsimage = /vmlinuz  append = "video=atyfb:mode:1024x768,font:SUN12x22"  root = /dev/hda3  label = Linux  read-only # Non-UMSDOS filesystems should be mounted read-only for checking

The line
"atyfb:mode:1024x768,font:SUN12x22"
indicates you are selecting a 1024x768 mode. 

Lastly, you'll
need to create the framebuffer device in /dev. You
need one per framebuffer device, so all you need to
do is to type in mknod /dev/fb0 c 29 0 for the first
one. Subsequent ones would be in multiples of 32, so for example to create
/dev/fb1, you would need to type in mknod /dev/fb1 c
29 32, and so on up to the eight framebuffer device (mknod /dev/fb7 c 29 224) 

video=atyfb:[option[,option[,option...]]] 

where
option is one of the following 


 font:STRING
 selects the built-in font (compiled into the kernel) 
 noblink
 Turns off blinking 
 noaccel
 Disables acceleration 
 vram:ULONG
 Tells the atyfb driver how much memory you have 
 pll:ULONG
 Unknown 
 mclk:ULONG
 Unknown 
 vmode:ULONG
 Unknown 






·
cmode:ULONG
- sets depth - 0, 8, 15, 16, 24 and 32 





After all
these steps I am able to start the GUI, but the mouse and key board was not
detecting. 

 

I configured
the options GTK_MOUSE_TYPE=ps2 ; GTK_KEYBOARD_TYPE=raw

 

Still there were
problems and I was using the microsoft
USB mouse. Then I remove the Microsoft USB mouse, and connected an ordinary ps2
mouse and restarted then, mouse started working. 

 

I tried to
use my key board then I got the message.

  -> xlate_translate() NIY

 

I looked
into the code (Gtk + Directfb)
this function is not implemented. 

 

The same
function is implemented in GTK+-2.2.0. Now I am totally confused.

Any body who
have already undergone through this tedious Installation process, 

Please send
me the details of libs/packages their versions etc
and steps to follow.  

 

Man, I am
really struggling as not much documentation is available, 

Please help
me.

 

Thanks a
lot, 

Binoj V B

 

  








Re: [Glade-users] extra spaces in layout question

2003-02-11 Thread Damon Chaplin
On Wed, 2003-02-05 at 05:01, Carl B. Constantine wrote:
> I have a window I'm building in Glade 2 where I've done most of the
> widget placement in it. However, there are a few spots where there is
> nothing, and so appear as gray squares in Glade. Is this OK or do I
> *have* to put something in each potential container location? is there a
> spacer widget that all it does is take up space?

You are free to leave some spaces empty. Glade will just skip them when
generating code, and libglade should ignore them.

Damon

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



libtool error : static compiling gtkmm-2.0.2

2003-02-11 Thread Vishal Modak
hi!!!

I am trying to compile static libraries for gtkmm-2.0.2..

I have the following ackages..
gtk-2.0.9,
glib-2.0.7,
atk-1.0.4,
pango-1.0.4
libsigc++-1.2

I have succesfully created the static libraries for the above 
packages

for gtkmm-2.0.2..i did this

=> configure --enable-static(no problems)

=> make
make  all-recursive
make[1]: Entering directory `/root/newtools/gtkmm-2.0.2'
Making all in tools
make[2]: Entering directory `/root/newtools/gtkmm-2.0.2/tools'
Making all in m4
make[3]: Entering directory 
`/root/newtools/gtkmm-2.0.2/tools/m4'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/newtools/gtkmm-2.0.2/tools/m4'
Making all in pm
make[3]: Entering directory 
`/root/newtools/gtkmm-2.0.2/tools/pm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/newtools/gtkmm-2.0.2/tools/pm'
Making all in extra_defs_gen
make[3]: Entering directory 
`/root/newtools/gtkmm-2.0.2/tools/extra_defs_gen'
/bin/sh ../../libtool --mode=link g++  -g -O2 -Wall  -o 
libgtkmm_generate_extra_defs-2.0.la -rpath /usr/local/lib  
-version-info 2:1:1  generate_extra_defs.lo -Wl,--export-dynamic 
-L/usr/local/lib -lsigc-1.2 -lgobject-2.0 -lgmodule-2.0 -ldl 
-lglib-2.0   -Wl,--export-dynamic -L/usr/local/lib 
-L/usr/X11R6/lib -lsigc-1.2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lXft -lXrender -lXext 
-lfreetype -lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 
-lgmodule-2.0 -ldl -lglib-2.0

grep:/root/test/lib/libatk-1.0.la : no such file or directory
sed:/root/test/lib/libatk-1.0.la : no such file or directory
libtool: link: /root/test/lib/libatk-1.0.la : is not a valid 
libtool archive

make[3]: Leaving directory 
`/root/newtools/gtkmm-2.0.2/tools/extra_defs_gen'
make[2]: Leaving directory `/root/newtools/gtkmm-2.0.2/tools'
make[1]: Leaving directory `/root/newtools/gtkmm-2.0.2'
===

i dont understand this..the .la file is in usr/local/lib..why is 
it searching in /root/test/

however i did compile atk-1.0.3 using the --prefix=$HOME/test..but 
after
that i deleted the test directory

created a fresh untar from atk-1.0.3.tar.gz...this time i did not 
give the prefix..
created a fresh untar from gtkmm-2.0.2.tar.gz
when i give `make` in gtkmm-2.0.2..it still give me this error

somehow or the other the prefix is still stored in some 
variable..and my gtkmm-2.0.2 is using that to search for atk .la 
file

can u tell me how can i get around this..

is there any other way to do..than this,,

hoping to hear from u soon

regards
vishal







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


Library size on solaris

2003-02-11 Thread Florin Iucha
Hello,

I have compiled gtkmm-2.2.0 on Solaris8 using gcc-3.2.1 . 

Out of curiosity I did a 
   ls -l libgtkmm* in the lib directory. Look what I've got:

> ls -l libgtkmm*
-rwxr-xr-x   1 fiucha   pdmusr  1205 Feb  9 12:25 libgtkmm-2.0.la
lrwxrwxrwx   1 fiucha   pdmusr21 Feb  9 12:25 libgtkmm-2.0.so -> 
libgtkmm-2.0.so.1.5.0
lrwxrwxrwx   1 fiucha   pdmusr21 Feb  9 12:25 libgtkmm-2.0.so.1 -> 
libgtkmm-2.0.so.1.5.0
-rwxr-xr-x   1 fiucha   pdmusr   88387788 Feb  9 12:25 libgtkmm-2.0.so.1.5.0
-rwxr-xr-x   1 fiucha   pdmusr  1325 Feb  9 12:24 
libgtkmm_generate_extra_defs-2.0.la
lrwxrwxrwx   1 fiucha   pdmusr41 Feb  9 12:24 
libgtkmm_generate_extra_defs-2.0.so -> libgtkmm_generate_extra_defs-2.0.so.1.5.0
lrwxrwxrwx   1 fiucha   pdmusr41 Feb  9 12:24 
libgtkmm_generate_extra_defs-2.0.so.1 -> libgtkmm_generate_extra_defs-2.0.so.1.5.0
-rwxr-xr-x   1 fiucha   pdmusr296572 Feb  9 12:24 
libgtkmm_generate_extra_defs-2.0.so.1.5.0

88 Megabytes? On Linux/i386 is only 2 Megabytes.

libgtk+ is also huge:
-rwxr-xr-x   1 fiucha   pdmusr   23307256 Jan  3 09:56 libgtk-x11-2.0.so.0.200.0

23 Megabytes vs. 2 Megabytes on Linux/i386.

Any ideas what might be wrong?

Thank you,
florin

--

"NT is to UNIX what a doughnut is to a particle accelerator."



msg12356/pgp0.pgp
Description: PGP signature


libtool error : static compiling gtkmm-2.0.2

2003-02-11 Thread Vishal Modak




--- Begin Message ---
hi!!!

I am trying to compile static libraries for gtkmm-2.0.2..

I have the following ackages..
gtk-2.0.9,
glib-2.0.7,
atk-1.0.4,
pango-1.0.4
libsigc++-1.2

I have succesfully created the static libraries for the above 
packages

for gtkmm-2.0.2..i did this

=> configure --enable-static(no problems)

=> make
make  all-recursive
make[1]: Entering directory `/root/newtools/gtkmm-2.0.2'
Making all in tools
make[2]: Entering directory `/root/newtools/gtkmm-2.0.2/tools'
Making all in m4
make[3]: Entering directory 
`/root/newtools/gtkmm-2.0.2/tools/m4'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/newtools/gtkmm-2.0.2/tools/m4'
Making all in pm
make[3]: Entering directory 
`/root/newtools/gtkmm-2.0.2/tools/pm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/newtools/gtkmm-2.0.2/tools/pm'
Making all in extra_defs_gen
make[3]: Entering directory 
`/root/newtools/gtkmm-2.0.2/tools/extra_defs_gen'
/bin/sh ../../libtool --mode=link g++  -g -O2 -Wall  -o 
libgtkmm_generate_extra_defs-2.0.la -rpath /usr/local/lib  
-version-info 2:1:1  generate_extra_defs.lo -Wl,--export-dynamic 
-L/usr/local/lib -lsigc-1.2 -lgobject-2.0 -lgmodule-2.0 -ldl 
-lglib-2.0   -Wl,--export-dynamic -L/usr/local/lib 
-L/usr/X11R6/lib -lsigc-1.2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lXft -lXrender -lXext 
-lfreetype -lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 
-lgmodule-2.0 -ldl -lglib-2.0

grep:/root/test/lib/libatk-1.0.la : no such file or directory
sed:/root/test/lib/libatk-1.0.la : no such file or directory
libtool: link: /root/test/lib/libatk-1.0.la : is not a valid 
libtool archive

make[3]: Leaving directory 
`/root/newtools/gtkmm-2.0.2/tools/extra_defs_gen'
make[2]: Leaving directory `/root/newtools/gtkmm-2.0.2/tools'
make[1]: Leaving directory `/root/newtools/gtkmm-2.0.2'
===

i dont understand this..the .la file is in usr/local/lib..why is 
it searching in /root/test/

however i did compile atk-1.0.3 using the --prefix=$HOME/test..but 
after
that i deleted the test directory

created a fresh untar from atk-1.0.3.tar.gz...this time i did not 
give the prefix..
created a fresh untar from gtkmm-2.0.2.tar.gz
when i give `make` in gtkmm-2.0.2..it still give me this error

somehow or the other the prefix is still stored in some 
variable..and my gtkmm-2.0.2 is using that to search for atk .la 
file

can u tell me how can i get around this..

is there any other way to do..than this,,

hoping to hear from u soon

regards
vishal







--- End Message ---


gtk+-2.2.1 compilation problem

2003-02-11 Thread M. Lavasani
Hi

I am trying to compile gtk+-2.2.1 on HPUX-Ia64 platform.

first I tried to use the dynamic loading to build the program, the gdkpixbuf
failed to generate "gdk-pixbuf.loader" with dynamic loading support.

Then I tried to compile with the following option:

configure --disable-modules --with-included-loaders=png

But I still get the same thing as before.

Any idea why is this happening??

Thanks

This this the error that I get:

LOADERS=`echo libpixbufloader-*.la` ; \
if test "x$LOADERS" != 'xlibpixbufloader-*.la' ; then \
  echo "Writing a gdk-pixbuf.loader file to use when running examples before 
installing gdk-pixbuf."; \
  ../gdk-pixbuf/gdk-pixbuf-query-loaders $LOADERS > ./gdk-pixbuf.loaders ;\
else \
  echo "No dynamic modules found; will use only static modules for uninstalled 
example programs."; \
  touch gdk-pixbuf.loaders; \
fi
Writing a gdk-pixbuf.loader file to use when running examples before installing 
gdk-pixbuf.
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-ani.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-bmp.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-gif.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-ico.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-jpeg.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-png.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-pnm.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-ras.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-tga.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-tiff.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-wbmp.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-xbm.la
Cannot load loader 
/mnt/disc1/ia64/lavasani/gtk+-2.2.1/gdk-pixbuf/libpixbufloader-static-xpm.la

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



building gtk+ 2.2.1 (png loader module)

2003-02-11 Thread Felix Natter
hi,

I am trying to compile gtk+ 2.2.1 (as part of GARNOME 0.21.0).  gtk+
compiles fine but it seems like gtk+ didn't build the png loader:
compiling libgnomeui fails with this error:

make  all-recursive
make[1]: Entering directory
`/home/felix/src/garnome-0.21.0/gnome/libgnomeui/work/libgnomeui-2.2.0.1'
Making all in libgnomeui
make[2]: Entering directory
`/home/felix/src/garnome-0.21.0/gnome/libgnomeui/work/libgnomeui-2.2.0.1/libgnomeui'
Making all in pixmaps
make[3]: Entering directory
`/home/felix/src/garnome-0.21.0/gnome/libgnomeui/work/libgnomeui-2.2.0.1/libgnomeui/pixmaps'
rm -f gnome-stock-pixbufs.h
var=`echo "stock_attach.png stock_book_blue.png stock_book_green.png
stock_book_open.png stock_book_red.png stock_book_yellow.png stock_line_in.png
stock_mail.png stock_mail_compose.png stock_mail_forward.png
stock_mail_receive.png stock_mail_reply.png stock_mail_send.png stock_menu_about.png
stock_menu_blank.png stock_scores.png stock_mic.png stock_multiple_file.png 
stock_not.png
stock_table_borders.png stock_table_fill.png stock_text_bulleted_list.png
stock_text_indent.png stock_text_numbered_list.png stock_text_unindent.png
stock_timer.png stock_timer_stopped.png stock_trash.png stock_trash_full.png
stock_volume.png stock_midi.png" | sed -e 's,stock_\([^\.]*\)\.png,stock_\1
./stock_\1.png,g'` ; \
   /home/felix/garnome/bin/gdk-pixbuf-csource --raw --build-list $var >
pixbufs-tmp && \
   cat ./copyright.txt pixbufs-tmp > gnome-stock-pixbufs.h
failed to load "./stock_attach.png": Couldn't recognize the image file
format for file './stock_attach.png'
make[3]: *** [gnome-stock-pixbufs.h] Error 1
make[3]: Leaving directory
`/home/felix/src/garnome-0.21.0/gnome/libgnomeui/work/libgnomeui-2.2.0.1/libgnomeui/pixmaps'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/felix/src/garnome-0.21.0/gnome/libgnomeui/work/libgnomeui-2.2.0.1/libgnomeui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/felix/src/garnome-0.21.0/gnome/libgnomeui/work/libgnomeui-2.2.0.1'
make: *** [all-recursive-am] Error 2

I tried 1. to run `gdk-pixbuf-query-modules' => no non-comment output and
2. look at PREFIX/etc/gtk-2.0/gdk-pixbuf modules (I don't remember the
exact name) => many loaders are mentioned along with .so-na
(but these files don't exist in PREFIX), but "png" is missing.

I configured with --with-libjpeg --with-libpng (or similar) + some 
GARNOME switches for paths.

*please cc me, I am not subscribed to this list*

thanks,

-- 
Felix Natter

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



Re: Problem while using framebuffer... Help

2003-02-11 Thread Sven Neumann
Hi,

"Binoj VB" <[EMAIL PROTECTED]> writes:

> I am new to Linux GUI programming (also Linux) and I have a requirement
> where I should use frame buffer in-order to bye-pass the Xserver.
> Currently I am using RH 8, and I am confused with the GTK versions that
> I need to select in-order to get the display. Also another requirement
> is I should use only GTK ***
>  
> I need to know whether I should use the combination of GTK and DirectFB
> or only GTK+-2.2.0. or any thing else? 

GTK+-DirectFB is only yet available as version 2.0.9. I'm working on
the port to 2.2 and actually I promised to have it completed by now
but work got in the way and so it's still only GTK+-2.0.

> Now I installed RH 8 on another machine and downloaded GTK+ on DirectFB
> with great expectation. 
>  
> Configure -enable-debug=no -with-gtktarget=Linux-fb -disable-shadowfb
> -disable-module -with-included-loaders=xpm,png,jpeg

you obviously configured for the linux-fb backend, not for DirectFB.
But wait, did you really use that configure line? It doesn't look as
if it could have worked at all. Perhaps you check what options you
really used by looking at config.log.

> After all these steps I am able to start the GUI, but the mouse and key
> board was not detecting. 
>  
> I configured the options GTK_MOUSE_TYPE=ps2 ; GTK_KEYBOARD_TYPE=raw

sorry, since these are not used by GTK+-DirectFB, I won't be able to
help you with these options.


Salut, Sven

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



Re: glib event loop thrashing on solaris x86?

2003-02-11 Thread Paul Davis
>hi!
>   this is a somewhat vague question, which i apologize for.  i'm just 
>trying for suggestions of where i should look to find my glitch:
>
>i am running on a dual processor x86 solaris 8 box, and my gtkmm 
>application seems to spend a lot of time thrashing in the glib event 
>loop.  truss reveals lots of this:
>
>ioctl(4, FIONREAD, 0x0804657C)= 0
>gettimeofday(0x08046584)= 0
>poll(0x0832D400, 2, 0)= 0
>gettimeofday(0x080465A4)= 0
>ioctl(4, FIONREAD, 0x0804657C)= 0
>gettimeofday(0x08046584)= 0
>poll(0x0832D400, 2, 0)= 0
>gettimeofday(0x080465A4)= 0
>
>top reports my cpu usage at around 60%, which seems very high for the 
>amount of processing that is going on.  has anyone run into a similar 
>situation?  if so, can you suggest things i might be doing wrong?

without timestamps on that output, its meaningless. any X based
program works exactly like your trace shows.

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



Re: glib event loop thrashing on solaris x86?

2003-02-11 Thread Soeren Sandmann
Paul Davis <[EMAIL PROTECTED]> writes:

> >top reports my cpu usage at around 60%, which seems very high for the 
> >amount of processing that is going on.  has anyone run into a similar 
> >situation?  if so, can you suggest things i might be doing wrong?
> 
> without timestamps on that output, its meaningless. any X based
> program works exactly like your trace shows.

The poll() timeouts are 0, which probably means that an idle function
that returns FALSE has been added to the glib main loop. If so, then
using a lot of CPU is expected.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Installing gtk2-2.2

2003-02-11 Thread Neil Hodge
All:

My current setup is stock rh80.  I can't really remove the current rpms
due to the huge number of dependencies, and I would rather not update
the rpms, because they have them Dependant on Xfree, which is more than
I want to screw with.  Here is my install script:


export GTK_INSTALL_PATH=/opt/gtk+-2.2.1
#export CPPFLAGS="-I$GTK_INSTALL_PATH/include/glib-2.0"
export CPPFLAGS="-I$GTK_INSTALL_PATH/include"
export LDFLAGS="-L$GTK_INSTALL_PATH/lib -L/usr/lib"
export LD_RUN_PATH=$GTK_INSTALL_PATH/lib
export PKG_CONFIG_PATH=$GTK_INSTALL_PATH/lib/pkgconfig
export LD_LIBRARY_PATH="$GTK_INSTALL_PATH/lib:$LD_LIBRARY_PATH"
export PATH="$GTK_INSTALL_PATH/bin:$PATH"


rm -rf $GTK_INSTALL_PATH


install_me=1
if [ $install_me == 1 ]
then
DIRNAME=glib-2.2.1
cd $DIRNAME
rm -rf config.status
./configure --prefix=$GTK_INSTALL_PATH
#   make clean
make
make install
/sbin/ldconfig -n $GTK_INSTALL_PATH/lib
cd ..
fi


install_me=1
if [ $install_me == 1 ]
then
DIRNAME=pango-1.2.1
cd $DIRNAME
rm -rf config.status
./configure --prefix=$GTK_INSTALL_PATH
#   make clean
make
make install
cd ..
fi


install_me=1
if [ $install_me == 1 ]
then
DIRNAME=atk-1.2.0
cd $DIRNAME
rm -rf config.status
./configure --prefix=$GTK_INSTALL_PATH
#   make clean
make
make install
cd ..
fi


install_me=1
if [ $install_me == 1 ]
then
DIRNAME=gtk+-2.2.1
cd $DIRNAME
rm -rf config.status
./configure --prefix=$GTK_INSTALL_PATH
#   make clean
#make
#make install
cd ..
fi


It seems ok up through and including the atk install.  When it gets to
the command:

./configure --prefix=$GTK_INSTALL_PATH

in the gtk section (the last one), I get the following error:

checking for libpng12... no
checking for png_read_info in -lpng... no
configure: WARNING: *** PNG loader will not be built (PNG library not
found) ***configure: WARNING: *** PNG loader will not be built (PNG
header file not found) ***
configure: error:
*** Checks for PNG loader failed. You can build without it by passing
*** --without-libpng to configure but many programs using GTK+ will
*** not work properly. The PNG loader is also needed if you are
compiling
*** from CVS.

Checking for the rpm yields:

rpm -qa | grep libpng
libpng-1.2.2-8
libpng10-1.0.13-6

The error says "library not found", so I set as follows:

export LDFLAGS="-L$GTK_INSTALL_PATH/lib -L/usr/lib"

and checked the following:

rpm -ql libpng
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.1.2.2
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.1.2.2
/usr/share/doc/libpng-1.2.2
/usr/share/doc/libpng-1.2.2/CHANGES
/usr/share/doc/libpng-1.2.2/README
/usr/share/doc/libpng-1.2.2/TODO
/usr/share/doc/libpng-1.2.2/example.c
/usr/share/doc/libpng-1.2.2/libpng.txt
/usr/share/man/man5/png.5.gz

So I am not sure what is going on.  Any hints???  Thanks.

Neil


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



XInitThreads() locking up my GTK app !?!?!

2003-02-11 Thread David J. Topper
Well, I hope this isn't a show stopper.  I need XInitThreads() to be 
able to fire off a separate video (v4l) object to monitor video input. 
But when I put it in my GTk application, it freezes up any time I try to 
enter text into a text box.

I'm also using g_threads_init and gdk_threads_enter ... and so on.

Does anyone have a workaround?  This is quite disturbing.

Thanks,

DT
--
Technical Director, Virginia Center for Computer Music

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