search for: gdkevent

Displaying 16 results from an estimated 16 matches for "gdkevent".

2018 Nov 06
1
[PATCH] p2v: use newer GTK APIs if possible
...-gtk3-compat.h index 8f32eadbf..04923535e 100644 --- a/p2v/gui-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) \ d...
2018 Nov 06
3
[PATCH v2 0/2] p2v: add Shutdown option
This small series for p2v refactors the Reboot menu of the conversion dialog into something slightly more general, and add the possibility to shut the machine down. Lots of work to deal with old GTK versions ... Changes from v1: - fix shutdown command Pino Toscano (2): p2v: turn Reboot button into a Shutdown popup menu button p2v: add a Shutdown action (RHBZ#1642044) p2v/gui.c |
2018 Nov 05
4
[PATCH 0/2] p2v: add Shutdown option
This small series for p2v refactors the Reboot menu of the conversion dialog into something slightly more general, and add the possibility to shut the machine down. Lots of work to deal with old GTK versions ... Pino Toscano (2): p2v: turn Reboot button into a Shutdown popup menu button p2v: add a Shutdown action (RHBZ#1642044) p2v/gui.c | 119
2018 Nov 05
0
[PATCH 2/2] p2v: add a Shutdown action (RHBZ#1642044)
...n *action, GVariant *parameter, gpointe #else static void shutdown_button_clicked (GtkToolButton *w, gpointer data); #endif +static void shutdown_clicked (GtkWidget *w, gpointer data); static void reboot_clicked (GtkWidget *w, gpointer data); static gboolean close_running_dialog (GtkWidget *w, GdkEvent *event, gpointer data); #ifdef USE_POPOVERS static const GActionEntry shutdown_actions[] = { + { "shutdown", activate_action, NULL, NULL, NULL }, { "reboot", activate_action, NULL, NULL, NULL }, }; #endif @@ -1643,6 +1645,7 @@ create_running_dialog (void) GSimpleAct...
2018 Nov 06
0
[PATCH v2 2/2] p2v: add a Shutdown action (RHBZ#1642044)
...n *action, GVariant *parameter, gpointe #else static void shutdown_button_clicked (GtkToolButton *w, gpointer data); #endif +static void shutdown_clicked (GtkWidget *w, gpointer data); static void reboot_clicked (GtkWidget *w, gpointer data); static gboolean close_running_dialog (GtkWidget *w, GdkEvent *event, gpointer data); #ifdef USE_POPOVERS static const GActionEntry shutdown_actions[] = { + { "shutdown", activate_action, NULL, NULL, NULL }, { "reboot", activate_action, NULL, NULL, NULL }, }; #endif @@ -1643,6 +1645,7 @@ create_running_dialog (void) GSimpleAct...
2019 Aug 30
4
[p2v PATCH 0/3] Small build fixes
This series for virt-p2v removes the usage of GTK deprecated stuff, and checks for a required Perl module used during build. Tested on: - RHEL 6 (GTK 2) - RHEL 7 (GTK 3) - Fedora 30 (GTK 2 & 3) - Fedora Rawhide/32 (GTK 2 & 3) Pino Toscano (3): Copy GtkAttachOptions from GTK >= 3.4 build: disable deprecated GTK stuff build: require List::MoreUtils Makefile.am | 1 +
2009 Jul 23
1
viewer updates for fedora submission
This patchset provides updates to the viewer in preperation for its fedora submission. Included are patches cmd-line parameterizing hostname/user/pass/vm, the addition of a man page, cleanup of the project's structure, and updates to the spec.
2009 Jul 13
0
[PATCH viewer] permit hostname / username / password / vm to be passed in via the cmd line
...gpointer); -static void login_to_wui (GtkWidget *, gpointer); +static void login_to_wui_via_widget (GtkWidget *, gpointer); +static void login_to_wui (); +static void connect_to_vm_name (const char* vm_name); +static void connect_to_vm (struct vm*); static gboolean delete_event (GtkWidget *widget, GdkEvent *event, gpointer data); static void destroy (GtkWidget *widget, gpointer data); static void clear_connectmenu (void); @@ -201,12 +206,20 @@ static const char *help_msg = "Use '" PACKAGE " --help' to see a list of available command line options"; static const GOpt...
2023 Jan 30
11
[p2v PATCH 00/11] Expose virt-v2v's "-oo"; re-enable openstack
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1792141 Let the user pass "-oo" options from the kernel cmdline and from the GUI to virt-v2v. This is primarily useful with the OpenStack output mode, so reenable that mode. Cc: Alban Lecorps <alban.lecorps at ubisoft.com> Laszlo Alban Lecorps (1): Introduce "p2v.output.misc" for passing "-oo" options
2019 Jul 03
7
[PATCH 0/6] p2v: make it more independent (part #2)
As preliminary steps in splitting virt-p2v to an own repository, continue making p2v more independent within libguestfs. This is accomplished by the following changes: - have only the authors in the about dialog, and read them from a local AUTHORS file - few more cleanups This is still not complete, although I believe most of the work needed is done, and it still makes p2v usable within
2016 May 30
2
[PATCH 0/2] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
... and a small initial patch which makes it easier to test virt-p2v without having to start up a virtual machine. There is still a bug in Gtk 3 where the GtkTextView on the final (running) dialog ignores gtk_widget_set_size_request and so the window appears just a single pixel high. Rich.
2016 May 30
4
[PATCH v2 0/3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
This is basically the same as what I posted earlier today. The main difference is I split out the GDK thread sychronization (removal of) changes from the other Gtk 2/3 changes, which should make it a bit easier to review. Gtk 3 is still not quite perfect. Apart from the problem with the GtkTextView noted before, there are also vertical alignment and padding problems with labels in GtkGrid
2016 Jun 18
8
[PATCH 0/7] p2v: Multiple improvements to the look of virt-p2v.
In the run dialog, I have implemented an ANSI colour escape sequence interpreter, so that colours displayed by the remote virt-v2v are now shown to the user. (https://bugzilla.redhat.com/show_bug.cgi?id=1314244) This requires virt-v2v to send colours. It wasn't doing that because the output was a pipe (as we capture the output into the log file). So I added a global --colours option to make
2007 Aug 16
0
Branch 'vivi' - 23 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace vivified/core
.../main.c b/vivified/ui/main.c index 399483f..3f96021 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -37,6 +37,16 @@ try_grab_focus (GtkWidget *widget, gpoin gtk_container_foreach (GTK_CONTAINER (widget), try_grab_focus, NULL); } +static gboolean +delete_event (GtkWidget *widget, GdkEvent *event, ViviApplication *app) +{ + if (!vivi_application_is_quit (app)) { + vivi_application_quit (app); + return TRUE; + } + return FALSE; +} + static void setup (const char *filename) { @@ -46,15 +56,17 @@ setup (const char *filename) app = vivi_application_new (); vivi_applicat...
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
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
.../main.c b/vivified/ui/main.c index 399483f..3f96021 100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -37,6 +37,16 @@ try_grab_focus (GtkWidget *widget, gpoin gtk_container_foreach (GTK_CONTAINER (widget), try_grab_focus, NULL); } +static gboolean +delete_event (GtkWidget *widget, GdkEvent *event, ViviApplication *app) +{ + if (!vivi_application_is_quit (app)) { + vivi_application_quit (app); + return TRUE; + } + return FALSE; +} + static void setup (const char *filename) { @@ -46,15 +56,17 @@ setup (const char *filename) app = vivi_application_new (); vivi_applicat...