Gtk support for threading

2006-01-05 Thread sadhees kumar
Hi Friends,

I have created my GTK application , and implemented
threading with Pthread.It is working fine in Host (Pentium 3). Screen is not
displayed in the Target(ARM9).

 Is GTK is fully supporting threading?

 I am using GTK version 2.2.4.

 Thanks is advance...


--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


(no subject)

2006-02-15 Thread sadhees kumar
Friends,

In my GTK application, If  no action(event) is taken place in
the screen, I need to turn OFF the backlight of an TFT monitor. If any
key pressed, or mouse movement occured, I need to turn ON the
backlight.

I have the API for toggling the backlight. My problem is , how to 
identify the idle state of the screen?

Can you help me.

Thanks in advance..


--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How to identify the idle state of the GTK+ application?

2006-02-15 Thread sadhees kumar
Friends,

   In my GTK application, If  no action(event) is taken place in
the screen, I need to turn OFF the backlight of an TFT monitor. If any
key pressed, or mouse movement occured, I need to turn ON the
backlight.

I have the API for toggling the backlight. My problem is , how to
identify the idle state of the screen?

Can you help me.

Thanks in advance..


--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: How to identify the idle state of the GTK+ application?

2006-02-15 Thread sadhees kumar
Thank you Friends
I will try your suggestions..


_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Selection in Radiobutton

2006-03-02 Thread sadhees kumar
Friends,

 In my GTK application I am using five Radiobuttons. At any
point of time, only one will be selected. How to identify the selected
Radiobutton?

Can anyone help me?

Thanks in advance.
--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Changing button-font in rc file

2005-08-18 Thread sadhees kumar
 Dear friends,
I have two quaries for which i like to get some
help from you.
 
1. I would like to know how to change the fonts of a button through
rcfile. The way which i tried was something like,

style "button"
{
  fg[PRELIGHT] = { 0, 1.0, 1.0 }
  bg[PRELIGHT] = { 1.0, 0, 0 }
  bg[ACTIVE] = { 0, 0, 1.0 }
  fg[ACTIVE] = { 0, 1.0, 0 }
  bg[NORMAL] = { 1.0, 1.0, 1.0 }
  fg[NORMAL] = { 1.0, 0, 0 }
  bg[INSENSITIVE] = { 1.0, 1.0, 1.0 }
  fg[INSENSITIVE] = { 1.0, 0, 1.0 }
}

style "button_style" = "button"
{
 font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
 fg[PRELIGHT] = {1.0, 0, 0 }
}

widget_class "*GtkButton*" style "button_style" 

 but in this i had all the color affects but font-style did not change.

2.In the same example above, I would also like to know how to change
the widget-style of one particular button widget. I set the name of
the widget using the command gtk_widget_set_name(); , but after that
how to proceed in the rcfile?

It will be a real pleasure if i get to know these things & my advance thanks.

regards,
Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How to remove close button "x" from title bar of the window

2005-08-20 Thread sadhees kumar
Hi Andreas,

   The stuff that you send me was really  usefull, it
was very pleasant to see it work. I indeed thank you very much for
it.It seems that you are a genious in gtk+.

There is one more big problem that im facing in my
gtk+ .I have created a mainwindow & many popup windows.The problem is
that i dont want the " X " (close) button & " \/ " (options)button in
the right and left of the window bar at the top, but i want the name
bar of that window.

 Is there any possibilities for the above concern,
if so please let me know it will be of real help to me.

ONCE AGAIN THANKYOU & MY ADVANCE THANKS

Regards,
Sadheeskumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


How to draw graph usibg pixmap

2005-08-23 Thread sadhees kumar
Hello everybody,

In my application i draw graphs using
"expose_event" but the screen becomes very slow if i do so.

I would like to have a small example program
(to draw a line or box) using pixmap.It will be very helpfull for me.

  Indeed my advance thanks.

regards,
sadhees
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Hide the Border of Notebook and scrolled window widget

2005-09-05 Thread sadhees kumar
hi Friends,
 I want to hide the border of notebook and scrolled window. For that i tried 
with the following function,
 gtk_notebook_set_show_border(notebook,FALSE);
 but, i didn't get the success. Is there any possibility to hide those 
borders?
 Thanks in advance
 Regards,
K.Sadheeskumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Focus on Notebook tab

2005-09-09 Thread sadhees kumar
Friends,
  I am using GtkNotebook widget, it has 7 pages.i want to navigate all the 
