Re: Segmentation fault while reading from entry.

2007-06-03 Thread Nickolai Dobrynin
Szymon, In addition to what Yeti has pointed out, one thing that's obviously wrong is that you don't seem to have anything in your code that adds the text entry to the window, i.e. gtk_container_add(GTK_CONTAINER(windowP), widgetP); Also, why not use gtk_entry_get_text(...) to read the content

Re: Plotting graphs

2007-05-24 Thread Nickolai Dobrynin
Greetings, GtkExtra comes with a decent number of sample programs demonstrating its capabilities. Please refer to them. Personally, I think, GtkExtra is a great choice for plotting. It has an absolute minimum number of dependencies, which makes it easy to maintain and upgrade, and is very

Re: Combining GTK+ and C++

2006-10-14 Thread Nickolai Dobrynin
Chris, This seems pretty helpful, indeed. The only thing I am wondering about is why there is no knowledge base of some sort that addresses that particular issue of getting GTK+ and C++ to interoperate. I have no doubt in my mind that so many people could use that. And the link that you sent

Re: Combining GTK+ and C++

2006-10-13 Thread Nickolai Dobrynin
Brian, Certainly, I am well aware of gtkmm. I've actually done serious work in it previously. The library I am currently using, called GtkExtra, is GTK+-based, but I still would like to code my stuff in C++. The framework gtkmm provides is overly and unnecessarily general for what I need.

Examples of how to derive from GObject?

2006-10-09 Thread Nickolai Dobrynin
I was wondering if someone could point me to the code that demonstrates the process of inheriting from GObject? I find the online tutorial hard to follow because it only shows a few code fragments without presenting the complete picture. Any additional online (re)sources? Many thanks, Nickolai

Re: Preventing overwrite mode in GtkEntry

2006-09-22 Thread Nickolai Dobrynin
Paul, Thanks for your input. It looks like the obvious way of getting around the default signal handler for toggle_overwrite is by using 'g_signal_connect_after'. This is *A* way of dealing with that. However, is it possible to completely drop the default handler so it wouldn't even be around

Preventing overwrite mode in GtkEntry

2006-09-21 Thread Nickolai Dobrynin
I was wondering if there is a way to make it so that the text that gets typed into the GtkEntry widget is always *inserted* into it and never replaces whatever was previously entered. In other words, is it possible to suppress the Insert key so that the overwrite mode could never be entered into

Re: Preventing overwrite mode in GtkEntry

2006-09-21 Thread Nickolai Dobrynin
Paul, But do you really need to do that? Most users (AFAIK) never use overwrite mode, but those who do will be confused with your application. It's the users who've demanded that feature. The very nature of the application is odd. It involves entering a lot of financial data in realtime.

Re: How to get the label's height?

2006-08-16 Thread Nickolai Dobrynin
Damian, Just a guess. Are you certain that the widget has been realized by the time you start querying it for size? The size is only meaningful if your widget had previously been realized. Putting your label inside an EventBox would hardly make a difference. Regards, Nickolai

Rotating check button as a whole

2006-05-05 Thread Nickolai Dobrynin
Is there any way to rotate the entire check button widget by 90 degrees? (So, for example, its text label would end up above the clicking area and extend up rather than right). Thanks, Nickolai Dobrynin ___ gtk-app-devel-list mailing list gtk-app

Re: Issue with gtk+ 2.8.15 for win32

2006-03-24 Thread Nickolai Dobrynin
1. Use destroy rather than destroy_event as the second argument to your call. destroy is a signal rather than an event. 2. IIRC, gtk_signal_connect has been deprecated in favor of g_signal_connect. Regards, Nickolai On 3/24/06, Elden Armbrust [EMAIL PROTECTED] wrote: It appears I

Re: reinitialize application

2006-03-10 Thread Nickolai Dobrynin
Andreas, I highly recommend that you go through the GTK+ tutorial first. This will give you some basic grounds on how GTK+ works. Just a few remarks here: 1. You probably want to use gtk_widget_show_all in your 'main' function, rather than just 'gtk_widget_show'. 2. If I understand you

