I write a program in gtk+ that in part of that i need a scrolled window widget on vbox and in the scrolled window should exit the Gtktext widget as its child. I have problem with adjustment the window scroled window and GtkText .
I passed NULL both for scrolled window and GtkText and result was the
small scrolled window.
---------------------------------------------------------------------------------------------------------------------------------------------
for scrolled window with its child i write this code :
sw=gtk_scrolled_window_new(NULL,NULL);
gtk_container_set_border_width (GTK_CONTAINER (sw), 10);
void gtk_scrolled_window_set_policy( GtkScrolledWindow *sw,
GtkPolicyType GTK_POLICY_ALWAYS,
GtkPolicyType GTK_POLICY_AUTOMATIC );
gtk_box_pack_start(GTK_BOX(vbox1),sw,FALSE,FALSE,10);
static char *str="Wellcome To Installing Linux\nplease cread the text\n carefully";
gtk_text_insert(GTK_TEXT(text), NULL , NULL , NULL , str , strlen(str) );
gtk_container_add(GTK_CONTAINER(sw),text);
------------------------------------------------------------------------------------------------------------------------
for loading image :
GtkWidget *image;
image=gtk_image_new_from_file("im.jpeg");
gtk_box_pack_start(GTK_BOX(hbox2),image,TRUE,TRUE,0);
--------------------------------------------------------------------------------------------------------------------------
how can i adjust the values of the scrolled window ?
if your answer is using Adjustment Object ,please explaine it for me exactly .
and other my question related to load image by using GtkPixmap .How i can adjust the structure of GtkPixmap of image ?
And as the latest question i want to know if using of
" gtk_image_new_from_file("image.jpeg")" for loading image in addition to
#include <gtk/gtk.h> need to other things?
becuse after using of this function i recieve the message
undefined reference to `gtk_image_new_from_file`
thank you.
How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates.
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list