On Wed, 2007-08-08 at 10:35 +0530, Prasanna Kumar K wrote:
> Hi,
>  
> I wanted to add some colors to my current vscrollbar application.
>  
> the arrow labels should be in "white" color.
> the bar should be in "blue" color.
> rest everything the boxes and the vertical box in which the bar slides should 
> be in black color.
>  
> the code I have written just makes the color of the arrow labels white. it 
> makes the bar the box in which both arrows are situtated black. the vetical 
> box in which the bar slides is still showing default "gray" color.
>  
> How can I meet my requirements.
>  
> 
> #include <gtk/gtk.h>
> int main (int argc, char *argv[])
> {
>         GtkWidget *bar;
>         GtkWidget *window;
>         GtkStyle *style;
>         GdkColor fgcolor, bgcolor;
>         gtk_init (&argc, &argv);
>         gdk_color_parse ("white", &fgcolor);
>         gdk_color_parse ("black", &bgcolor);
>         window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
>         gtk_widget_set_size_request (window, 200, 200);
>         bar = gtk_vscrollbar_new (NULL);
>         style = gtk_widget_get_style (bar);
>         style->fg[GTK_STATE_NORMAL]=fgcolor;
>         style->bg[GTK_STATE_NORMAL]=bgcolor;
>         gtk_widget_set_style(bar, style);
>         gtk_container_add (GTK_CONTAINER(window), bar);
>         gtk_widget_show_all (window);
>         gtk_main ();
>         return 0;
> }
> 
> 
> This message (including any attachment) is confidential and may be legally 
> privileged.
> Access to this message by anyone other than the intended recipient(s) listed 
> above is
> unauthorized.  If you are not the intended recipient you are hereby notified 
> that any
> disclosure, copying, or distribution of the message, or any action taken or 
> omission
> of action by you in reliance upon it, is prohibited and may be unlawful.  
> Please
> immediately notify the sender by reply e-mail and permanently delete all 
> copies of
> the message if you have received this message in error.

I hereby immediately notify you that I have I have received your
message.  Permanently deleting it without risk of your highly
confidential message being capable of recovery from my computer in the
future would require destruction of my hard drive.  Please therefore
urgently let me know what arrangements you are making for my costs in
doing so to be reimbursed, and for the purchase and despatch to me of a
new laptop to replace my existing one.

Regards.


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

Reply via email to