Find the answer to your Linux question:
Results 1 to 2 of 2
iam fairly new to gtk but i really want to dig in deep. iam trying to create image viewer in gtk. now i have a scrolledwindow with gtkimage in it ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    1

    gtk help! scrolledwindow refresh problem

    iam fairly new to gtk but i really want to dig in deep. iam trying to create image viewer in gtk. now i have a scrolledwindow with gtkimage in it as viewport. the problem is that when i zoom in or out the image should resize... now i have written the code for it but how do i refresh the change in scrolledwindow? as how to refresh it with change in gtkimage size.... like in java there is a repaint() function..
    plz help

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Try this web site:

    and look up gtk_widget_set_app_paintable and expose_event

    GNOME Library

    Welcome to the forums

Posting Permissions

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