pages.In my project i am using GDK_Tab key 
for navigating to next page. This is done in the GtkNotebook widget's 
"keypress" callback function. 
 The problem is i'm not getting the focus in the notebook tab(or page 
label).Foucus is on the child widget in that page.
 how can i bring the focus to the notebook tab(page label)?
 Thanks in advance...
  code is as follows,
 gboolean on_notebook1_key_press_event (GtkWidget *widget, GdkEventKey 
*event, gpointer user_data)
 
{

int a;

if(event->keyval == GDK_Tab)

{

a = gtk_notebook_get_current_page((GtkNotebook *)notebook1);

if (a < 6)

gtk_notebook_next_page((GtkNotebook *)notebook1);

else if (a == 6)

gtk_notebook_set_current_page((GtkNotebook *)notebook1,0); 

 } 

if(event->keyval == GDK_Left)

{

a = gtk_notebook_get_current_page((GtkNotebook *)notebook1);

if (a > 0)

gtk_notebook_prev_page((GtkNotebook *)notebook1);

else if (a == 0)

gtk_notebook_set_current_page((GtkNotebook *)notebook1,6); 

 } 

return FALSE;

}
 Regards,
K.Sadheeskumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Tool tip with out Mouse ?

2005-09-12 Thread sadhees kumar
hi friends,
 In my application, i am not using mouse. But i want to display the tool 
tips. If i get the focus for any particular widget, i need to display the 
tool tips for that widget...
 Is that possible?
 Thanks in advance
 Regards,
K.sdaheeskumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Tool tip with out Mouse ?

2005-09-12 Thread sadhees kumar
 Thanks Neumair, it is working. But i'm using using only the following keys 
in my application
1.Left arrow
2.Up arrow
3.Down arrow
4.Tab(instead of Right arrow)
5.Enter key(Return Key)
 Is that possible with these keys?
  regards,
K.Sadheeskumar

 On 9/12/05, Christian Neumair <[EMAIL PROTECTED]> wrote: 
> 
> Am Montag, den 12.09.2005, 16:39 +0530 schrieb sadhees kumar:
> > hi friends,
> > In my application, i am not using mouse. But i want to display the tool
> > tips. If i get the focus for any particular widget, i need to display 
> the
> > tool tips for that widget...
> > Is that possible?
> 
> Try ctrl-F1. The private API involved is
> gtktooltips.h:void _gtk_tooltips_toggle_keyboard_mode
> (GtkWidget *widget);
> 
> --
> Christian Neumair <[EMAIL PROTECTED]>
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (GNU/Linux)
> 
> iD8DBQBDJWjWWfvsaU5lO4kRAlEFAJ0SCIwe9H5pWfz+/u6S/9KKeBJrNwCgnIYY
> gbY2iSA8nonELi/6tVPq49U=
> =ZmSo
> -END PGP SIGNATURE-
> 
> 
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


how to reduce the size of tiny-x

2005-09-14 Thread sadhees kumar
Dear friends,
 I configured for tiny-x and compiled the X11 source, everything was right 
but finally the size of my tiny-x was 113MB. Since i want to use this in an 
embedded application it must be within 8MB.
 Have anybody experianced this, if so please let me know it will be of great 
help to me.
 Regards,
sadheesh kumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: how to reduce the size of tiny-x

2005-09-15 Thread sadhees kumar
 Here the problem is that if i use direct-FB, i dont have support for popups 
and some fonts which i developed for the screen.so if any one have an 
idea of reducing the size of tiny-x plz let me know.
 cheers.

 On 9/15/05, Attilio Fiandrotti <[EMAIL PROTECTED]> wrote: 
> 
> sadhees kumar wrote:
> > Dear friends,
> > I configured for tiny-x and compiled the X11 source, everything was 
> right
> > but finally the size of my tiny-x was 113MB. Since i want to use this in 
> an
> > embedded application it must be within 8MB.
> > Have anybody experianced this, if so please let me know it will be of 
> great
> > help to me.
> 
> if you are involved into an embedded- gtk project you can try GTK+ over
> DIrectFrameBuffer.
> 
> http://www.directfb.org/index.php?path=Development%2FProjects%2FGTK%2B
> 
> ciao
> 
> attilio
> 
>
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: how to reduce the size of tiny-x

2005-09-15 Thread sadhees kumar
Hello Friends,
 I have build a tiny-x server from X11 source, the libraries here are all 
dynamic. Have anybody experianced to static build the X11 to tiny-x, if so 
plz let me know.
 Advance thanks.
 cheers,
