removed old emission hook API.
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org> * gtk/gtksignal.[hc]: removed old emission hook API. * docs/Changes-2.0.txt: fixed sections. * gtk/gtktextbuffer.c: signal arg fixups.
This commit is contained in:
parent
1cdba88340
commit
7ae2326acb
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtksignal.[hc]: removed old emission hook API.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: fixed sections.
|
||||||
|
|
||||||
|
* gtk/gtktextbuffer.c: signal arg fixups.
|
||||||
|
|
||||||
2001-03-07 Havoc Pennington <hp@redhat.com>
|
2001-03-07 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
* gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
|
||||||
|
@ -127,62 +127,61 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
|
gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
|
||||||
gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
|
gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
|
||||||
gtk_signal_remove_emission_hook(), gtk_signal_query().
|
gtk_signal_remove_emission_hook(), gtk_signal_query().
|
||||||
gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
|
|
||||||
Also, the GtkCallbackMarshal argument to gtk_signal_connect_full() is
|
Also, the GtkCallbackMarshal argument to gtk_signal_connect_full() is
|
||||||
not supported anymore.
|
not supported anymore.
|
||||||
For many of the removed functions, similar variants are available
|
For many of the removed functions, similar variants are available
|
||||||
in the g_signal_* namespace.
|
in the g_signal_* namespace.
|
||||||
|
|
||||||
- Inserting and deleting text in GtkEntry though functions such
|
* Inserting and deleting text in GtkEntry though functions such
|
||||||
as gtk_entry_insert_text() now leave the cursor at its original
|
as gtk_entry_insert_text() now leave the cursor at its original
|
||||||
position in the text instead of moving it to the location of
|
position in the text instead of moving it to the location of
|
||||||
the insertion/deletion.
|
the insertion/deletion.
|
||||||
|
|
||||||
- The ->label field of GtkFrame widgets has been removed. (As part of
|
* The ->label field of GtkFrame widgets has been removed. (As part of
|
||||||
a change to allow the arbitrary widgets in the title position.) The
|
a change to allow the arbitrary widgets in the title position.) The
|
||||||
text can now be retrieved with the new function gtk_frame_get_text().
|
text can now be retrieved with the new function gtk_frame_get_text().
|
||||||
|
|
||||||
- The 'font' and 'font_set' declarations in RC files are now ignored. There
|
* The 'font' and 'font_set' declarations in RC files are now ignored. There
|
||||||
is a new 'font_name' field that holds the string form of a Pango font
|
is a new 'font_name' field that holds the string form of a Pango font
|
||||||
|
|
||||||
- A number of types in GDK have become subclasses of GObject. For the
|
* A number of types in GDK have become subclasses of GObject. For the
|
||||||
most part, this should not break anyone's code. However, it's now
|
most part, this should not break anyone's code. However, it's now
|
||||||
possible/encouraged to use g_object_ref()/g_object_unref() and other
|
possible/encouraged to use g_object_ref()/g_object_unref() and other
|
||||||
GObject features with these GDK types. The converted types are:
|
GObject features with these GDK types. The converted types are:
|
||||||
GdkWindow, GdkDrawable, GdkPixmap, GdkImage, GdkGC, GdkDragContext,
|
GdkWindow, GdkDrawable, GdkPixmap, GdkImage, GdkGC, GdkDragContext,
|
||||||
GdkColormap
|
GdkColormap
|
||||||
|
|
||||||
- All drawables including pixmaps used to have a type tag, the
|
* All drawables including pixmaps used to have a type tag, the
|
||||||
GdkWindowType enumeration, which included GDK_WINDOW_PIXMAP.
|
GdkWindowType enumeration, which included GDK_WINDOW_PIXMAP.
|
||||||
GdkWindowType is now a property of GdkWindow _only_, and there is
|
GdkWindowType is now a property of GdkWindow _only_, and there is
|
||||||
no GDK_WINDOW_PIXMAP. You can use the GDK_IS_PIXMAP() macro to see
|
no GDK_WINDOW_PIXMAP. You can use the GDK_IS_PIXMAP() macro to see
|
||||||
if you have a pixmap, if you need to know that.
|
if you have a pixmap, if you need to know that.
|
||||||
|
|
||||||
- GtkStyle and GtkRcStyle are now subclasses of GObject as well. This
|
* GtkStyle and GtkRcStyle are now subclasses of GObject as well. This
|
||||||
requires fairly extensive changes to theme engines quite badly, but
|
requires fairly extensive changes to theme engines quite badly, but
|
||||||
shouldn't affect most other code.
|
shouldn't affect most other code.
|
||||||
|
|
||||||
- xthickness/ythickness have moved from GtkStyleClass to GtkStyle
|
* xthickness/ythickness have moved from GtkStyleClass to GtkStyle
|
||||||
(from class to instance). This gives themes a bit more flexibility
|
(from class to instance). This gives themes a bit more flexibility
|
||||||
and is generally more of the Right Thing. You can trivially fix
|
and is generally more of the Right Thing. You can trivially fix
|
||||||
your code with s/style->klass->xthickness/style->xthickness/g and
|
your code with s/style->klass->xthickness/style->xthickness/g and
|
||||||
same for ythickness.
|
same for ythickness.
|
||||||
|
|
||||||
- Some GtkStyle draw_ methods have been removed (cross, oval, ramp)
|
* Some GtkStyle draw_ methods have been removed (cross, oval, ramp)
|
||||||
and others have been added (expander, layout). This will require
|
and others have been added (expander, layout). This will require
|
||||||
changes to theme engines.
|
changes to theme engines.
|
||||||
|
|
||||||
- If you were using private GDK types, they have been rearranged
|
* If you were using private GDK types, they have been rearranged
|
||||||
significantly. You shouldn't use private types. ;-)
|
significantly. You shouldn't use private types. ;-)
|
||||||
|
|
||||||
- The visual for a widget, and also the default visual is now derived
|
* The visual for a widget, and also the default visual is now derived
|
||||||
from the colormap for the widget and the default colormap.
|
from the colormap for the widget and the default colormap.
|
||||||
gtk_widget_set_visual(), gtk_widget_set_default_visual(), gtk_widget_push_visual()
|
gtk_widget_set_visual(), gtk_widget_set_default_visual(), gtk_widget_push_visual()
|
||||||
and gtk_widget_pop_visual() now do nothing. Since the visual always
|
and gtk_widget_pop_visual() now do nothing. Since the visual always
|
||||||
had to match that of the colormap, it is safe to simply delete
|
had to match that of the colormap, it is safe to simply delete
|
||||||
all references to these functions.
|
all references to these functions.
|
||||||
|
|
||||||
- A number of functions in GDK have been renamed for consistency and
|
* A number of functions in GDK have been renamed for consistency and
|
||||||
clarity. #defines to provide backwards compatibility have been
|
clarity. #defines to provide backwards compatibility have been
|
||||||
included, but can be disabled by defineing GDK_DISABLE_COMPAT_H.
|
included, but can be disabled by defineing GDK_DISABLE_COMPAT_H.
|
||||||
|
|
||||||
@ -214,15 +213,14 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
|
|
||||||
#define gdk_rgb_get_cmap gdk_rgb_get_colormap
|
#define gdk_rgb_get_cmap gdk_rgb_get_colormap
|
||||||
|
|
||||||
- gdk_pixmap_foreign_new() no longer calls XFreePixmap() on the
|
* gdk_pixmap_foreign_new() no longer calls XFreePixmap() on the
|
||||||
pixmap when the GdkPixmap is finalized. This change corresponds
|
pixmap when the GdkPixmap is finalized. This change corresponds
|
||||||
to the behavior of gdk_window_foreign_new(), and fixes a lot
|
to the behavior of gdk_window_foreign_new(), and fixes a lot
|
||||||
of problems with code where the pixmap wasn't supposed to be
|
of problems with code where the pixmap wasn't supposed to be
|
||||||
freed. If XFreePixmap() is needed, it can be done using the
|
freed. If XFreePixmap() is needed, it can be done using the
|
||||||
destroy-notification facilities of g_object_set_data().
|
destroy-notification facilities of g_object_set_data().
|
||||||
|
|
||||||
- GtkProgress/GtkProgressBar had serious problems in GTK 1.2.
|
* GtkProgress/GtkProgressBar had serious problems in GTK 1.2.
|
||||||
|
|
||||||
- Only 3 or 4 functions are really needed for 95% of progress
|
- Only 3 or 4 functions are really needed for 95% of progress
|
||||||
interfaces; GtkProgress[Bar] had about 25 functions, and
|
interfaces; GtkProgress[Bar] had about 25 functions, and
|
||||||
didn't even include these 3 or 4.
|
didn't even include these 3 or 4.
|
||||||
@ -237,17 +235,13 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
change look-and-feel for no good reason
|
change look-and-feel for no good reason
|
||||||
- The split between GtkProgress and GtkProgressBar makes no sense
|
- The split between GtkProgress and GtkProgressBar makes no sense
|
||||||
to me whatsoever.
|
to me whatsoever.
|
||||||
|
This was a big wart on GTK and made people waste lots of time,
|
||||||
This was a big wart on GTK and made people waste lots of time,
|
both learning and using the interface.
|
||||||
both learning and using the interface.
|
So, we have added what we feel is the correct API, and marked all the
|
||||||
|
rest deprecated. However, the changes are 100% backward-compatible and
|
||||||
So, we have added what we feel is the correct API, and marked all the
|
should break no existing code.
|
||||||
rest deprecated. However, the changes are 100% backward-compatible and
|
The following 5 functions are the new programming interface and you
|
||||||
should break no existing code.
|
should consider changing your code to use them:
|
||||||
|
|
||||||
The following 5 functions are the new programming interface and you
|
|
||||||
should consider changing your code to use them:
|
|
||||||
|
|
||||||
void gtk_progress_bar_pulse (GtkProgressBar *pbar);
|
void gtk_progress_bar_pulse (GtkProgressBar *pbar);
|
||||||
void gtk_progress_bar_set_text (GtkProgressBar *pbar,
|
void gtk_progress_bar_set_text (GtkProgressBar *pbar,
|
||||||
const gchar *text);
|
const gchar *text);
|
||||||
@ -264,7 +258,7 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
could be done by accessing the struct fields of this structure should be
|
could be done by accessing the struct fields of this structure should be
|
||||||
accesible otherwise.
|
accesible otherwise.
|
||||||
|
|
||||||
- GtkMenuPositionFunc has a new parameter push_in which controls how
|
* GtkMenuPositionFunc has a new parameter push_in which controls how
|
||||||
menus placed outside the screen is handled. If this is set to true and
|
menus placed outside the screen is handled. If this is set to true and
|
||||||
part of the menu is outside the screen then Gtk+ pushes it into the visible
|
part of the menu is outside the screen then Gtk+ pushes it into the visible
|
||||||
area. Otherwise the menu is cut of at the end of the visible screen area.
|
area. Otherwise the menu is cut of at the end of the visible screen area.
|
||||||
@ -273,7 +267,7 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
that the items are placed in the same place as if the menu was placed
|
that the items are placed in the same place as if the menu was placed
|
||||||
outside the screen, using menu scrolling if necessary.
|
outside the screen, using menu scrolling if necessary.
|
||||||
|
|
||||||
- The "draw" signal and virtual method on GtkWidget has been removed.
|
* The "draw" signal and virtual method on GtkWidget has been removed.
|
||||||
All drawing should now occur by invalidating a region of the widget
|
All drawing should now occur by invalidating a region of the widget
|
||||||
(call gdk_window_invalidate_rect() or gtk_widget_queue_draw() for
|
(call gdk_window_invalidate_rect() or gtk_widget_queue_draw() for
|
||||||
example to invalidate a region). GTK+ merges all invalid regions,
|
example to invalidate a region). GTK+ merges all invalid regions,
|
||||||
@ -281,29 +275,27 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
invalid regions. gtk_widget_draw() is deprecated but still works; it
|
invalid regions. gtk_widget_draw() is deprecated but still works; it
|
||||||
adds the passed-in area to the invalid region and immediately sends
|
adds the passed-in area to the invalid region and immediately sends
|
||||||
expose events for the current invalid region.
|
expose events for the current invalid region.
|
||||||
|
|
||||||
Most widgets will work fine if you just delete their "draw"
|
Most widgets will work fine if you just delete their "draw"
|
||||||
implementation, since they will already have working expose_event
|
implementation, since they will already have working expose_event
|
||||||
implementations. The draw method was rarely called in practice
|
implementations. The draw method was rarely called in practice
|
||||||
anyway.
|
anyway.
|
||||||
|
|
||||||
- GtkText and GtkTree are buggy and broken. We don't recommend using
|
* The draw_default and draw_focus methods/signals on GtkWidget are
|
||||||
|
gone; simply draw things in your expose handler.
|
||||||
|
gtk_widget_draw_focus() and gtk_widget_draw_default() wrapper
|
||||||
|
functions are also gone; just queue a draw on the widget,
|
||||||
|
or the part affected by the focus/default anyway.
|
||||||
|
Also, GtkWidget now has default implementations for focus_in_event
|
||||||
|
and focus_out_event. These set/unset GTK_HAS_FOCUS, and queue a
|
||||||
|
draw. So if your focus in/out handler just does that, you can delete
|
||||||
|
it.
|
||||||
|
|
||||||
|
* GtkText and GtkTree are buggy and broken. We don't recommend using
|
||||||
them, and changing old code to avoid them is a good idea. The
|
them, and changing old code to avoid them is a good idea. The
|
||||||
recommended alternatives are GtkTextView and GtkTreeView. The
|
recommended alternatives are GtkTextView and GtkTreeView. The
|
||||||
broken widgets are not declared in the headers by default; to use
|
broken widgets are not declared in the headers by default; to use
|
||||||
them, define the symbol GTK_ENABLE_BROKEN during compilation. In
|
them, define the symbol GTK_ENABLE_BROKEN during compilation. In
|
||||||
some future release, these widgets will be removed from GTK+.
|
some future release, these widgets will be removed from GTK+.
|
||||||
|
|
||||||
- GdkColorContext is gone; you probably weren't using it anyway.
|
* GdkColorContext is gone; you probably weren't using it anyway.
|
||||||
Use GdkColormap and the gdk_rgb_* functions instead.
|
Use GdkColormap and the gdk_rgb_* functions instead.
|
||||||
|
|
||||||
- The draw_default and draw_focus methods/signals on GtkWidget are
|
|
||||||
gone; simply draw things in your expose handler.
|
|
||||||
gtk_widget_draw_focus() and gtk_widget_draw_default() wrapper
|
|
||||||
functions are also gone; just queue a draw on the widget,
|
|
||||||
or the part affected by the focus/default anyway.
|
|
||||||
|
|
||||||
Also, GtkWidget now has default implementations for focus_in_event
|
|
||||||
and focus_out_event. These set/unset GTK_HAS_FOCUS, and queue a
|
|
||||||
draw. So if your focus in/out handler just does that, you can delete
|
|
||||||
it.
|
|
||||||
|
@ -126,12 +126,6 @@ void gtk_signal_compat_matched (GtkObject *object,
|
|||||||
guint action);
|
guint action);
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: non-functional relicts */
|
|
||||||
typedef gpointer GtkEmissionHook;
|
|
||||||
#define gtk_signal_add_emission_hook(i,h,d) (0)
|
|
||||||
#define gtk_signal_remove_emission_hook(i,h) while (0)
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
@ -165,13 +165,8 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
|
|||||||
gtk_marshal_VOID__BOXED_STRING_INT,
|
gtk_marshal_VOID__BOXED_STRING_INT,
|
||||||
GTK_TYPE_NONE,
|
GTK_TYPE_NONE,
|
||||||
3,
|
3,
|
||||||
#if 0
|
|
||||||
/* FIXME */
|
|
||||||
GTK_TYPE_TEXT_ITER,
|
GTK_TYPE_TEXT_ITER,
|
||||||
GTK_TYPE_STRING,
|
GTK_TYPE_STRING,
|
||||||
#endif
|
|
||||||
GTK_TYPE_POINTER,
|
|
||||||
GTK_TYPE_POINTER,
|
|
||||||
GTK_TYPE_INT);
|
GTK_TYPE_INT);
|
||||||
|
|
||||||
signals[INSERT_PIXBUF] =
|
signals[INSERT_PIXBUF] =
|
||||||
@ -183,11 +178,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
|
|||||||
gtk_marshal_VOID__BOXED_OBJECT,
|
gtk_marshal_VOID__BOXED_OBJECT,
|
||||||
GTK_TYPE_NONE,
|
GTK_TYPE_NONE,
|
||||||
2,
|
2,
|
||||||
#if 0
|
|
||||||
/* FIXME */
|
|
||||||
GTK_TYPE_TEXT_ITER,
|
GTK_TYPE_TEXT_ITER,
|
||||||
#endif
|
|
||||||
GTK_TYPE_POINTER,
|
|
||||||
GDK_TYPE_PIXBUF);
|
GDK_TYPE_PIXBUF);
|
||||||
|
|
||||||
signals[INSERT_CHILD_ANCHOR] =
|
signals[INSERT_CHILD_ANCHOR] =
|
||||||
@ -199,11 +190,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
|
|||||||
gtk_marshal_VOID__BOXED_OBJECT,
|
gtk_marshal_VOID__BOXED_OBJECT,
|
||||||
GTK_TYPE_NONE,
|
GTK_TYPE_NONE,
|
||||||
2,
|
2,
|
||||||
#if 0
|
|
||||||
/* FIXME */
|
|
||||||
GTK_TYPE_TEXT_ITER,
|
GTK_TYPE_TEXT_ITER,
|
||||||
#endif
|
|
||||||
GTK_TYPE_POINTER,
|
|
||||||
GTK_TYPE_TEXT_CHILD_ANCHOR);
|
GTK_TYPE_TEXT_CHILD_ANCHOR);
|
||||||
|
|
||||||
signals[DELETE_RANGE] =
|
signals[DELETE_RANGE] =
|
||||||
@ -215,13 +202,8 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
|
|||||||
gtk_marshal_VOID__BOXED_BOXED,
|
gtk_marshal_VOID__BOXED_BOXED,
|
||||||
GTK_TYPE_NONE,
|
GTK_TYPE_NONE,
|
||||||
2,
|
2,
|
||||||
#if 0
|
|
||||||
/* FIXME */
|
|
||||||
GTK_TYPE_TEXT_ITER,
|
GTK_TYPE_TEXT_ITER,
|
||||||
GTK_TYPE_TEXT_ITER,
|
GTK_TYPE_TEXT_ITER);
|
||||||
#endif
|
|
||||||
GTK_TYPE_POINTER,
|
|
||||||
GTK_TYPE_POINTER);
|
|
||||||
|
|
||||||
signals[CHANGED] =
|
signals[CHANGED] =
|
||||||
g_signal_newc ("changed",
|
g_signal_newc ("changed",
|
||||||
|
@ -6242,10 +6242,10 @@ event_watcher_down (void)
|
|||||||
guint signal_id;
|
guint signal_id;
|
||||||
|
|
||||||
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
||||||
gtk_signal_remove_emission_hook (signal_id, event_watcher_enter_id);
|
// gtk_signal_remove_emission_hook (signal_id, event_watcher_enter_id);
|
||||||
event_watcher_enter_id = 0;
|
event_watcher_enter_id = 0;
|
||||||
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
||||||
gtk_signal_remove_emission_hook (signal_id, event_watcher_leave_id);
|
// gtk_signal_remove_emission_hook (signal_id, event_watcher_leave_id);
|
||||||
event_watcher_leave_id = 0;
|
event_watcher_leave_id = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6260,9 +6260,9 @@ event_watcher_toggle (void)
|
|||||||
guint signal_id;
|
guint signal_id;
|
||||||
|
|
||||||
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
||||||
event_watcher_enter_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
// event_watcher_enter_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
||||||
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
||||||
event_watcher_leave_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
// event_watcher_leave_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6242,10 +6242,10 @@ event_watcher_down (void)
|
|||||||
guint signal_id;
|
guint signal_id;
|
||||||
|
|
||||||
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
||||||
gtk_signal_remove_emission_hook (signal_id, event_watcher_enter_id);
|
// gtk_signal_remove_emission_hook (signal_id, event_watcher_enter_id);
|
||||||
event_watcher_enter_id = 0;
|
event_watcher_enter_id = 0;
|
||||||
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
||||||
gtk_signal_remove_emission_hook (signal_id, event_watcher_leave_id);
|
// gtk_signal_remove_emission_hook (signal_id, event_watcher_leave_id);
|
||||||
event_watcher_leave_id = 0;
|
event_watcher_leave_id = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -6260,9 +6260,9 @@ event_watcher_toggle (void)
|
|||||||
guint signal_id;
|
guint signal_id;
|
||||||
|
|
||||||
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("enter_notify_event", GTK_TYPE_WIDGET);
|
||||||
event_watcher_enter_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
// event_watcher_enter_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
||||||
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
signal_id = gtk_signal_lookup ("leave_notify_event", GTK_TYPE_WIDGET);
|
||||||
event_watcher_leave_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
// event_watcher_leave_id = gtk_signal_add_emission_hook (signal_id, event_watcher, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user