Re: GtkExtra example doesn't build

2006-02-06 Thread Nickolai Dobrynin
Al, I'm using Gentoo on Pentium, and I'm doing a source installation for my account only. Yes, there is an ebuild of this package, but it was only created recently (on January 1st) and we didn't upgrade since. The installation itself went absolutely fine at all stages. It's the testrealtime.c

Re: GtkExtra example doesn't build

2006-02-05 Thread Nickolai Dobrynin
Al, Thanks for your response. I've tried both the stable release 2.1.1 and the recent CVS snapshot, and the same problem showed up in both. Even the compilation errors are identical. (One additional minor problem I had was that I was forced to write, e.g., #include gtkextra/gtkplot.h instead

GtkExtra example doesn't build

2006-02-03 Thread Nickolai Dobrynin
Good afternoon -- I have just downloaded the latest CVS snapshot of GtkExtra and tried to build testrealtime.c. The error messages I got were: testrealtime.cc:154: error: invalid conversion from `int' to `GtkPlotAxisPos' testrealtime.cc:154: error: initializing argument 2 of `GtkPlotAxis*

Re: multithread

2005-11-16 Thread Nickolai Dobrynin
One tiny comment. 'sleep' is not necessarily what you want to use in a multi-threaded program, as it puts the entire process to sleep. A thread-aware version of 'sleep' called 'nanosleep' (#include time.h) may be more suitable for you. If I am not mistaken, 'sleep' only operates on a multiple of 1

GtkButton doesn't always react on mouse clicks

2005-11-02 Thread Nickolai Dobrynin
I have a GtkButton in my application that gets deactivated (greyed out, via gtk_widget_set_sensitive) each time it gets clicked on and, at some point later, re-activated. Here is the problem I have. Suppose I click on the button (thereby deactivating it) and then do NOT move the mouse away until

Windows don't fully paint on start up

2005-09-16 Thread Nickolai Dobrynin
I am writing an application that has two windows. Frequently, one or both windows do not get painted properly on start up, in the sense that some widgets are missing until, for example, the mouse is moved over them. Once I minimize the window and then maximize it, it repaints itself perfectly, and

General CPU usage question

2005-08-02 Thread Nickolai Dobrynin
I'm sure this question has been asked before, so maybe just point me to the right place where I could look. Suppose, as a simple example, I am setting the bg color of a GtkEventBox and suppose there is a lot of redundancy, meaning that, say, I set the background color to red when it's already

Problem packing labels into GtkTable

2005-07-16 Thread Nickolai Dobrynin
Hi, Does anybody have a working example of packing multiple labels into GtkTable? I know how to do this with buttons, but when I do it the same way with labels, I get a seg fault or illegal instruction. Thanks, Nickolai ___ gtk-app-devel-list

Re: Problem packing labels into GtkTable

2005-07-16 Thread Nickolai Dobrynin
will probably be able to port it to C++. Regards, Nickolai On 7/16/05, William Park [EMAIL PROTECTED] wrote: On Sat, Jul 16, 2005 at 03:14:12PM -0500, Nickolai Dobrynin wrote: Hi, Does anybody have a working example of packing multiple labels into GtkTable? I know how to do this with buttons

Displaying 4 numbers on 2 different rows, in a single tree cell

2005-07-14 Thread Nickolai Dobrynin
Hi -- Is there any way I can display four numbers in a single TreeView cell so that each individual number would occupy the upper left, upper right, lower left and lower right corner, respectively: ___ | 1 2 | | | | 3 4 | -- It's

Re: How to draw a custom border across multiple cells in TreeView?

2005-07-07 Thread Nickolai Dobrynin
, is there anything that lets me draw a different color frame around several horizontal cells in a text table? Anybody can please explain how to achieve this? Best regards, Nickolai Dobrynin ___ gtk-app-devel-list mailing list gtk-app