Re: gtk2 textview widget popup
- From: Havoc Pennington <hp redhat com>
- To: Evan Martin <martine cs washington edu>
- Cc: Olivier Sessink <olivier lx student wau nl>, gtk-app-devel-list gnome org
- Subject: Re: gtk2 textview widget popup
- Date: 04 May 2002 00:44:21 -0400
Evan Martin <martine cs washington edu> writes:
What I use for GtkSpell (see a screenshot of the menu at
http://gtkspell.sf.net) is
g_signal_connect(G_OBJECT(view), "populate-popup",
G_CALLBACK(populate_popup), spell);
This function looks like:
static void
populate_popup(GtkTextView *textview, GtkMenu *menu, GtkSpell *spell) {
and I prepend to the menu.
(You'd think this signal was designed to support this functionality or
something! :P)
Hmm...
Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor redhat com>
[ Patch from Havoc Pennington <hp redhat com> ]
* gtk/gtktextview.h (struct _GtkTextViewClass): add
populate_popup signal as a hook for extending the default popup menu
Shows what kind of memory I have. And then people don't believe me
when I say it's bad. ;-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]