glib installation
Hi all, I am installing glib on solaris . It configure perfectly using the command: ./configure --prefix=/usr/local. But when I try to run make it produces the following error: In file included from gfileutils.c:66: glibintl.h:10: warning: `__format_arg__' attribute directive ignored gfileutils.c: In function `g_file_test': gfileutils.c:93: warning: implicit declaration of function `access' gfileutils.c:93: `F_OK' undeclared (first use this function) gfileutils.c:93: (Each undeclared identifier is reported only once gfileutils.c:93: for each function it appears in.) gfileutils.c:96: `X_OK' undeclared (first use this function) gfileutils.c: In function `get_contents_regfile': gfileutils.c:413: warning: implicit declaration of function `read' gfileutils.c:419: warning: implicit declaration of function `close' *** Error code 1 make: Fatal error: Command failed for target `gfileutils.lo' Current working directory /home/rehama/glib-2.0.0/glib *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home/rehama/glib-2.0.0/glib *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home/rehama/glib-2.0.0 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' Could anybody explain? Reham __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkExtra Documentation
Can somebody point me towards a good source code that used GtkExtra widgets such as GtkPlot and GtkSheet? ~surej -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: key bindings - gtk2
On Tue, 16 Jul 2002, Padraig O'Briain wrote: handled or the toplevel is reached. If the keystroke has still not been handled the toplevel checks for key bindings. Are you talking about the key bindings API now? http://developer.gnome.org/doc/API/2.0/gtk/gtk-bindings.html Or are you just stating that the toplevel is the last to check when you move upwards from the focus widget. Within a widget the handling of the keystroke will call key-press-event handlers defined for that widget. These should, among other things, check for key bindings defined for the widget. Or probably this is using the key bindings API. I think you explanation of the overall handling is very nice. Thanks a lot. What I still don't understand is where (and how) the above API is used. What kind of objects is the above key bindings connected to. I wrote code like this that changed my scrolled window to use the arrow to scroll instead of ctrl-arrow: binding_set = gtk_binding_set_by_class (G_OBJECT_GET_CLASS(G_OBJECT(scroll))); gtk_binding_entry_add_signal (binding_set, GDK_Up, (GdkModifierType)0, scroll_child, 2, GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD, G_TYPE_BOOLEAN, FALSE); And this seems to work fine. But this connects the binding to the scrolled window class. Is this always so? What if I just want to change it for one scrolled window. I've also seen that key bindings have some sort of priority http://developer.gnome.org/doc/API/2.0/gtk/gtk-standard-enumerations.html#GtkPathPriorityType How does this mix in with starting at the focus widget and move out. What if the parent widget have a binding of the same key with higher priority. Or is this just to resolve the binding for one widget (I guess it is). I have not said anything about accessibility (atk) as I do not see its relevance to the topic. If you are further questions, I will try to help. Well, I don't know anything about atk and have never used it. I just thought that if I make my key bindings work in the intended way it will probably be good for atk also. I just assumed atk might have been involved. -- /Dennis ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkExtra Documentation
Can somebody point me towards a good source code that used GtkExtra widgets such as GtkPlot and GtkSheet? I'd suggest you look at the GtkAda documentation where these widgets are documented. GtkAda home page (with online docs): http://libre.act-europe.fr/GtkAda Arno ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkExtra Documentation
When you install GtkExtra , test programs are available inside gtkextra directory . You might find testgtksheet.c and testgtkplot.c useful . -Anita surender javahar wrote: Can somebody point me towards a good source code that used GtkExtra widgets such as GtkPlot and GtkSheet? ~surej -- ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GNOME and Xwindows porting Errors
Hi, I am porting Xwindows on an embedded Linux to support GTK+. When I used a simple startx script, I did not have any errors but I had very ugly xwindows. It is the same as running xinit instead of startx. I mean I can not use GNOME. With a RedHat version's startx script the system tries to set host network configurations. It did look like little bit complicated. So, I used xinit instead of startx. When I tried to run my program which is related to image processing, however, I have had following errors: Gdk-WARNING **: locale not supported by Xlib, locale set to C Gdk-WARNING **: can not set locale modifiers Gdk-ERROR **: BadValue serial 76 error_code 2 request_code 53 minor_code 0 1. what can I do to run startx? 2. How can I solve the above errors? Thanks a lot, Bokyun Na ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: key bindings - gtk2
Dennis, I have tried to answer the points you raised. To: Padraig O'Briain [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: key bindings - gtk2 MIME-Version: 1.0 On Tue, 16 Jul 2002, Padraig O'Briain wrote: handled or the toplevel is reached. If the keystroke has still not been handled the toplevel checks for key bindings. Are you talking about the key bindings API now? http://developer.gnome.org/doc/API/2.0/gtk/gtk-bindings.html Yes, I mean bindings such as Tab, Shift+Tab, Ctrl+Tab used to defined focus movement defined for GtkWindow by that API. Or are you just stating that the toplevel is the last to check when you move upwards from the focus widget. I meant that the toplevel is not checked when traversing from the focus widget to its parent and so on. Then the key bindings on that toplevel are checked. Within a widget the handling of the keystroke will call key-press-event handlers defined for that widget. These should, among other things, check for key bindings defined for the widget. Or probably this is using the key bindings API. I think you explanation of the overall handling is very nice. Thanks a lot. What I still don't understand is where (and how) the above API is used. The description is a summary of what the function gtk_window_key_press_event() does. The code in gtkwindow.c and for other GTK Widgets, e.g. gtkscrolledwindow.c, should give you an example of how the key binding API is used. What kind of objects is the above key bindings connected to. I wrote code like this that changed my scrolled window to use the arrow to scroll instead of ctrl-arrow: binding_set = gtk_binding_set_by_class (G_OBJECT_GET_CLASS(G_OBJECT(scroll))); gtk_binding_entry_add_signal (binding_set, GDK_Up, (GdkModifierType)0, scroll_child, 2, GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD, G_TYPE_BOOLEAN, FALSE); And this seems to work fine. But this connects the binding to the scrolled window class. Is this always so? What if I just want to change it for one scrolled window. I do not think that you can change behavior for a signal object. I think that it must be changed for a class. Perhaps if you derive a class from GtkScrolledWindow and give it the behavior you desire. I've also seen that key bindings have some sort of priority http://developer.gnome.org/doc/API/2.0/gtk/gtk-standard-enumerations.html#GtkPat hPriorityType How does this mix in with starting at the focus widget and move out. What if the parent widget have a binding of the same key with higher priority. Or is this just to resolve the binding for one widget (I guess it is). When the key press event is processed for a widget, the key bindings should be checked. If you write a key-press-event handler for a class, it would be your responsibility to make sure it happens; check gtk_entry_key_press(). I do not know what the meaning or effect if GtkPathPriorityType is. Padraig I have not said anything about accessibility (atk) as I do not see its relevance to the topic. If you are further questions, I will try to help. Well, I don't know anything about atk and have never used it. I just thought that if I make my key bindings work in the intended way it will probably be good for atk also. I just assumed atk might have been involved. -- /Dennis ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
newbie's question - it's urgent .
hi list, I am trying to draw RGB images on to the window, iam grabbing a frame once and displaying it in the expose event handler, this is ok when i do it for the first time , but what if i need to do it continiously ? is there any method i can use? so that i can grab frames and display them repeatedly maybe each second. iam using gtk-1.2 on RedHat 7.1 Any help would be appreciated, thanx in advance, Simith = // The GOOD thing about BAD things is that they END, the BAD thing about GOOD things is they also END - Simith Nambiar ;-) mca@mit // __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
urgent newbie question
hi list, I am trying to draw RGB images on to the window, iam grabbing a frame once and displaying it in the expose event handler, this is ok when i do it for the first time , but what if i need to do it continiously ? is there any method i can use? so that i can grab frames and display them repeatedly maybe each second. iam using gtk-1.2 on RedHat 7.1 Any help would be appreciated, thanx in advance, Simith = // The GOOD thing about BAD things is that they END, the BAD thing about GOOD things is they also END - Simith Nambiar ;-) mca@mit // __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: urgent newbie question
simith nambiar wrote: hi list, I am trying to draw RGB images on to the window, iam grabbing a frame once and displaying it in the expose event handler, this is ok when i do it for the first time , but what if i need to do it continiously ? is there any method i can use? so that i can grab frames and display them repeatedly maybe each second. Set up a once per second timer with gtk_timeout_add(), in the callback grab a new frame to your image buffer and queue a repaint, in the expose handler, paint the image buffer to the screen. There are fancier techniques if you want a very high frame rate ... but this should work ok, certainly up to 10 fps on most machines. == Fabric of Vision Dress and Drapery in Painting 19 June - 8 September 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/fabric/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: newbie's question - it's urgent .
Hi, Chris Nystrom [EMAIL PROTECTED] writes: I am trying to draw RGB images on to the window, iam grabbing a frame once and displaying it in the expose event handler, this is ok when i do it for the first time , but what if i need to do it continiously ? is there any method i can use? You might try using a loop and repeatedly call the expose event handler. Not sure what you do if this is not fast enough. you should never call an expose event handler directly since this would mean that you draw outside an expose event. Instead you should use gtk_widget_queue_draw() to generate an expose_event. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: newbie's question - it's urgent .
On 17 Jul 2002, Sven Neumann wrote: Chris Nystrom [EMAIL PROTECTED] writes: You might try using a loop and repeatedly call the expose event handler. Not sure what you do if this is not fast enough. you should never call an expose event handler directly since this would mean that you draw outside an expose event. Instead you should use gtk_widget_queue_draw() to generate an expose_event. Yes, poor wording on my part. Sorry. Chris ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkTreeView and colum size
Hello, I make a gtkTreeView but I have a problème. In fact in the same colum I have two field : column = gtk_tree_view_column_new (); renderer = gtk_cell_renderer_text_new (); g_object_set (G_OBJECT (renderer), font, Fixed Medium Semi-Condensed 12, NULL); gtk_tree_view_column_set_title (column, Data send); gtk_tree_view_column_pack_start (column, renderer, FALSE); gtk_tree_view_column_add_attribute (column, renderer, text, DATA_COLUMN); renderer = gtk_cell_renderer_text_new (); g_object_set (G_OBJECT (renderer), font, Fixed Medium Semi-Condensed 12, NULL); gtk_tree_view_column_pack_start (column, renderer, TRUE); gtk_tree_view_column_set_attributes (column, renderer, text, EXPAND_DATA_COLUMN, foreground, EXPAND_DATA_COLOR, NULL); But the two colum are the same size and I don't want. How could I do this ? To be more explicit I give you the url of two screenshot. The first represente what I obtain and the second what I will like to obtain : I have : http://www.arnoraes.freesurf.fr/Forum/treeview_colum.png I want : http://www.arnoraes.freesurf.fr/Forum/treeview_colum2.png If you could help me. Thank you Arno __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
compiling gtk 2.0.5 is an adventure.
Hi, after all the (solved! thanks a lot!) trouble with glib on our OSF1 V5.1 732 alpha, compiling pango and atk was no problem. Now, the following appears: Screen output from ./configure: checking for TIFFReadScanline in -ltiff... no checking for TIFFWriteScanline in -ltiff... no checking for TIFFFlushData in -ltiff34... no configure: WARNING: *** TIFF plug-in will not be built (TIFF library not found) *** configure: error: *** Checks for TIFF loader failed. You can build without it by passing *** --without-libtiff to configure but some programs using GTK+ may *** not work properly Now, I definitely _have_ installed tiff.h and litiff* etc. (same happens for the jpeg plug-ins, btw after using the suggested --without-libtiff option). I add here a config.log snippet: int main () { TIFFReadScanline (); ; return 0; } configure:13083: result: no configure:13196: checking for TIFFWriteScanline in -ltiff configure:13229: cc -o conftest -g conftest.c -ltiff -ljpeg -lz -lm 5 ld: Unresolved: __eprintf configure:13232: $? = 1 configure: failed program was: #line 13203 configure #include confdefs.h I guess, our problem is somewhere in a mismatch of gcc and cc libraries and includes ? I am grateful for any kind of advice, as all colleagues whom I have asked for help have given up. Bye, Martin ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
from RGB - JPEG
hi there, I am getting Raw RGB data - from my webcam is there any freely available tool or function in Gtk by which i can convert it into a JPEG image, and save it so that i can upload it to a web server Please help :-) it's really urgent. thanx in advance, cheers, Simith = // The GOOD thing about BAD things is that they END, the BAD thing about GOOD things is they also END - Simith Nambiar ;-) mca@mit // __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: compiling gtk 2.0.5 is an adventure.
On Wed, 17 Jul 2002, Martin Kestel wrote: Screen output from ./configure: checking for TIFFReadScanline in -ltiff... no checking for TIFFWriteScanline in -ltiff... no checking for TIFFFlushData in -ltiff34... no configure: WARNING: *** TIFF plug-in will not be built (TIFF library not found) *** configure: error: *** Checks for TIFF loader failed. You can build without it by passing *** --without-libtiff to configure but some programs using GTK+ may *** not work properly Martin, I'm unfamiliar with OSF1, but in linux I need to run the 'ldconfig' command after adding a new library in order to make the system aware of the change. There's a database of installed libraries (and directories) that is checked by configure. Perhaps this is why it cannot find the library you just installed. Rich Dr. Richard B. Shepard, President Applied Ecosystem Services, Inc. (TM) 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A. + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | [EMAIL PROTECTED] http://www.appl-ecosys.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: from RGB - JPEG
Hi, simith nambiar [EMAIL PROTECTED] writes: I am getting Raw RGB data - from my webcam is there any freely available tool or function in Gtk by which i can convert it into a JPEG image, and save it so that i can upload it to a web server if you insist on doing it yourself, I'd suggest you use GdkPixbuf; it's part of GTK+-2.0. I wonder however why you aren't using one of the webcam utilities available. I've made good experiences using webcam which is part of xawtv (http://bytesex.org/xawtv/). Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: compiling gtk 2.0.5 is an adventure.
On Solaris, I have to set CPPFLAGS=-I/usr/local/include (location of tiff header) before I run configure for gtk+. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rich Shepard Sent: Wednesday, July 17, 2002 2:16 PM To: Martin Kestel Cc: [EMAIL PROTECTED] Subject: Re: compiling gtk 2.0.5 is an adventure. On Wed, 17 Jul 2002, Martin Kestel wrote: Screen output from ./configure: checking for TIFFReadScanline in -ltiff... no checking for TIFFWriteScanline in -ltiff... no checking for TIFFFlushData in -ltiff34... no configure: WARNING: *** TIFF plug-in will not be built (TIFF library not found) *** configure: error: *** Checks for TIFF loader failed. You can build without it by passing *** --without-libtiff to configure but some programs using GTK+ may *** not work properly Martin, I'm unfamiliar with OSF1, but in linux I need to run the 'ldconfig' command after adding a new library in order to make the system aware of the change. There's a database of installed libraries (and directories) that is checked by configure. Perhaps this is why it cannot find the library you just installed. Rich Dr. Richard B. Shepard, President Applied Ecosystem Services, Inc. (TM) 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A. + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | [EMAIL PROTECTED] http://www.appl-ecosys.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
TextView and ScrolledWindow not behaving properly (repost from gtk-app-devel-list)
Hi, I posted this on gtk-app-devel-list a couple of days ago, but got no real replies. So if nobody here can answer my question, I'll report it as a bug. I have a TextView in a ScrolledWindow, but it's not behaving like it should, here's my requirements: * It should be possible to shrink the window to a size less than the text width (my example can show why this isn't always true) * The TextWidget should not expand the window while you type or insert text into it. E.g. a 50x50 window should stay 50x50 nomatter the text inserted. * The text should wrap. * There should be no horizontal scrollbar. The below example illustrates my problem, I have set wrap_mode to GTK_WRAP_CHAR, but the text doesn't wrap when the window is shrinked. If you uncomment the gtk_widget_set_size_request() line, the text does wrap, but when shrinking the window, the window can't get any smaller than the length of the text. E.g. if you type in some text, the windows gets enlarged and cannot be shrinked down to its previous size. Enough mumbling: #include gtk/gtk.h int main(int argc, char *argv[]) { GtkWidget *window; GtkWidget *scrolled_window; GtkWidget *view; GtkTextBuffer *buffer; gtk_init (argc, argv); scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 10); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW (window), 600, 500); gtk_window_set_resizable (GTK_WINDOW (window), TRUE); view = gtk_text_view_new (); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_set_text (buffer, Hello, this is some text, -1); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); /* when this line is enabled, the window can be shrinked but the text * doesn't wrap */ gtk_widget_set_size_request (scrolled_window, 0, -1); gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW (scrolled_window), view); gtk_container_add (GTK_CONTAINER (window), scrolled_window); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_CHAR); gtk_widget_show (window); gtk_widget_show (view); gtk_widget_show (scrolled_window); gtk_main (); return 0; } ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Tricky treemodel question
I am creating a custom tree model and when a row is expanded there is sometimes considerable work to be done. I can break that work up to some level and am emitting libsigc++ signals that the main window class is attached to and the main window then sets a progress bar so that I can give some indication of progress. The problem comes in where I have to do something like while( gtk_events_pending() ) gtk_main_iteration_do(false); after setting the progress bar so that GTK repaints the new bar position. However I am getting the following error which I think is caused by GTK trying to repaint the gtktreeview again. ie. I click to expand the row, the treeview calls tree_store_iter_children() which is my model function which starts 'reading' the children (sometimes over the network) and emits events as it goes. These events trigger a gtk_main_iteration_do() so that the gtk progressbar is updated, but GTK also tries to update the treeview which is not ready to be updated because its has called tree_store_iter_children() and is not in a state to be redrawn. So my question really is: Is it always acceptable to call gtk_events_pending gtk_main_iteration_do from a GTK+2 app? #0 0x417b6a01 in __kill () at __kill:-1 #1 0x401005bb in raise (sig=6) at signals.c:65 #2 0x417b7f82 in abort () at ../sysdeps/generic/abort.c:88 #3 0x406b722c in g_logv (log_domain=0x415448eb Gtk, log_level=G_LOG_LEVEL_ERROR, format=0x41545020 file %s: line %d (%s): assertion failed: (%s), args1=0xbfffd66c ¶¥ZAé\v) at gmessages.c:507 #4 0x406b72b8 in g_log (log_domain=0x415448eb Gtk, log_level=G_LOG_LEVEL_ERROR, format=0x41545020 file %s: line %d (%s): assertion failed: (%s)) at gmessages.c:526 #5 0x4150f7f9 in gtk_tree_view_get_type () from /usr/lib/libgtk-x11-2.0.so.0 #6 0x4144d6d4 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #7 0x416b53f2 in g_type_class_meta_marshal (closure=0x8115830, return_value=0xbfffd910, n_param_values=2, param_values=0xbfffdaa0, invocation_hint=0xbfffd948, marshal_data=0xc8) at gclosure.c:514 #8 0x416b5136 in g_closure_invoke (closure=0x8115830, return_value=0xbfffd910, n_param_values=2, param_values=0xbfffdaa0, invocation_hint=0xbfffd948) at gclosure.c:437 -- - http://witme.sourceforge.net/libferris.web/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: TextView and ScrolledWindow not behaving properly (repost fromgtk-app-devel-list)
Hi, On Wed, 2002-07-17 at 22:37, Morten Brix Pedersen wrote: I have a TextView in a ScrolledWindow, but it's not behaving like it should, here's my requirements: * It should be possible to shrink the window to a size less than the text width (my example can show why this isn't always true) * The TextWidget should not expand the window while you type or insert text into it. E.g. a 50x50 window should stay 50x50 nomatter the text inserted. * The text should wrap. * There should be no horizontal scrollbar. The below example illustrates my problem, I have set wrap_mode to GTK_WRAP_CHAR, but the text doesn't wrap when the window is shrinked. [snip] gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW (scrolled_window), view); I think this is your problem. You should be using gtk_container_add directly, since GtkTextView supports scrolling natively. From the reference documentation: Used to add children without native scrolling capabilities. This is simply a convenience function; it is equivalent to adding the unscrollable child to a viewport, then adding the viewport to the scrolled window. If a child has native scrolling, use gtk_container_add() instead of this function. ... A widget supports scrolling natively if the set_scroll_adjustments_signal field in GtkWidgetClass is non-zero, i.e. has been filled in with a valid signal identifier. The gtk_widget_set_size_request is not necessary. Cheers, Gustavo ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
printing problem
hi all,.. i want to take the print out of the window in which we add all widgets in gtk or gnome... so how can i get the print out of that window... regards, vinita.. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list