forked from AuroraMiddleware/gtk
got rid of gtk_widget_popup(), a function that bad needs to be nuked, not
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org> * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that bad needs to be nuked, not just deprecated. * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use gtk_widget_popup(). * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g; * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated widget. * docs/Changes-2.0.txt: updates.
This commit is contained in:
parent
270e4f1802
commit
770938bf2f
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
|
||||||
|
bad needs to be nuked, not just deprecated.
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
|
||||||
|
gtk_widget_popup().
|
||||||
|
|
||||||
|
* gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
|
||||||
|
|
||||||
|
* gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
|
||||||
|
widget.
|
||||||
|
|
||||||
|
* docs/Changes-2.0.txt: updates.
|
||||||
|
|
||||||
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
|
||||||
|
@ -206,12 +206,16 @@ Incompatible Changes from GTK+-1.2 to GTK+-2.0:
|
|||||||
#define gdk_cursor_destroy gdk_cursor_unref
|
#define gdk_cursor_destroy gdk_cursor_unref
|
||||||
|
|
||||||
(Note that g_object_ref() and g_object_unref() may be used for all of
|
(Note that g_object_ref() and g_object_unref() may be used for all of
|
||||||
the above.)
|
the above _ref and _unref functions.)
|
||||||
|
|
||||||
#define gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) \
|
#define gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) \
|
||||||
gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height)
|
gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height)
|
||||||
|
|
||||||
#define gdk_rgb_get_cmap gdk_rgb_get_colormap
|
#define gdk_rgb_get_cmap gdk_rgb_get_colormap
|
||||||
|
|
||||||
|
gtk_widget_popup() was removed, it was only usable for GtkWindows, and
|
||||||
|
there the same effect can be achived by gtk_widget_set_uposition() and
|
||||||
|
gtk_widget_show().
|
||||||
|
|
||||||
* 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
|
||||||
|
@ -717,6 +717,15 @@ produce superscript and subscript.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ##### SIGNAL GtkWidget::activate-mnemonic ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@widget: the object which received the signal.
|
||||||
|
@arg1:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
<!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
|
<!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
@ -1454,6 +1463,34 @@ Set the varargs type for a fundamental type @foreign_type.
|
|||||||
fundamental type.
|
fundamental type.
|
||||||
@varargs_type: Must be a GtkType which is either structured or flag, or NONE.
|
@varargs_type: Must be a GtkType which is either structured or flag, or NONE.
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION gtk_widget_activate_mnemonic ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@widget:
|
||||||
|
@group_cycling:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION gtk_widget_popup ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@widget:
|
||||||
|
@x:
|
||||||
|
@y:
|
||||||
|
|
||||||
|
<!-- ##### FUNCTION gtk_window_activate_mnemonic ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@window:
|
||||||
|
@keyval:
|
||||||
|
@modifier:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_window_get_default_accel_group ##### -->
|
<!-- ##### FUNCTION gtk_window_get_default_accel_group ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
@ -20,11 +20,13 @@ GtkTreeStore
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@parent:
|
@parent:
|
||||||
@sort_list:
|
|
||||||
@stamp:
|
@stamp:
|
||||||
@root:
|
@root:
|
||||||
@last:
|
@last:
|
||||||
@n_columns:
|
@n_columns:
|
||||||
|
@sort_column_id:
|
||||||
|
@sort_list:
|
||||||
|
@order:
|
||||||
@column_headers:
|
@column_headers:
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_tree_store_new ##### -->
|
<!-- ##### FUNCTION gtk_tree_store_new ##### -->
|
||||||
|
@ -571,16 +571,6 @@ GtkWidget
|
|||||||
@new_parent:
|
@new_parent:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_widget_popup ##### -->
|
|
||||||
<para>
|
|
||||||
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@widget:
|
|
||||||
@x:
|
|
||||||
@y:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_widget_intersect ##### -->
|
<!-- ##### FUNCTION gtk_widget_intersect ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
@ -1249,16 +1239,6 @@ GtkWidget
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_widget_activate_mnemonic ##### -->
|
|
||||||
<para>
|
|
||||||
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@widget:
|
|
||||||
@group_cycling:
|
|
||||||
@Returns:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_widget_class_install_style_property ##### -->
|
<!-- ##### FUNCTION gtk_widget_class_install_style_property ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
@ -1332,15 +1312,6 @@ GtkWidget
|
|||||||
@var_args:
|
@var_args:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### SIGNAL GtkWidget::activate-mnemonic ##### -->
|
|
||||||
<para>
|
|
||||||
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@widget: the object which received the signal.
|
|
||||||
@arg1:
|
|
||||||
@Returns:
|
|
||||||
|
|
||||||
<!-- ##### SIGNAL GtkWidget::add-accelerator ##### -->
|
<!-- ##### SIGNAL GtkWidget::add-accelerator ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
@ -1609,6 +1580,15 @@ a widget changes from un-anchored to anchored or vice-versa.
|
|||||||
@event:
|
@event:
|
||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
<!-- ##### SIGNAL GtkWidget::mnemonic-activate ##### -->
|
||||||
|
<para>
|
||||||
|
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@widget: the object which received the signal.
|
||||||
|
@arg1:
|
||||||
|
@Returns:
|
||||||
|
|
||||||
<!-- ##### SIGNAL GtkWidget::motion-notify-event ##### -->
|
<!-- ##### SIGNAL GtkWidget::motion-notify-event ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
@ -236,17 +236,6 @@ it's larger
|
|||||||
@Returns:
|
@Returns:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_window_activate_mnemonic ##### -->
|
|
||||||
<para>
|
|
||||||
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@window:
|
|
||||||
@keyval:
|
|
||||||
@modifier:
|
|
||||||
@Returns:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION gtk_window_add_mnemonic ##### -->
|
<!-- ##### FUNCTION gtk_window_add_mnemonic ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
@ -121,7 +121,6 @@ gtk_public_h_sources = @STRIP_BEGIN@ \
|
|||||||
gtkmain.h \
|
gtkmain.h \
|
||||||
gtkmenu.h \
|
gtkmenu.h \
|
||||||
gtkmenubar.h \
|
gtkmenubar.h \
|
||||||
gtkmenufactory.h \
|
|
||||||
gtkmenuitem.h \
|
gtkmenuitem.h \
|
||||||
gtkmenushell.h \
|
gtkmenushell.h \
|
||||||
gtkmessagedialog.h \
|
gtkmessagedialog.h \
|
||||||
@ -281,7 +280,6 @@ gtk_c_sources = @STRIP_BEGIN@ \
|
|||||||
gtkmain.c \
|
gtkmain.c \
|
||||||
gtkmenu.c \
|
gtkmenu.c \
|
||||||
gtkmenubar.c \
|
gtkmenubar.c \
|
||||||
gtkmenufactory.c \
|
|
||||||
gtkmenuitem.c \
|
gtkmenuitem.c \
|
||||||
gtkmenushell.c \
|
gtkmenushell.c \
|
||||||
gtkmessagedialog.c \
|
gtkmessagedialog.c \
|
||||||
|
@ -96,7 +96,6 @@
|
|||||||
#include <gtk/gtkmain.h>
|
#include <gtk/gtkmain.h>
|
||||||
#include <gtk/gtkmenu.h>
|
#include <gtk/gtkmenu.h>
|
||||||
#include <gtk/gtkmenubar.h>
|
#include <gtk/gtkmenubar.h>
|
||||||
#include <gtk/gtkmenufactory.h>
|
|
||||||
#include <gtk/gtkmenuitem.h>
|
#include <gtk/gtkmenuitem.h>
|
||||||
#include <gtk/gtkmenushell.h>
|
#include <gtk/gtkmenushell.h>
|
||||||
#include <gtk/gtkmessagedialog.h>
|
#include <gtk/gtkmessagedialog.h>
|
||||||
|
@ -252,7 +252,7 @@ static void gtk_entry_paste (GtkEntry *entry,
|
|||||||
static void gtk_entry_update_primary_selection (GtkEntry *entry);
|
static void gtk_entry_update_primary_selection (GtkEntry *entry);
|
||||||
static void gtk_entry_do_popup (GtkEntry *entry,
|
static void gtk_entry_do_popup (GtkEntry *entry,
|
||||||
GdkEventButton *event);
|
GdkEventButton *event);
|
||||||
static gboolean gtk_entry_activate_mnemonic (GtkWidget *widget,
|
static gboolean gtk_entry_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
|
|
||||||
static GtkWidgetClass *parent_class = NULL;
|
static GtkWidgetClass *parent_class = NULL;
|
||||||
@ -345,7 +345,7 @@ gtk_entry_class_init (GtkEntryClass *class)
|
|||||||
widget_class->style_set = gtk_entry_style_set;
|
widget_class->style_set = gtk_entry_style_set;
|
||||||
widget_class->direction_changed = gtk_entry_direction_changed;
|
widget_class->direction_changed = gtk_entry_direction_changed;
|
||||||
widget_class->state_changed = gtk_entry_state_changed;
|
widget_class->state_changed = gtk_entry_state_changed;
|
||||||
widget_class->activate_mnemonic = gtk_entry_activate_mnemonic;
|
widget_class->mnemonic_activate = gtk_entry_mnemonic_activate;
|
||||||
|
|
||||||
widget_class->drag_motion = gtk_entry_drag_motion;
|
widget_class->drag_motion = gtk_entry_drag_motion;
|
||||||
widget_class->drag_leave = gtk_entry_drag_leave;
|
widget_class->drag_leave = gtk_entry_drag_leave;
|
||||||
@ -3150,7 +3150,7 @@ activate_cb (GtkWidget *menuitem,
|
|||||||
|
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_entry_activate_mnemonic (GtkWidget *widget,
|
gtk_entry_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling)
|
gboolean group_cycling)
|
||||||
{
|
{
|
||||||
gtk_widget_grab_focus (widget);
|
gtk_widget_grab_focus (widget);
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <gtk/gtkwidget.h>
|
#include <gtk/gtkwidget.h>
|
||||||
#include <gtk/gtkmenufactory.h> /* for GtkMenuEntry */
|
|
||||||
#include <gtk/gtkbindings.h> /* for GtkPatternSpec */
|
#include <gtk/gtkbindings.h> /* for GtkPatternSpec */
|
||||||
|
|
||||||
|
|
||||||
@ -217,6 +216,15 @@ void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
|
|||||||
|
|
||||||
/* Compatibility functions for deprecated GtkMenuFactory code
|
/* Compatibility functions for deprecated GtkMenuFactory code
|
||||||
*/
|
*/
|
||||||
|
typedef void (*GtkMenuCallback) (GtkWidget *widget,
|
||||||
|
gpointer user_data);
|
||||||
|
typedef struct {
|
||||||
|
gchar *path;
|
||||||
|
gchar *accelerator;
|
||||||
|
GtkMenuCallback callback;
|
||||||
|
gpointer callback_data;
|
||||||
|
GtkWidget *widget;
|
||||||
|
} GtkMenuEntry;
|
||||||
GtkItemFactory* gtk_item_factory_from_path (const gchar *path);
|
GtkItemFactory* gtk_item_factory_from_path (const gchar *path);
|
||||||
void gtk_item_factory_create_menu_entries (guint n_entries,
|
void gtk_item_factory_create_menu_entries (guint n_entries,
|
||||||
GtkMenuEntry *entries);
|
GtkMenuEntry *entries);
|
||||||
|
@ -123,7 +123,7 @@ static void gtk_label_select_region_index (GtkLabel *label,
|
|||||||
gint anchor_index,
|
gint anchor_index,
|
||||||
gint end_index);
|
gint end_index);
|
||||||
|
|
||||||
static gboolean gtk_label_activate_mnemonic (GtkWidget *widget,
|
static gboolean gtk_label_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
|
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ gtk_label_class_init (GtkLabelClass *class)
|
|||||||
widget_class->button_release_event = gtk_label_button_release;
|
widget_class->button_release_event = gtk_label_button_release;
|
||||||
widget_class->motion_notify_event = gtk_label_motion;
|
widget_class->motion_notify_event = gtk_label_motion;
|
||||||
widget_class->hierarchy_changed = gtk_label_hierarchy_changed;
|
widget_class->hierarchy_changed = gtk_label_hierarchy_changed;
|
||||||
widget_class->activate_mnemonic = gtk_label_activate_mnemonic;
|
widget_class->mnemonic_activate = gtk_label_mnemonic_activate;
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS(object_class),
|
g_object_class_install_property (G_OBJECT_CLASS(object_class),
|
||||||
PROP_LABEL,
|
PROP_LABEL,
|
||||||
@ -431,13 +431,13 @@ gtk_label_new_with_mnemonic (const gchar *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_label_activate_mnemonic (GtkWidget *widget,
|
gtk_label_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling)
|
gboolean group_cycling)
|
||||||
{
|
{
|
||||||
GtkWidget *parent;
|
GtkWidget *parent;
|
||||||
|
|
||||||
if (GTK_LABEL (widget)->mnemonic_widget)
|
if (GTK_LABEL (widget)->mnemonic_widget)
|
||||||
return gtk_widget_activate_mnemonic (GTK_LABEL (widget)->mnemonic_widget, group_cycling);
|
return gtk_widget_mnemonic_activate (GTK_LABEL (widget)->mnemonic_widget, group_cycling);
|
||||||
|
|
||||||
/* Try to find the widget to activate by traversing the
|
/* Try to find the widget to activate by traversing the
|
||||||
* widget's ancestry.
|
* widget's ancestry.
|
||||||
@ -449,7 +449,7 @@ gtk_label_activate_mnemonic (GtkWidget *widget,
|
|||||||
(!group_cycling && GTK_WIDGET_GET_CLASS (parent)->activate_signal) ||
|
(!group_cycling && GTK_WIDGET_GET_CLASS (parent)->activate_signal) ||
|
||||||
(parent->parent && GTK_IS_NOTEBOOK (parent->parent)) ||
|
(parent->parent && GTK_IS_NOTEBOOK (parent->parent)) ||
|
||||||
(GTK_IS_MENU_ITEM (parent)))
|
(GTK_IS_MENU_ITEM (parent)))
|
||||||
return gtk_widget_activate_mnemonic (parent, group_cycling);
|
return gtk_widget_mnemonic_activate (parent, group_cycling);
|
||||||
parent = parent->parent;
|
parent = parent->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ gtk_label_hierarchy_changed (GtkWidget *widget)
|
|||||||
* (i.e. when the target is a #GtkEntry next to the label) you need to
|
* (i.e. when the target is a #GtkEntry next to the label) you need to
|
||||||
* set it explicitly using this function.
|
* set it explicitly using this function.
|
||||||
*
|
*
|
||||||
* The target widget will be accelerated by emitting "activate_mnemonic" on it.
|
* The target widget will be accelerated by emitting "mnemonic_activate" on it.
|
||||||
* The default handler for this signal will activate the widget if there are no
|
* The default handler for this signal will activate the widget if there are no
|
||||||
* mnemonic collisions and toggle focus between the colliding widgets otherwise.
|
* mnemonic collisions and toggle focus between the colliding widgets otherwise.
|
||||||
**/
|
**/
|
||||||
|
@ -67,7 +67,7 @@ static void gtk_real_menu_item_toggle_size_request (GtkMenuItem *menu_item,
|
|||||||
gint *requisition);
|
gint *requisition);
|
||||||
static void gtk_real_menu_item_toggle_size_allocate (GtkMenuItem *menu_item,
|
static void gtk_real_menu_item_toggle_size_allocate (GtkMenuItem *menu_item,
|
||||||
gint allocation);
|
gint allocation);
|
||||||
static gboolean gtk_menu_item_activate_mnemonic (GtkWidget *widget,
|
static gboolean gtk_menu_item_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
|
|
||||||
static gint gtk_menu_item_select_timeout (gpointer data);
|
static gint gtk_menu_item_select_timeout (gpointer data);
|
||||||
@ -140,7 +140,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
|||||||
widget_class->expose_event = gtk_menu_item_expose;
|
widget_class->expose_event = gtk_menu_item_expose;
|
||||||
widget_class->show_all = gtk_menu_item_show_all;
|
widget_class->show_all = gtk_menu_item_show_all;
|
||||||
widget_class->hide_all = gtk_menu_item_hide_all;
|
widget_class->hide_all = gtk_menu_item_hide_all;
|
||||||
widget_class->activate_mnemonic = gtk_menu_item_activate_mnemonic;
|
widget_class->mnemonic_activate = gtk_menu_item_mnemonic_activate;
|
||||||
|
|
||||||
container_class->forall = gtk_menu_item_forall;
|
container_class->forall = gtk_menu_item_forall;
|
||||||
|
|
||||||
@ -606,7 +606,7 @@ gtk_real_menu_item_deselect (GtkItem *item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_menu_item_activate_mnemonic (GtkWidget *widget,
|
gtk_menu_item_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling)
|
gboolean group_cycling)
|
||||||
{
|
{
|
||||||
if (group_cycling)
|
if (group_cycling)
|
||||||
|
@ -568,7 +568,7 @@ gtk_menu_shell_key_press (GtkWidget *widget,
|
|||||||
|
|
||||||
toplevel = gtk_widget_get_toplevel (widget);
|
toplevel = gtk_widget_get_toplevel (widget);
|
||||||
if (GTK_IS_WINDOW (toplevel) &&
|
if (GTK_IS_WINDOW (toplevel) &&
|
||||||
gtk_window_activate_mnemonic (GTK_WINDOW (toplevel),
|
gtk_window_mnemonic_activate (GTK_WINDOW (toplevel),
|
||||||
event->keyval,
|
event->keyval,
|
||||||
event->state))
|
event->state))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -95,7 +95,7 @@ struct _GtkNotebookPage
|
|||||||
GtkRequisition requisition;
|
GtkRequisition requisition;
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
|
|
||||||
guint activate_mnemonic_signal;
|
guint mnemonic_activate_signal;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef G_DISABLE_CHECKS
|
#ifdef G_DISABLE_CHECKS
|
||||||
@ -1977,9 +1977,9 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
|
|||||||
if (GTK_WIDGET_VISIBLE (page->child) && GTK_WIDGET_VISIBLE (notebook))
|
if (GTK_WIDGET_VISIBLE (page->child) && GTK_WIDGET_VISIBLE (notebook))
|
||||||
need_resize = TRUE;
|
need_resize = TRUE;
|
||||||
|
|
||||||
if (page->tab_label && page->activate_mnemonic_signal)
|
if (page->tab_label && page->mnemonic_activate_signal)
|
||||||
gtk_signal_disconnect (page->tab_label,
|
gtk_signal_disconnect (page->tab_label,
|
||||||
page->activate_mnemonic_signal);
|
page->mnemonic_activate_signal);
|
||||||
|
|
||||||
gtk_widget_unparent (page->child);
|
gtk_widget_unparent (page->child);
|
||||||
|
|
||||||
@ -3636,7 +3636,7 @@ gtk_notebook_page_compare_tab (gconstpointer a,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_notebook_activate_mnemonic_switch_page (GtkWidget *child,
|
gtk_notebook_mnemonic_activate_switch_page (GtkWidget *child,
|
||||||
gboolean overload,
|
gboolean overload,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
@ -3698,7 +3698,7 @@ gtk_notebook_insert_page_menu (GtkNotebook *notebook,
|
|||||||
page->allocation.height = 0;
|
page->allocation.height = 0;
|
||||||
page->default_menu = FALSE;
|
page->default_menu = FALSE;
|
||||||
page->default_tab = FALSE;
|
page->default_tab = FALSE;
|
||||||
page->activate_mnemonic_signal = 0;
|
page->mnemonic_activate_signal = 0;
|
||||||
|
|
||||||
nchildren = g_list_length (notebook->children);
|
nchildren = g_list_length (notebook->children);
|
||||||
if ((position < 0) || (position > nchildren))
|
if ((position < 0) || (position > nchildren))
|
||||||
@ -3781,10 +3781,10 @@ gtk_notebook_insert_page_menu (GtkNotebook *notebook,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tab_label)
|
if (tab_label)
|
||||||
page->activate_mnemonic_signal =
|
page->mnemonic_activate_signal =
|
||||||
gtk_signal_connect (GTK_OBJECT (tab_label),
|
gtk_signal_connect (GTK_OBJECT (tab_label),
|
||||||
"activate_mnemonic",
|
"mnemonic_activate",
|
||||||
(GtkSignalFunc) gtk_notebook_activate_mnemonic_switch_page,
|
(GtkSignalFunc) gtk_notebook_mnemonic_activate_switch_page,
|
||||||
notebook);
|
notebook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +234,6 @@ gtk_settings_notify (GObject *object,
|
|||||||
g_value_init (&tmp_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
|
g_value_init (&tmp_value, G_PARAM_SPEC_VALUE_TYPE (pspec));
|
||||||
g_object_get_property (object, pspec->name, &tmp_value);
|
g_object_get_property (object, pspec->name, &tmp_value);
|
||||||
contents = g_strdup_value_contents (&tmp_value);
|
contents = g_strdup_value_contents (&tmp_value);
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (property_id)
|
switch (property_id)
|
||||||
{
|
{
|
||||||
@ -252,7 +251,6 @@ gtk_settings_notify (GObject *object,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 1
|
|
||||||
g_free (contents);
|
g_free (contents);
|
||||||
g_value_unset (&tmp_value);
|
g_value_unset (&tmp_value);
|
||||||
#endif
|
#endif
|
||||||
|
@ -357,7 +357,8 @@ gtk_tooltips_draw_tips (GtkTooltips * tooltips)
|
|||||||
else
|
else
|
||||||
y = y + widget->allocation.height + 4;
|
y = y + widget->allocation.height + 4;
|
||||||
|
|
||||||
gtk_widget_popup (tooltips->tip_window, x, y);
|
gtk_widget_set_uposition (tooltips->tip_window, x, y);
|
||||||
|
gtk_widget_show (tooltips->tip_window);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
static gint
|
||||||
|
@ -195,7 +195,7 @@ static gint gtk_widget_event_internal (GtkWidget *widget,
|
|||||||
|
|
||||||
static void gtk_widget_propagate_hierarchy_changed (GtkWidget *widget,
|
static void gtk_widget_propagate_hierarchy_changed (GtkWidget *widget,
|
||||||
gpointer client_data);
|
gpointer client_data);
|
||||||
static gboolean gtk_widget_real_activate_mnemonic (GtkWidget *widget,
|
static gboolean gtk_widget_real_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
|
|
||||||
static void gtk_widget_aux_info_destroy (GtkWidgetAuxInfo *aux_info);
|
static void gtk_widget_aux_info_destroy (GtkWidgetAuxInfo *aux_info);
|
||||||
@ -317,7 +317,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
|||||||
klass->direction_changed = gtk_widget_direction_changed;
|
klass->direction_changed = gtk_widget_direction_changed;
|
||||||
klass->add_accelerator = (void*) gtk_accel_group_handle_add;
|
klass->add_accelerator = (void*) gtk_accel_group_handle_add;
|
||||||
klass->remove_accelerator = (void*) gtk_accel_group_handle_remove;
|
klass->remove_accelerator = (void*) gtk_accel_group_handle_remove;
|
||||||
klass->activate_mnemonic = gtk_widget_real_activate_mnemonic;
|
klass->mnemonic_activate = gtk_widget_real_mnemonic_activate;
|
||||||
klass->grab_focus = gtk_widget_real_grab_focus;
|
klass->grab_focus = gtk_widget_real_grab_focus;
|
||||||
klass->event = NULL;
|
klass->event = NULL;
|
||||||
klass->button_press_event = NULL;
|
klass->button_press_event = NULL;
|
||||||
@ -626,10 +626,10 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
|||||||
gtk_accel_group_create_remove (GTK_CLASS_TYPE (object_class), GTK_RUN_LAST,
|
gtk_accel_group_create_remove (GTK_CLASS_TYPE (object_class), GTK_RUN_LAST,
|
||||||
GTK_SIGNAL_OFFSET (GtkWidgetClass, remove_accelerator));
|
GTK_SIGNAL_OFFSET (GtkWidgetClass, remove_accelerator));
|
||||||
widget_signals[ACTIVATE_MNEMONIC] =
|
widget_signals[ACTIVATE_MNEMONIC] =
|
||||||
g_signal_newc ("activate_mnemonic",
|
g_signal_newc ("mnemonic_activate",
|
||||||
GTK_CLASS_TYPE (object_class),
|
GTK_CLASS_TYPE (object_class),
|
||||||
GTK_RUN_LAST,
|
GTK_RUN_LAST,
|
||||||
GTK_SIGNAL_OFFSET (GtkWidgetClass, activate_mnemonic),
|
GTK_SIGNAL_OFFSET (GtkWidgetClass, mnemonic_activate),
|
||||||
accumulator_stop_handled_emission, NULL,
|
accumulator_stop_handled_emission, NULL,
|
||||||
gtk_marshal_BOOLEAN__BOOLEAN,
|
gtk_marshal_BOOLEAN__BOOLEAN,
|
||||||
GTK_TYPE_BOOL, 1,
|
GTK_TYPE_BOOL, 1,
|
||||||
@ -2391,7 +2391,7 @@ gtk_widget_accelerator_signal (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gtk_widget_activate_mnemonic (GtkWidget *widget,
|
gtk_widget_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling)
|
gboolean group_cycling)
|
||||||
{
|
{
|
||||||
gboolean handled;
|
gboolean handled;
|
||||||
@ -2410,7 +2410,7 @@ gtk_widget_activate_mnemonic (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_widget_real_activate_mnemonic (GtkWidget *widget,
|
gtk_widget_real_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling)
|
gboolean group_cycling)
|
||||||
{
|
{
|
||||||
if (!group_cycling && GTK_WIDGET_GET_CLASS (widget)->activate_signal)
|
if (!group_cycling && GTK_WIDGET_GET_CLASS (widget)->activate_signal)
|
||||||
@ -2813,34 +2813,6 @@ gtk_widget_reparent (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* gtk_widget_popup:
|
|
||||||
* @widget:
|
|
||||||
* @x:
|
|
||||||
* @y:
|
|
||||||
*
|
|
||||||
* DEPRECATED. Completely useless function as far as we know.
|
|
||||||
* Probably does something bad.
|
|
||||||
*
|
|
||||||
**/
|
|
||||||
void
|
|
||||||
gtk_widget_popup (GtkWidget *widget,
|
|
||||||
gint x,
|
|
||||||
gint y)
|
|
||||||
{
|
|
||||||
g_return_if_fail (widget != NULL);
|
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
|
||||||
|
|
||||||
if (!GTK_WIDGET_VISIBLE (widget))
|
|
||||||
{
|
|
||||||
if (!GTK_WIDGET_REALIZED (widget))
|
|
||||||
gtk_widget_realize (widget);
|
|
||||||
if (!GTK_WIDGET_NO_WINDOW (widget))
|
|
||||||
gdk_window_move (widget->window, x, y);
|
|
||||||
gtk_widget_show (widget);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_widget_intersect:
|
* gtk_widget_intersect:
|
||||||
* @widget: a #GtkWidget
|
* @widget: a #GtkWidget
|
||||||
|
@ -272,7 +272,7 @@ struct _GtkWidgetClass
|
|||||||
GdkModifierType accel_mods);
|
GdkModifierType accel_mods);
|
||||||
|
|
||||||
/* Mnemonics */
|
/* Mnemonics */
|
||||||
gboolean (* activate_mnemonic) (GtkWidget *widget,
|
gboolean (* mnemonic_activate) (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
|
|
||||||
/* explicit focus */
|
/* explicit focus */
|
||||||
@ -476,7 +476,7 @@ guint gtk_widget_accelerator_signal (GtkWidget *widget,
|
|||||||
void gtk_widget_lock_accelerators (GtkWidget *widget);
|
void gtk_widget_lock_accelerators (GtkWidget *widget);
|
||||||
void gtk_widget_unlock_accelerators (GtkWidget *widget);
|
void gtk_widget_unlock_accelerators (GtkWidget *widget);
|
||||||
gboolean gtk_widget_accelerators_locked (GtkWidget *widget);
|
gboolean gtk_widget_accelerators_locked (GtkWidget *widget);
|
||||||
gboolean gtk_widget_activate_mnemonic (GtkWidget *widget,
|
gboolean gtk_widget_mnemonic_activate (GtkWidget *widget,
|
||||||
gboolean group_cycling);
|
gboolean group_cycling);
|
||||||
gboolean gtk_widget_event (GtkWidget *widget,
|
gboolean gtk_widget_event (GtkWidget *widget,
|
||||||
GdkEvent *event);
|
GdkEvent *event);
|
||||||
@ -490,9 +490,6 @@ gboolean gtk_widget_set_scroll_adjustments (GtkWidget *widget,
|
|||||||
|
|
||||||
void gtk_widget_reparent (GtkWidget *widget,
|
void gtk_widget_reparent (GtkWidget *widget,
|
||||||
GtkWidget *new_parent);
|
GtkWidget *new_parent);
|
||||||
void gtk_widget_popup (GtkWidget *widget,
|
|
||||||
gint x,
|
|
||||||
gint y);
|
|
||||||
gboolean gtk_widget_intersect (GtkWidget *widget,
|
gboolean gtk_widget_intersect (GtkWidget *widget,
|
||||||
GdkRectangle *area,
|
GdkRectangle *area,
|
||||||
GdkRectangle *intersection);
|
GdkRectangle *intersection);
|
||||||
|
@ -876,7 +876,7 @@ gtk_window_remove_mnemonic (GtkWindow *window,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gtk_window_activate_mnemonic (GtkWindow *window,
|
gtk_window_mnemonic_activate (GtkWindow *window,
|
||||||
guint keyval,
|
guint keyval,
|
||||||
GdkModifierType modifier)
|
GdkModifierType modifier)
|
||||||
{
|
{
|
||||||
@ -927,7 +927,7 @@ gtk_window_activate_mnemonic (GtkWindow *window,
|
|||||||
mnemonic->targets = g_slist_remove (mnemonic->targets, chosen_widget);
|
mnemonic->targets = g_slist_remove (mnemonic->targets, chosen_widget);
|
||||||
mnemonic->targets = g_slist_append (mnemonic->targets, chosen_widget);
|
mnemonic->targets = g_slist_append (mnemonic->targets, chosen_widget);
|
||||||
|
|
||||||
return gtk_widget_activate_mnemonic (chosen_widget, overloaded);
|
return gtk_widget_mnemonic_activate (chosen_widget, overloaded);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -2051,7 +2051,7 @@ gtk_window_key_press_event (GtkWidget *widget,
|
|||||||
handled = gtk_widget_event (window->focus_widget, (GdkEvent*) event);
|
handled = gtk_widget_event (window->focus_widget, (GdkEvent*) event);
|
||||||
|
|
||||||
if (!handled)
|
if (!handled)
|
||||||
handled = gtk_window_activate_mnemonic (window,
|
handled = gtk_window_mnemonic_activate (window,
|
||||||
event->keyval,
|
event->keyval,
|
||||||
event->state);
|
event->state);
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ void gtk_window_add_mnemonic (GtkWindow *window,
|
|||||||
void gtk_window_remove_mnemonic (GtkWindow *window,
|
void gtk_window_remove_mnemonic (GtkWindow *window,
|
||||||
guint keyval,
|
guint keyval,
|
||||||
GtkWidget *target);
|
GtkWidget *target);
|
||||||
gboolean gtk_window_activate_mnemonic (GtkWindow *window,
|
gboolean gtk_window_mnemonic_activate (GtkWindow *window,
|
||||||
guint keyval,
|
guint keyval,
|
||||||
GdkModifierType modifier);
|
GdkModifierType modifier);
|
||||||
void gtk_window_set_mnemonic_modifier (GtkWindow *window,
|
void gtk_window_set_mnemonic_modifier (GtkWindow *window,
|
||||||
@ -230,7 +230,7 @@ void gtk_window_remove_embedded_xid (GtkWindow *window,
|
|||||||
guint xid);
|
guint xid);
|
||||||
void gtk_window_add_embedded_xid (GtkWindow *window,
|
void gtk_window_add_embedded_xid (GtkWindow *window,
|
||||||
guint xid);
|
guint xid);
|
||||||
void gtk_window_reposition (GtkWindow *window,
|
void _gtk_window_reposition (GtkWindow *window,
|
||||||
gint x,
|
gint x,
|
||||||
gint y);
|
gint y);
|
||||||
void _gtk_window_constrain_size (GtkWindow *window,
|
void _gtk_window_constrain_size (GtkWindow *window,
|
||||||
|
Loading…
Reference in New Issue
Block a user