Results 1 to 2 of 2

Thread: (GTK C)how can i fill an entire button with an image?

  1. #1
    Join Date
    Oct 2007
    Location
    Mexico City
    Beans
    36
    Distro
    Ubuntu 10.04 Lucid Lynx

    Cool (GTK C)how can i fill an entire button with an image?

    i have this button:

    Code:
    gtk_button_set_image(GTK_BUTTON(examplebutton2),image);
    how can i fill an entire button with an image?(gtk c )

    thanks.

  2. #2
    Join Date
    May 2007
    Location
    Belgrade, Serbia
    Beans
    172
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: (GTK C)how can i fill an entire button with an image?

    I'm assuming you want to have a fancy icon instead of a plain button. In those situations , I've usually used an image component as a button. I really don't know GTK+ , but I'm sure there is such widget in that framework. All components have OnClick event / slot . Also, I always use slots like OnHover in order to highlight an image a little bit, when user hovers the mouse over a button
    http://www.stosha.net/ - Collection of linux widgets and libraries.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •