search for: gdk_button_press

Displaying 10 results from an estimated 10 matches for "gdk_button_press".

2018 Nov 06
1
[PATCH] p2v: use newer GTK APIs if possible
...ui-gtk3-compat.h +++ b/p2v/gui-gtk3-compat.h @@ -17,6 +17,18 @@ */ /* Backwards compatibility for some deprecated functions in Gtk 3. */ +#if !GTK_CHECK_VERSION(3,2,0) /* gtk < 3.2 */ +static gboolean +gdk_event_get_button (const GdkEvent *event, guint *button) +{ + if (event->type != GDK_BUTTON_PRESS) + return FALSE; + + *button = ((const GdkEventButton *) event)->button; + return TRUE; +} +#endif + #if GTK_CHECK_VERSION(3,2,0) /* gtk >= 3.2 */ #define hbox_new(box, homogeneous, spacing) \ do { \ @@ -79...
2016 Jan 26
1
[PATCH v2] p2v: User can click on an interface name to identify the
v1 -> v2: Added a (now blue) underlined "Identify interface" link. It's not really a link, but it looks like one, so hopefully should resolve the previous UI issue. Rich.
2016 Jan 26
2
[PATCH] p2v: User can click on an interface name to identify the physical interface.
...ki/GTK%2B_By_Example/Tree_View/Events + */ +static gboolean +maybe_identify_click (GtkWidget *interfaces_list, GdkEventButton *event, + gpointer data) +{ + gboolean ret = FALSE; /* Did we handle this event? */ + + /* Single left click only. */ + if (event->type == GDK_BUTTON_PRESS && event->button == 1) { + GtkTreePath *path; + GtkTreeViewColumn *column; + + if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (interfaces_list), + event->x, event->y, + &path, &column, NU...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...ent) if (event->button == 1 && swfdec_gtk_widget_get_interactive (widget)) { SwfdecPlayer *player = swfdec_gtk_widget_get_player (widget); - switch (event->type) { + // cast to int to get rid of unhandled enum warnings... + switch ((int)event->type) { case GDK_BUTTON_PRESS: vivi_widget_invalidate_click_area (debug); debug->x = event->x;
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...ton == 1 && swfdec_gtk_widget_get_interactive (widget)) { - double scale = swfdec_gtk_widget_get_scale (widget); + double scale = swfdec_gtk_widget_get_current_scale (widget); SwfdecPlayer *player = swfdec_gtk_widget_get_player (widget); switch (event->type) { case GDK_BUTTON_PRESS: diff-tree 2fd1d7c21735f01ac9df501dbd42b47da0a5a868 (from 10622f56c90f64ad45f3c239bf0a0750590ad5e5) Author: Benjamin Otte <otte@gnome.org> Date: Fri Apr 13 10:04:23 2007 +0200 add copyright header diff --git a/libswfdec/swfdec_pattern.c b/libswfdec/swfdec_pattern.c index 4e32436..c321...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...WFDEC_DEBUG_WIDGET (gtkwidget); - - if (event->window != gtkwidget->window) - return FALSE; - - if (event->button == 1 && swfdec_gtk_widget_get_interactive (widget)) { - SwfdecPlayer *player = swfdec_gtk_widget_get_player (widget); - switch (event->type) { - case GDK_BUTTON_PRESS: - swfdec_debug_widget_invalidate_click_area (debug); - debug->x = event->x; - debug->y = event->y; - swfdec_player_handle_mouse (player, debug->x, debug->y, debug->button); - swfdec_debug_widget_invalidate_click_area (debug); - break; - case GDK_2BUTTON_PRESS: - debug-&gt...
2007 Apr 12
0
Branch 'as' - 15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...ton == 1 && swfdec_gtk_widget_get_interactive (widget)) { - double scale = swfdec_gtk_widget_get_scale (widget); + double scale = swfdec_gtk_widget_get_current_scale (widget); SwfdecPlayer *player = swfdec_gtk_widget_get_player (widget); switch (event->type) { case GDK_BUTTON_PRESS: diff-tree 7b3c6b319a51bf19205f6314d9b171243f9af88a (from 096cfd1d49808ca78c06a2db0f3fe4ac9cd94dc6) Author: Benjamin Otte <otte@gnome.org> Date: Thu Apr 12 13:39:08 2007 +0200 remove debugging g_print diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index e88...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...attributes.y = widget->allocation.y; + attributes.width = widget->allocation.width; + attributes.height = widget->allocation.height; + attributes.wclass = GDK_INPUT_OUTPUT; + attributes.event_mask = gtk_widget_get_events (widget); + attributes.event_mask |= GDK_EXPOSURE_MASK | + GDK_BUTTON_PRESS_MASK | + GDK_BUTTON_RELEASE_MASK | + GDK_LEAVE_NOTIFY_MASK | + GDK_POINTER_MOTION_MASK | + GDK_POINTER_MOTION_HINT_MASK; + + attributes_mask = GDK_WA_X | GDK_WA_Y; + + widget->window = gdk_window_new (gtk_widget_get_parent_window (widget), + &attributes, attribut...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
..._widget_button_press (GtkWidget *gtkwidget, GdkEventButton *event) SwfdecGtkWidget *widget = SWFDEC_GTK_WIDGET (gtkwidget); SwfdecGtkWidgetPrivate *priv = widget->priv; - if (event->button <= 32 && priv->interactive && priv->player) { + if (event->type == GDK_BUTTON_PRESS && event->button <= 32 && priv->interactive && priv->player) { swfdec_player_mouse_press (priv->player, event->x, event->y, event->button); } return FALSE; commit dc959b9439aa0e440efea2ed9e62da964ea418bc Author: Benjamin Otte <otte at gn...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am