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
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
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
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.
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
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
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
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.
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
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
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
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
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
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
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*
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
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
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
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
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
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
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
, 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
23 matches
Mail list logo