sadhees kumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


List of static libraries for glade application

2005-09-17 Thread sadhees kumar
Dear friends,
 I would like to have a list of STATIC LIBRARIES needed to compile and run a 
normal glade application, which you may probably get by the command ldd. If 
anyone has experienced this plz let me know.
 regards,
sadhees kumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Colors in pixmap

2005-09-22 Thread sadhees kumar
Friends,
 I want to draw lines and rectangles in pixmap with different colors . Afetr
that, i will display the pixmap contend to drawing area. But, I do not know
how to draw the lines with different colors.
  can anyone help me?
  Sample program will be more usefull..
  Regards,
K.Sadheeskumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Error while cross-compiling x11

2005-09-28 Thread sadhees kumar
Hi friends,
 Im now trying to cross-compile the x-11 source to tiny-x for
arm-architecture.What i did was in path x11/xc/config/cf/ i included the
host.def file and also changed the cross.def file, but it shows error while
compiling. Is there any seperate tool-chains for this?.Plz let me know
if anybody have experienced this problem.
 Thanks in advance.
 regards,
sadheeskumar
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Changing the GtkButton appearence

2005-10-28 Thread sadhees kumar
Dear Friends,
 I want to display my button widget with different look.
 Is there any way to change the appearence of GtkButton from rectangle to
ellipse?
 if anybody achieved this, attach the sample code.
 Thanks in advance.
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Changing the GtkButton appearence

2005-11-02 Thread sadhees kumar
Thank you very much Dain.


 On 10/30/05, Alem Dain <[EMAIL PROTECTED]> wrote:
>
> This is the province of the GTK theme, usually defined in resource
> files. The philosophy is that the user -- not the programmer --
> decides how his buttons should look.
>
> That being said, there are plenty of ways around it. The first is to
> enforce the use of a particular theme, either by hardcoding it or
> loading it from a file with gtk_rc_parse. See
>
> file:///usr/local/share/gtk-doc/html/gtk/gtk-Resource-Files.html
>
> for info on GTK resources.
>
> Another way is to load an image onto the button, and use a
> transparency mask to change the shape. I was involved in a thread on
> this a few months ago: search for "How to shape a button". Once you
> have a pixmap (for example, from gdk_pixmap_create_from_xpm), you set
> the transparency mask with gdk_window_shape_combine_mask, create an
> image with gtk_image_new_from_pixmap, and add the image to the button
> (as a container). All these functions are, of course, documented.
>
> Good luck,
> Alem.
>
> 2005/10/28, sadhees kumar <[EMAIL PROTECTED]>:
> > Dear Friends,
> > I want to display my button widget with different look.
> > Is there any way to change the appearence of GtkButton from rectangle to
> > ellipse?
> > if anybody achieved this, attach the sample code.
> > Thanks in advance.
> > _
> > Regards,
> >
> > K.Sadheeskumar.
> > ___
> > gtk-app-devel-list mailing list
> > gtk-app-devel-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> >
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>



--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Error while compiliing

2005-11-14 Thread sadhees kumar
Dear Friends,
I am developing GTK application using Glade in Red Hat Linux 9 ( GTK+ 2.2.4,
GLADE 1.1.3) .
 every thing is fine when we develop a small application. if we go for
bigger application,
 I am getting the following error while compiling,
 "cc1: cannot allocate 2045712000bytes after allocating 42434560 bytes"
  Can any one help me?
 Thanks in advance

_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK- How to get the text appearing on the button

2005-11-14 Thread sadhees kumar
You can use the following function
 gtk_button_set_label(button,label);
 Regards,
K.Sadheeskumar
 On 11/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I need help in getting the text that appears on the button widget.
>
> I have a button "HOLD". When I click this, function-A will be called and
> the text on the button is changed to "REMOVE HOLD"
>
> When "REMOVE HOLD" is clicked function-B needs to be called.
>
> ie, function-A must be called when HOLD is clicked and function-B must be
> called when REMOVE HOLD is clicked.
>
> Which GTK function do I need to call in order to get the text appearing on
> the button?
>
> Thanks in advance...
> B.Suganya
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>



--
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


To make the menubar background transparent

2005-11-15 Thread sadhees kumar
Hi Friends,
 Im using my GTK+ in my embedded application, im using a menubar in it, all
i want is to make the menubar's background transperent.
 If anybody have come cross across this problem please let me know with some
example code.
 THANKS in advance.
_
Regards,

K.Sadheeskumar.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list