Re: gtk application compile error
Obviously the compiler is having problems finding your development libraries. There may well be something wrong with your devel package, but you should be able to work round it. Run gtk-config --cflags and it should give a list of directories preceeded by a -I look in each of these and check that they first exist and that secondly one of them includes a folder gtk with a file gtk.h in it. The error is not due to you missing the include in your source, but because the compiler cannot find the required header. If you manage to find the header you can always add it manually to the arguments to the compiler with -I/path/to/header remember that the header must then be at /path/to/header/gtk/gtk.h hope this is of some help. Jon Wilson Raheel wrote: hi . I have written a very basic program using gtk_widgets. And tried the command line switches. Below is what i got when try to compile: # gcc -Wall wind.c -o wind.o 'gtk-config --libs --cflags' gcc: gtk-config --libs --cflags: No such file or directory wind.c:2:21: gtk/gtk.h: No such file or directory wind.c: In function `main': wind.c:7: `GtkWidget' undeclared (first use in this function) wind.c:7: (Each undeclared identifier is reported only once wind.c:7: for each function it appears in.) wind.c:7: `window' undeclared (first use in this function) wind.c:9: warning: implicit declaration of function `gtk_init' wind.c:11: warning: implicit declaration of function `gtk_window_new' wind.c:11: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function) wind.c:12: warning: implicit declaration of function `gtk_widget_show' wind.c:14: warning: implicit declaration of function `gtk_main' plz help me, I am hanging between all this. Raheel. plz note my source code is: # include gtk/gtk.h int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (argc, argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); //printf (this is first gcc program\n); //printf (%s, argv[1]); //printf (%s, argv[2]); return 0; } AND my development box is solaris 8.0 (sparc). ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Glib-GObject-Warning invalid cast null to unknown error
If you run your program in a debugger and put a break point in g_log you will see where the messages are coming from. Padraig hi i am trying to create a static executable using gtkmm-2.0.2, gtk-2.0.6, glib-2.0.9, libsigc++-1.2 the static build gave no errors...but when i run the program on my machine.. locally...it gives me these error (process 6231): GLIB-Object-Warning ** invalid cast from `(null)` to `unknown` (process 6231): GLIB-Object-Warning ** file gobject.c line 1325 (g_object_set_qdata); assertion `G_IS_OBJECT` (object) failed (process 6231): GLIB-Object-Warning ** invalid cast from `(null)` to `unknown` (process 6231): GLIB-Object-Warning ** file gobject.c line 1358 (g_object_set_qdata_full); assertion `G_IS_OBJECT` (object) failed (process 6231): GLIB-Object-Warning ** invalid cast from `(null)` to `unknown` (process 6231): GLIB-Object-Warning ** file gobject.c line 1347 (g_object_steal_qdata); assertion `G_IS_OBJECT` (object) failed it looks like i am passing null pointer..? how do i know where..? can anybody what exactly this means..? what should i do to solve this Regards Vishal Modak Dept. of Computer and Information Science Univ. Of South Alabama Mobile, AL ___ 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
Re: dealing with column data
Carl B. Constantine wrote: I'm writing an app that uses GtkTreeView widget to display data. However. for two of these GtkTreeViews, the data isn't really row based, but column based. It's more like a spread sheet and I don't think GTK has anything akin to what I want. Essentially, I want to be able to select an individual cell in a table. Get the data, right-click to popup a menu and perform some function. GtkTreeView isn't geared for this. I don't want to select an entire row. Does anyone have any hints on how to accomplish this? Have you looked at http://gtkextra.sourceforge.net/? They've got a spreadsheet-like widget that may do the job. I haven't tried it. On another note, I've been pooring over the documentation for GtkTreeView in particular but other widgets as well and it astounds me (as a veteran technical writer for Metrowerks a while back) the lack of documentation. I don't mean/want to be harsh, but how can the developers of Gtk+ expect developers to write apps when there is such a lack of docs on many of the widget classes and methods? Let me give a practical example from the GtkTreeView class and one other widget: http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeViewColumn.html The description for GtkTreeView column is incomplete. It says: The GtkTreeViewColumn object is a visible column in a GtkTreeView widget. It determines the geometry, type and that's as far as it gets. http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#GtkTreeView-select-cursor-row here, arg1 and returns are blank. What are they supposed to be? When should this be called? I really think there needs to be some more docs. The Gtk 2.0 tutorial is missing docs on several widgets. it would be nice to get these filled in. Just my $0.02 worth. I sympathise. What would be really useful would be a distributed document it as you find it system. If you find something that's not in the docs, then you write a few lines and submit it, and future users could browse the database and wouldn't have to waste time finding out how something really works. This would have saved me hours. Evan ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk application compile error
Hi, Raheel [EMAIL PROTECTED] writes: I have written a very basic program using gtk_widgets. And tried the command line switches. Below is what i got when try to compile: # gcc -Wall wind.c -o wind.o 'gtk-config --libs --cflags' are you perhaps using gtk+-2.x (you really should do) ? If so, you will want to use the following line instead: gcc -Wall wind.c -o wind.o 'pkg-config --libs --cflags gtk+-2.0' See http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Glib-GObject-Warning invalid cast null to unknown error
Hi, Padraig O'Briain [EMAIL PROTECTED] writes: If you run your program in a debugger and put a break point in g_log you will see where the messages are coming from. there's no need to install the breakpoint manually. You can start your app with the --g-fatal-warnings command-line and it will crash on the first warning making it easy to catch the cause of the problem using a debugger. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk application compile error
hi Neumann below is what pkginfo reports me. # pkginfo -l SMCgtk+ PKGINST: SMCgtk+ NAME: gtk+ CATEGORY: application ARCH: sparc VERSION: 1.2.10 BASEDIR: /usr/local VENDOR: GTK Group PSTAMP: Steve Christensen INSTDATE: Feb 04 2003 10:00 EMAIL: [EMAIL PROTECTED] STATUS: completely installed FILES:647 installed pathnames 8 shared pathnames 134 directories 44 executables 64165 blocks used (approx) # It is 1.2.10. But just for hanging around when i try , it gives me a long list of err messgages (so long that i can't paste it here) indicating that so many files are not found (most of them were *.h). so i am still in dark, plz help Raheel. - Original Message - From: Sven Neumann [EMAIL PROTECTED] To: Raheel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:57 PM Subject: Re: gtk application compile error Hi, Raheel [EMAIL PROTECTED] writes: I have written a very basic program using gtk_widgets. And tried the command line switches. Below is what i got when try to compile: # gcc -Wall wind.c -o wind.o 'gtk-config --libs --cflags' are you perhaps using gtk+-2.x (you really should do) ? If so, you will want to use the following line instead: gcc -Wall wind.c -o wind.o 'pkg-config --libs --cflags gtk+-2.0' See http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk application compile error
Hi, Raheel [EMAIL PROTECTED] writes: below is what pkginfo reports me. I was speaking of pkg-config, no idea what pkginfo is all about. It is 1.2.10. But just for hanging around when i try , it gives me a long list of err messgages (so long that i can't paste it here) indicating that so many files are not found (most of them were *.h). you shouldn't be developing with 1.2.10 any longer. Use 2.2.x instead. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk application compile error
ok I know you are talking about pkg-config, but I am telling you the version of gtk which is 1.2.10. You have told me to try ; # gcc -Wall wind.c -o wind.o 'pkg-config --libs --cflags gtk+-2.0' And my gtk is not 2.0. I think it should be clear now. Raheel. - Original Message - From: Sven Neumann [EMAIL PROTECTED] To: Raheel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:17 PM Subject: Re: gtk application compile error Hi, Raheel [EMAIL PROTECTED] writes: below is what pkginfo reports me. I was speaking of pkg-config, no idea what pkginfo is all about. It is 1.2.10. But just for hanging around when i try , it gives me a long list of err messgages (so long that i can't paste it here) indicating that so many files are not found (most of them were *.h). you shouldn't be developing with 1.2.10 any longer. Use 2.2.x instead. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk application compile error
Raheel wrote: ok I know you are talking about pkg-config, but I am telling you the version of gtk which is 1.2.10. You have told me to try ; # gcc -Wall wind.c -o wind.o 'pkg-config --libs --cflags gtk+-2.0' How about gcc -Wall wind.c -o wind.o `gtk-config --libs --cflags` with the correct back tic's [`] Ben And my gtk is not 2.0. I think it should be clear now. Raheel. - Original Message - From: Sven Neumann [EMAIL PROTECTED] To: Raheel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:17 PM Subject: Re: gtk application compile error Hi, Raheel [EMAIL PROTECTED] writes: below is what pkginfo reports me. I was speaking of pkg-config, no idea what pkginfo is all about. It is 1.2.10. But just for hanging around when i try , it gives me a long list of err messgages (so long that i can't paste it here) indicating that so many files are not found (most of them were *.h). you shouldn't be developing with 1.2.10 any longer. Use 2.2.x instead. Salut, Sven ___ 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
Re: gtk application compile error
First, run gtk-config --libs --cflags and check each and every directories listed if the missing headers are there! On Mon, 2003-02-24 at 20:17, Raheel wrote: yes , i have tried it too. and it has given me a long list of errors. i have already told you ppl about that long list (most of them were missing headers). guyz i am very near to snatch my hairs plz help me Raheel. -- Alfredo P. Ricafort [EMAIL PROTECTED] The man-month is a fallacious and dangerous myth, for it implies that men and months are interchangeable - (F.P. Brooks Jr.,The Mythical Man-Month) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: gtk2.0 font problem
On Sun, 2003-02-23 at 12:35, Sven Neumann wrote: Hi, Ian Zimmerman [EMAIL PROTECTED] writes: Hi, I searched the archive suspecting this could be a FAQ, but without luck. I just installed my first gtk2.0 program and all the dependent libraries. It runs fine, but the default widget font is too small (looks like 9 or 10pt). gtk1.2 apps work correctly, defaulting to 12pt Helvetica which is what I want. put this into your ~/.gtkrc-2.0 file: style default { font_name = Sans 12 } class * style default Even better, put: gtk-font-name = Sans 12 into your ~/.gtkrc-2.0. (The difference is that this sets the default font name, rather than specifying a font name explicitely for all widgets.) Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: dealing with column data
* Evan Lavelle ([EMAIL PROTECTED]) wrote: Carl B. Constantine wrote: I'm writing an app that uses GtkTreeView widget to display data. However. for two of these GtkTreeViews, the data isn't really row based, but column based. It's more like a spread sheet and I don't think GTK has anything akin to what I want. Essentially, I want to be able to select an individual cell in a table. Get the data, right-click to popup a menu and perform some function. GtkTreeView isn't geared for this. I don't want to select an entire row. Does anyone have any hints on how to accomplish this? Have you looked at http://gtkextra.sourceforge.net/? They've got a spreadsheet-like widget that may do the job. I haven't tried it. it's interesting. That looks close, but it might be overboard for my needs. I really want something like GtkTreeView but for matrix like data, not really a spread sheet per se. I just need it to display data in a tabular form. I'll take a look at this widget and see if it can be used for my needs though. I really think there needs to be some more docs. The Gtk 2.0 tutorial is missing docs on several widgets. it would be nice to get these filled in. Just my $0.02 worth. I sympathise. What would be really useful would be a distributed document it as you find it system. If you find something that's not in the docs, then you write a few lines and submit it, and future users could browse the database and wouldn't have to waste time finding out how something really works. This would have saved me hours. Well, I think we can do this anyway ;-) I plan on writing some docs to fill the Tutorial section for GtkTreeView though I do have some more questions about it first which are not in the reference docs, at least not clear in my head ;-) So I'll be asking the list for more help in that area ;-) -- .''`. Carl B. Constantine : :' : [EMAIL PROTECTED] `. `'GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom pgp0.pgp Description: PGP signature
Re: Re: Glib-GObject-Warning invalid cast null to unknown error
On Mon, 24 Feb 2003 Padraig O'Briain wrote : If you run your program in a debugger and put a break point in g_log you will see where the messages are coming from. Padraig hi i am trying to create a static executable using gtkmm-2.0.2, gtk-2.0.6, glib-2.0.9, libsigc++-1.2 the static build gave no errors...but when i run the program on my machine.. locally...it gives me these error (process 6231): GLIB-Object-Warning ** invalid cast from `(null)` to `unknown` (process 6231): GLIB-Object-Warning ** file gobject.c line 1325 (g_object_set_qdata); assertion `G_IS_OBJECT` (object) failed (process 6231): GLIB-Object-Warning ** invalid cast from `(null)` to `unknown` (process 6231): GLIB-Object-Warning ** file gobject.c line 1358 (g_object_set_qdata_full); assertion `G_IS_OBJECT` (object) failed (process 6231): GLIB-Object-Warning ** invalid cast from `(null)` to `unknown` (process 6231): GLIB-Object-Warning ** file gobject.c line 1347 (g_object_steal_qdata); assertion `G_IS_OBJECT` (object) failed it looks like i am passing null pointer..? how do i know where..? can anybody what exactly this means..? what should i do to solve this hi thanks for answering my question can u explain to me what might be the possible reasons for such an error since this is coming from the main..where i create the object of my helloworld class Gtk::Main::run(helloworld); Regards Vishal Modak Dept. of Computer and Information Science Univ. Of South Alabama Mobile, AL ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Difference in font layout heights?
In working on using a TextView widget for editing text in Dia, I notice that there's a significant difference in the height of multi-line text, about 12%. We use the FT2 backend for internal Dia rendering, but the TextView of course uses either the gdk renderer or xft, depending on the GDK_USE_XFT setting. The length of the text is unaffected. We use pango_ft2_render_layout to do the whole rendering, while GtkTextView uses gtk_text_layout_draw, which does line-by-line rendering. Is the line space wrong in one or the other of these? Thanks, -Lars -- Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hrdgrim of Numenor I do not agree with a word that you say, but I | will defend to the death your right to say it. | Where are we going, and --Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket? ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Difference in font layout heights?
On Mon, Feb 24, 2003 at 10:36:37AM -0600, Lars Clausen wrote: In working on using a TextView widget for editing text in Dia, I notice that there's a significant difference in the height of multi-line text, about 12%. We use the FT2 backend for internal Dia rendering, but the TextView of course uses either the gdk renderer or xft, depending on the GDK_USE_XFT setting. The length of the text is unaffected. We use pango_ft2_render_layout to do the whole rendering, while GtkTextView uses gtk_text_layout_draw, which does line-by-line rendering. Is the line space wrong in one or the other of these? TextView has settings for the amount of inter-paragraph and inter-line spacing, that default to nonzero. Havoc ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Difference in font layout heights?
On Mon, 2003-02-24 at 11:36, Lars Clausen wrote: In working on using a TextView widget for editing text in Dia, I notice that there's a significant difference in the height of multi-line text, about 12%. We use the FT2 backend for internal Dia rendering, but the TextView of course uses either the gdk renderer or xft, depending on the GDK_USE_XFT setting. The length of the text is unaffected. We use pango_ft2_render_layout to do the whole rendering, while GtkTextView uses gtk_text_layout_draw, which does line-by-line rendering. Is the line space wrong in one or the other of these? Are you setting language tags on your text? (See gtk_get_default_language()). If you don't set a language tag, GTK+ is going to leave enough spacing for any language in many cases. There are also some issues with pango_ft2_render_layout(); see: http://bugzilla.gnome.org/show_bug.cgi?id=105292 But unless you are setting the spacing attribute, shouldn't make a difference. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: TreeView: slow and very slow
Lars Clausen wrote on Sat, 22 Feb 2003 17:40:17 -0600: I use a ListStore+TreeView with CellRendererText to display the items, and I'm finding it to be extremely slow. How can I reduce the update time? If you are using Win32, you can set the environment variable PANGO_WIN32_NO_UNISCRIBE which disables GTK+s use of the Microsoft Uniscribe DLLs. The good news is that it speeds up GtkTreeView display/scroll operations considerably; the bad news is that you are disabling some i18n font-rendering functionality. It gets even worse when the ListStore is sorted, then insertion takes 42 seconds! But once the list has been displayed, sorting it takes only 2 seconds. Thus, it'd be better to turn off sorting while inserting and turn it back on afterwards, but where do I find what column sorts? Whenever I want to clear a GtkListStore, add a large number of rows, and sort them I follow this procedure: 1) Clear the GtkListStore with gtk_list_store_clear(). 2) Force the GtkListStore back into an unsorted state with: GTK_LIST_STORE(liststore)-sort_column_id = -2; This fools the GtkListStore into thinking that it has never been sorted before and makes the gtk_list_store_append() / gtk_list_store_set() operation take less time. 3) Add many rows to the GtkListStore with many gtk_list_store_append() / gtk_list_store_set() operations. 4) Sort the GtkListStore with gtk_tree_sortable_set_sort_column_id(). I hope this helps. -- Ken Rastatter, Design Engineer Sensotec, Inc. 2080 Arlingate Lane, Columbus, Ohio, 43228-4112 USA Voice: (614)850-5000 Fax: (614)850-6041 Toll Free: 1-800-848-6564 Home Page: http://www.sensotec.com ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GtkTreeView question
Is it possible to create a tree node in a GtkTreeView which has no sub-nodes but nonetheless has the expand/collapse handle? What I want to do is to create a tree view of the local filesystem. As reading in the whole filesystem tree on startup takes way to long I thought it would be better to only read in the directories that are really needed. So a sub dir is actually read in when the user clicks on the expand handle. But when a tree node has no sub-nodes there is no expand handle. Thanks in advance! -- Dipl.-Ing. (FH) Bernd Bartmann [EMAIL PROTECTED] SoHaNet Technology GmbH / Kaiserin-Augusta-Allee 10-11 / 10553 Berlin Software / Hardware / Netzwerke * Entwicklung / Verkauf / Wartung Fon: +49 30 214783-44 / Fax: +49 30 214783-46 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Difference in font layout heights?
Hi, Owen Taylor [EMAIL PROTECTED] writes: Are you setting language tags on your text? (See gtk_get_default_language()). If you don't set a language tag, GTK+ is going to leave enough spacing for any language in many cases. the documentation to gtk_get_default_language() seems to be wrong. It states that it would return an ISO language code and that the result should be freed. Truth is that it returns a PangoLanuage (and noone is supposed to know that this is just an ISO language code at the moment) and a PangoLanguage should definitely not be freed. There are also some issues with pango_ft2_render_layout(); see: http://bugzilla.gnome.org/show_bug.cgi?id=105292 But unless you are setting the spacing attribute, shouldn't make a difference. you didn't yet comment on my patch for this problem. Since GIMP-1.3.12 uses the spacing attribute, I expect to get bug-reports about it soon. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Difference in font layout heights?
On Mon, 2003-02-24 at 13:53, Sven Neumann wrote: Hi, Owen Taylor [EMAIL PROTECTED] writes: Are you setting language tags on your text? (See gtk_get_default_language()). If you don't set a language tag, GTK+ is going to leave enough spacing for any language in many cases. the documentation to gtk_get_default_language() seems to be wrong. It states that it would return an ISO language code and that the result should be freed. Truth is that it returns a PangoLanuage (and noone is supposed to know that this is just an ISO language code at the moment) and a PangoLanguage should definitely not be freed. File a bug or just go ahead and fix it :-). [ The fact that PangoLanguage has the structure of an ISO code is certainly public right now ... the only way to create a PangoLanguage is to call pango_language_to_string() ] There are also some issues with pango_ft2_render_layout(); see: http://bugzilla.gnome.org/show_bug.cgi?id=105292 But unless you are setting the spacing attribute, shouldn't make a difference. you didn't yet comment on my patch for this problem. Since GIMP-1.3.12 uses the spacing attribute, I expect to get bug-reports about it soon. I'll get to it before I do another Pango release. I'm not sure if that is the answer you were wanting to hear ;-(, It also invites another question, the answer to which is I don't know. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkTreeView question
Is it possible to create a tree node in a GtkTreeView which has no sub-nodes but nonetheless has the expand/collapse handle? What I want to do is to create a tree view of the local filesystem. As reading in the whole filesystem tree on startup takes way to long I thought it would be better to only read in the directories that are really \needed\. So a sub dir is actually read in when the user clicks on the expand handle. But when a tree node has no sub-nodes there is no expand handle. Thanks in advance! I don\'t think it is possible to do that. But you can use this trick ( i think Nautilus uses it also): you can add 1 child to your main iters ( named for ex \..\) and when the iter is expanded you can delete the first row and add the iters coresponding to your dir entries. -- RUK; #!/bin/ssh #The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ; mount ; fsck; more ; yes ; umount ; sleep Acest email a fost trimis din interfata web http://www.bumerang.ro ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
how to add properties to scrolled windows?
Hi, I am making something similar to an instant messenger in linux, and i am using gtk+. I created my instant message windows using two scrolled windows, but I cant figure out how to get the windows to automatically scroll down to the last entered text. I tried using the iter values, but I must be doing something wrong, because after i insert a new line(s) of text, the window doesn't scroll down until the user specifies so. Another problem I am having is that I want the scrolled window where the user enters text to use the "word wrap" property. Now I know how to apply the word wrap property when i insert the text into a window, but i cant seem to figure out how to set the properties of the scrolled window to wrap words as they are typed. If anyone can shed some light on these problems, i would greatly appreciate it. Thanks! --Arash Nikkar[EMAIL PROTECTED]
Re: gtk application compile error
hello, below is what `gtk-config --libs --cflags` returns on my solaris box: -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/ glib/include -I/usr/openwin/include -L/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm Raheel. - Original Message - From: hostmaster [EMAIL PROTECTED] To: Raheel [EMAIL PROTECTED] Cc: gtk-mailing-list [EMAIL PROTECTED] Sent: Monday, February 24, 2003 5:52 PM Subject: Re: gtk application compile error First, run gtk-config --libs --cflags and check each and every directories listed if the missing headers are there! On Mon, 2003-02-24 at 20:17, Raheel wrote: yes , i have tried it too. and it has given me a long list of errors. i have already told you ppl about that long list (most of them were missing headers). guyz i am very near to snatch my hairs plz help me Raheel. -- Alfredo P. Ricafort [EMAIL PROTECTED] The man-month is a fallacious and dangerous myth, for it implies that men and months are interchangeable - (F.P. Brooks Jr.,The Mythical Man-Month) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
GTK Segmentation Fault (gtk-demo)
i'm using gtk+-2.2.1 with all the latest requirements... here's the outpu of the error. [EMAIL PROTECTED] ~ $ gtk-demo (gtk-demo:9985): GLib-CRITICAL **: file ghash.c: line 254 (g_hash_table_lookup_extended): assertion `hash_table != NULL' failed Segmentation fault i'm running slackware 8.1, the weird thing is that i can rubn gtk-demo as root but not as a reg. user. i have similar problems with other gtk+2 apps, they do not run as regualr users, but do run as root. HELP! :\ -justin rm -rf /bin/laden talk is cheap because supply exceeds demand. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
problem in compiling pkg-config
ok...to compile gtk+-2.2.1, I have downloaded pkgconfig from freedesktop.org. But, when i try to run make for pkg-config, it gave me some errors (pasted below). Raheel. # pwd/downloads/pkgconfig-0.15.0 # makemake all-recursivemake[1]: Entering directory `/downloads/pkgconfig-0.15.0'Making all in glib-1.2.8make[2]: Entering directory `/downloads/pkgconfig-0.15.0/glib-1.2.8'make all-recursivemake[3]: Entering directory `/downloads/pkgconfig-0.15.0/glib-1.2.8'Making all in .make[4]: Entering directory `/downloads/pkgconfig-0.15.0/glib-1.2.8'/bin/sh ./libtool --mode=link gcc -g -O2 -Wall -D_REENTRANT -o libglib.la -version-info 0:8:0 -release 1.2 -export-dynamic garray.lo gcache.lo gcompletion.lo gdataset.lo gdate.lo gerror.lo ghash.lo ghook.lo giochannel.lo giounix.lo glist.lo gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo gutils.lomkdir .libslibtool: link: warning: `-version-info' is ignored for convenience librarieslibtool: link: warning: `-release' is ignored for convenience librariesrm -fr .libs/libglib.la .libs/libglib.* .libs/libglib-1.2.*ar cru .libs/libglib.al garray.lo gcache.lo gcompletion.lo gdataset.lo gdate.lo gerror.lo ghash.lo ghook.lo giochannel.lo giounix.lo glist.lo gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo gutils.lo./libtool: ar: not foundmake[4]: *** [libglib.la] Error 1make[4]: Leaving directory `/downloads/pkgconfig-0.15.0/glib-1.2.8'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory `/downloads/pkgconfig-0.15.0/glib-1.2.8'make[2]: *** [all-recursive-am] Error 2make[2]: Leaving directory `/downloads/pkgconfig-0.15.0/glib-1.2.8'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/downloads/pkgconfig-0.15.0'make: *** [all-recursive-am] Error 2 #
Re: gtk application compile error
I have a folder inside /usr/local/include/gtk-1.2 named gtk and gtk.h is residing in this folder. I mean for gtk.h the complete path on my box is, /usr/local/include/gtk-1.2/gtk/gtk.h Raheel. - Original Message - From: "hostmaster" [EMAIL PROTECTED] To: "Raheel" [EMAIL PROTECTED] Cc: "gtk-mailing-list" [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:45 AM Subject: Re: gtk application compile error Yes, but are your missing headers there? For example, can you find gtk.h in /usr/local/include/gtk-1.2? On Tue, 2003-02-25 at 13:05, Raheel wrote: hello, below is what `gtk-config --libs --cflags` returns on my solaris box:-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/ glib/include -I/usr/openwin/include -L/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lmRaheel. -- Alfredo P. Ricafort [EMAIL PROTECTED] "The man-month is a fallacious and dangerous myth, for it implies that men and months are interchangeable" - (F.P. Brooks Jr.,The Mythical Man-Month)
conneting Imlib2 and gtk2
I need some helpto connect Imlib2 and gtk2. I'm trying to create gtk2 base interface to manipulate image's color information (contrast brightness ...) using imlib2. now I have a problem connecting image data in gtk2 and imlib2. is there any functions that directly call to connect gtk2 and imlib2.oris there any alternative waystodo it(using Imlib2 and gtk2). this is what I have tried I tried to pass the image data into DATA32 in Imlib2 using DATA32 * imlib_image_get_data( ); after that how do we can access data in DATA32 variable is there a way to access this DATA32 variable from the gtk2 OR is there a way to insert imlib2_image to a gtkwidget and gtk image information in to Imlib2_image pls help me on the above matter and it is better if some one can send resources regarding this Regards, darshana
creating glade files from running apps
Hi Is there a way to create .glade from a running Gtk+ application? I have a gtk+ app whose gui was hard-coded. I want to make a .glade for it without creating from scratch. Does Atk help this? -- Bi C Lao ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list