Bug 615660 - Missing API for GSEAL
Missing API for GSEAL
Status: RESOLVED DUPLICATE of bug 592405
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-04-13 14:44 UTC by Xavier Claessens
Modified: 2010-05-03 09:55 UTC (History)
2 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description Xavier Claessens 2010-04-13 14:44:30 UTC
I'm trying to build empathy with GSEAL enabled. It seems some APIs are missing on GtkTextView:

1) gtk_text_view_get_v/hadjustment() to access GtkTextView->v/hadjustment. I worked around that by taking the text view's parent widget and if GTK_IS_SCROLLED_WINDOW() then I take the adjustments from it. Is that correct way to do?

2) gtk_text_view_get_im_context() and gtk_text_view_set_need_im_reset(): Those are used by a hack copied from gaim a long time ago. See that Gaim bug for details: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=104299. The problem is when handling ENTER key-press, the IM could need to finish some Chineese character, if not then we have to send the message in empathy. See the code: http://git.gnome.org/browse/empathy/tree/libempathy-gtk/empathy-chat.c#n1454
Comment 1 Javier Jardón (IRC: jjardon) 2010-04-13 14:50:35 UTC
Hello Xavier,

for the second case take a look to bug #163251
Comment 2 Javier Jardón (IRC: jjardon) 2010-04-13 15:02:27 UTC
Also, Did you read my comments in the empathy bug?

https://bugzilla.gnome.org/show_bug.cgi?id=586476#c16
Comment 3 Xavier Claessens 2010-04-13 15:03:49 UTC
(In reply to comment #0)
> 2) gtk_text_view_get_im_context() and gtk_text_view_set_need_im_reset(): Those
> are used by a hack copied from gaim a long time ago. See that Gaim bug for
> details: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=104299. The
> problem is when handling ENTER key-press, the IM could need to finish some
> Chineese character, if not then we have to send the message in empathy. See the
> code:
> http://git.gnome.org/browse/empathy/tree/libempathy-gtk/empathy-chat.c#n1454

It could be related/dup of bugs #163251 and #592405. But I let GTK experts judge :)
Comment 4 Xavier Claessens 2010-05-03 09:55:59 UTC
Looking closer to those 2 bugs, it really seems this one is dup.

*** This bug has been marked as a duplicate of bug 592405 ***

Note You need to log in before you can comment on or make changes to this bug.