Hi,
James Su [EMAIL PROTECTED] writes:
Recently, I'm developing a IM Module for gtk+-2.x, but I met a problem.
Because I registered a new class within my IM Module by
g_type_register_static, then when I open a input context the second
time, the application crashed. The error message shows
Hi,
The class I registered is not the im module class, it's another class
defined by myself. The im class is registered by
g_type_module_register_type().
Regards
James Su
Sven Neumann wrote:
Hi,
James Su [EMAIL PROTECTED] writes:
Recently, I'm developing a IM Module for gtk+-2.x, but I met a
On Thu, 2003-03-27 at 12:32, James Su wrote:
Hi,
The class I registered is not the im module class, it's another class
defined by myself. The im class is registered by
g_type_module_register_type().
Regards
James Su
Couldn't you do a g_type_from_name first for your static type and only
hi
I d like to read a file with this call
If I understood, it reads all the remaining file in one time
here s the function I use :
void fill_buffer(GtkTextBuffer *buffer,GIOChannel *file_desc)
{
gint *data_length;
GIOStatus read_status;
GError **error;
gchar **file_data;
void fill_buffer(GtkTextBuffer *buffer,GIOChannel *file_desc)
{
gint *data_length;
GIOStatus read_status;
GError **error;
It is wrong. I think the correct solution is:
GError *error = NULL;
It is wrong. I think the correct solution is:
GError *error = NULL;
And with this new error struct the function call seems like this:
read_status=g_io_channel_read_to_end(file_desc,file_data,data_length,error);
And error handling lik this:
if (error != NULL) {
g_error
Sure it helps !!it works fine, thanks you.
but, from where did you find that?
Read the source :)
and why use a GError ** can' t work ? though I allocated memory to it.
If you want to use GError ** you probably need like this:
GError **error = g_new0(GError *,1);
*error = NULL;
Hi,
Axel [EMAIL PROTECTED] writes:
and why use a GError ** can' t work ? though I allocated memory to
it. It s more a C problem than GTK I think, but I d like to understand
it.
you should probably read the docs for GError then.
Salut, Sven
___
Hi,
James Su [EMAIL PROTECTED] writes:
The class I registered is not the im module class, it's another class
defined by myself. The im class is registered by
g_type_module_register_type().
uh, oh, how is that supposed to work? A dynamic module can not register
a static type. What if the
hi
thx all for your advice, read channel works well
but, I have a problem
here is the error I get when I try to read a file with accentued
characters like é è à and so...
** ERROR **: Invalid byte sequence in conversion input
aborting...
Aborted
strings are handled as UTF-8, should be due to
Hi,
Axel [EMAIL PROTECTED] writes:
thx all for your advice, read channel works well
but, I have a problem
here is the error I get when I try to read a file with accentued
characters like é è à and so...
** ERROR **: Invalid byte sequence in conversion input
aborting...
Aborted
Hello,
I have a scrolled window, created with
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW (scroll), targetbox);
The targetbox is a vbox, which will get only another vbox named
questionbox packed in. This questionbox gets now stuffed with
widgets. I do not know at build time how
Yes, I had tried it. But the application is crashed when the IM Module
is loaded the third time.
Regards
James Su
James Durie wrote:
On Thu, 2003-03-27 at 12:32, James Su wrote:
Hi,
The class I registered is not the im module class, it's another class
defined by myself. The im class is
Then, how can I use my own class within a IM module? There is no type
register function like g_type_register_dynamic.
Regards
James Su
Sven Neumann wrote:
Hi,
James Su [EMAIL PROTECTED] writes:
The class I registered is not the im module class, it's another class
defined by myself. The im
--- Paul Davis [EMAIL PROTECTED] wrote:
First Point:
that's not what it says. it says:
gintgdk_input_add (gint
source,
GdkInputCondition condition,
Thanks.
Yes, I understand that enter key must be pressed. I
have done that. But still failed.
Actaully, I am trying to read from a socket. I have
already done that thru signal I/O. But I wanted to use
the generic functions given by the GTK.
But I have got one lead from your reply. That I
Hi,
James Su [EMAIL PROTECTED] writes:
Then, how can I use my own class within a IM module? There is no type
register function like g_type_register_dynamic.
I'm pretty sure there is exactly this function. But don't take my word
that this is the right way to do this, I'm more or less only
Hi,
Shiraz Baig [EMAIL PROTECTED] writes:
Yes, I understand that enter key must be pressed. I
have done that. But still failed.
Actaully, I am trying to read from a socket. I have
already done that thru signal I/O. But I wanted to use
the generic functions given by the GTK.
actually you
18 matches
Mail list logo