search for: gtk_entry_get_text

Displaying 20 results from an estimated 20 matches for "gtk_entry_get_text".

2015 May 05
1
Re: [PATCH 1/2] p2v: Factor out code for parsing vcpus & memory from conversion dialog.
...DISKS_COL_CONVERT = 0, > @@ -1051,6 +1053,32 @@ conversion_back_clicked (GtkWidget *w, gpointer data) > gtk_widget_set_sensitive (next_button, FALSE); > } > > +static int > +get_vcpus_from_conv_dlg (void) > +{ > + const char *str; > + int i; > + > + str = gtk_entry_get_text (GTK_ENTRY (vcpus_entry)); > + if (sscanf (str, "%d", &i) == 1 && i > 0) > + return i; > + else > + return 1; > +} > + > +static uint64_t > +get_memory_from_conv_dlg (void) > +{ > + const char *str; > + uint64_t i; > + > + s...
2015 May 05
3
[PATCH 0/2] p2v: Warn if vcpus or memory would be larger than supported by RHEL (RHBZ#823758).
https://bugzilla.redhat.com/show_bug.cgi?id=823758
2015 May 05
0
[PATCH 1/2] p2v: Factor out code for parsing vcpus & memory from conversion dialog.
...c uint64_t get_memory_from_conv_dlg (void); enum { DISKS_COL_CONVERT = 0, @@ -1051,6 +1053,32 @@ conversion_back_clicked (GtkWidget *w, gpointer data) gtk_widget_set_sensitive (next_button, FALSE); } +static int +get_vcpus_from_conv_dlg (void) +{ + const char *str; + int i; + + str = gtk_entry_get_text (GTK_ENTRY (vcpus_entry)); + if (sscanf (str, "%d", &i) == 1 && i > 0) + return i; + else + return 1; +} + +static uint64_t +get_memory_from_conv_dlg (void) +{ + const char *str; + uint64_t i; + + str = gtk_entry_get_text (GTK_ENTRY (memory_entry)); + if (sscanf...
2009 Jul 13
0
[PATCH viewer] permit hostname / username / password / vm to be passed in via the cmd line
...&& (((GdkEventKey *)data)->keyval & 0xFF) != 13 ) return; - connect_to_wui(widget, data); + connect_to_wui_via_widget(widget, data); } static void -connect_to_wui (GtkWidget *widget, gpointer data) +connect_to_wui_via_widget (GtkWidget *widget, gpointer data) +{ + hostname = gtk_entry_get_text (GTK_ENTRY (ca_hostname)); + connect_to_wui(); +} + +static void +connect_to_wui() { char *uri; int len; - hostname = gtk_entry_get_text (GTK_ENTRY (ca_hostname)); if (STREQ (hostname, "")) return; /* https:// + hostname + /ovirt + \0 */ @@ -597,19 +639,23 @@ login_to_w...
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
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.
2023 Jan 30
1
[p2v PATCH 09/11] gui: expose "p2v.output.misc" (-oo)
On Mon, Jan 30, 2023 at 03:22:26PM +0100, Laszlo Ersek wrote: > + str = gtk_entry_get_text (GTK_ENTRY (oo_entry)); > + guestfs_int_free_string_list (config->output.misc); > + config->output.misc = guestfs_int_split_string (',', str); My concern here is that someone is going to put "foo=bar, baz=1" in this field, and it will improperly split above. So may...
2018 Jun 29
3
p2v: Various cleanups.
These are a prelude to fixing https://bugzilla.redhat.com/show_bug.cgi?id=1590220 A lot of the virt-p2v configuration code was duplicated manually. These changes make sure that most of it is generated. Rich.
2004 Sep 10
0
http streaming in the xmms plugin
..._user_label, *streaming_proxy_auth_pass_label; + #ifdef FLAC_ICECAST + static GtkWidget *streaming_cast_title, *streaming_udp_title; + #endif + static GtkWidget *streaming_proxy_hbox, *streaming_proxy_auth_hbox, *streaming_save_dirbrowser; + static GtkWidget *streaming_save_hbox; + static gchar *gtk_entry_get_text_1 (GtkWidget *widget); static void flac_configurewin_ok(GtkWidget * widget, gpointer data); static void configure_destroy(GtkWidget * w, gpointer data); *************** *** 129,134 **** --- 156,216 ---- xmms_cfg_write_boolean(cfg, "flac", "output.resolution.replaygain.dither&q...
2012 Jan 13
0
[PATCH 1/1] Ported gnome-ssh-askpass2 to gtk3.
...alog)); + + /* Ungrab */ + if (grab_server) + XUngrabServer(GDK_DISPLAY_XDISPLAY(gdk_display_get_default())); + if (grab_pointer) + gdk_pointer_ungrab(GDK_CURRENT_TIME); + gdk_keyboard_ungrab(GDK_CURRENT_TIME); + gdk_flush(); + + /* Report passphrase if user selected OK */ + passphrase = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry))); + if (result == GTK_RESPONSE_OK) { + local = g_locale_from_utf8(passphrase, strlen(passphrase), + NULL, NULL, NULL); + if (local != NULL) { + puts(local); + memset(local, '\0', strlen(local)); + g_free(local); + } else { + puts(passphrase); + } + } +...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...100644 --- a/vivified/ui/main.c +++ b/vivified/ui/main.c @@ -24,18 +24,8 @@ #include <gtk/gtk.h> #include <libswfdec-gtk/swfdec-gtk.h> #include "vivified/core/vivified-core.h" - -static void -entry_activate_cb (GtkEntry *entry, ViviApplication *app) -{ - const char *text = gtk_entry_get_text (entry); - - if (text[0] == '\0') - return; - - //swfdec_player_manager_execute (manager, text); - gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); -} +#include "vivified/dock/vivified-dock.h" +#include "vivi_commandline.h" static void setup (const cha...
2009 May 19
2
[PATCH server] added ovirt vnc proxy server, to proxy vnc request to managed vms
run on startup by default like the other ovirt services --- conf/ovirt-vnc-proxy | 49 ++++++++ installer/modules/ovirt/manifests/ovirt.pp | 1 + ovirt-server.spec.in | 5 + src/vnc-proxy/vnc-proxy.rb | 167 ++++++++++++++++++++++++++++ 4 files changed, 222 insertions(+), 0 deletions(-) create mode 100755 conf/ovirt-vnc-proxy
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...run = (char *) command; + } + + + vivi_application_execute (app, run); + if (command != run) + g_free (run); +} + +void +vivi_command_line_activate (GtkEntry *entry, ViviApplication *app); +void +vivi_command_line_activate (GtkEntry *entry, ViviApplication *app) +{ + const char *text = gtk_entry_get_text (entry); + + if (text[0] == '\0') + return; + + vivi_command_line_execute (app, text); + gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); +} + +static void +vivi_command_line_append_message (ViviApplication *app, guint type, const char *message, GtkTextView *view) +{ + GtkTe...
2015 Aug 25
4
[PATCH 0/4] Various p2v fixes and features
A mixed bag, but all the patches make sense together! Patch 1: Fix a bug that Tingting found: https://bugzilla.redhat.com/show_bug.cgi?id=1256222 Patch 2: Revert a patch that makes no sense now that we've added virt-v2v into base RHEL. This is just included because it's a cleanup needed before applying patch 3. Patch 3: Add the ability to use SSH identities (private keys) for virt-p2v
2004 Sep 10
2
xmms plugin, fileinfo
..., stripped_len, tag); - gtk_entry_set_text(entry, text); - g_free(text); + gtk_label_set_text(GTK_LABEL(label), tempstr); + g_free(tempstr); } -static void get_entry_tag(GtkEntry * entry, gchar * tag, gint length) +static void save_cb(GtkWidget * w, gpointer data) { - gchar *text; +} - text = gtk_entry_get_text(entry); - memset(tag, ' ', length); - memcpy(tag, text, strlen(text) > length ? length : strlen(text)); +static void remove_cb(GtkWidget * w, gpointer data) +{ } -static gint genre_comp_func(gconstpointer a, gconstpointer b) +static void show_tag() { - return strcasecmp(a, b); + FLAC...
2015 Aug 27
5
[PATCH v2 0/4] p2v: Wait for network to come online before testing connection
Fixes https://bugzilla.redhat.com/1256222
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 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...run = g_string_free (str, FALSE); + } else { + run = (char *) command; + } + + + vivi_applciation_execute (cl->app, run); + if (command != run) + g_free (run); +} + +static void command_line_entry_activate_cb (GtkEntry *entry, ViviCommandLine *command_line) { const char *text = gtk_entry_get_text (entry); @@ -69,7 +103,7 @@ command_line_entry_activate_cb (GtkEntry if (text[0] == '\0') return; - vivi_applciation_execute (command_line->app, text); + vivi_command_line_execute (command_line, text); gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); } diff-tre...
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
...run = (char *) command; + } + + + vivi_application_execute (app, run); + if (command != run) + g_free (run); +} + +void +vivi_command_line_activate (GtkEntry *entry, ViviApplication *app); +void +vivi_command_line_activate (GtkEntry *entry, ViviApplication *app) +{ + const char *text = gtk_entry_get_text (entry); + + if (text[0] == '\0') + return; + + vivi_command_line_execute (app, text); + gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); +} + +static void +vivi_command_line_append_message (ViviApplication *app, guint type, const char *message, GtkTextView *view) +{ + GtkTe...
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
...; -} - -static void -play_toggled_cb (GtkToggleButton *button, SwfdecPlayerManager *manager) -{ - swfdec_player_manager_set_playing (manager, - gtk_toggle_button_get_active (button)); -} - -static void -entry_activate_cb (GtkEntry *entry, SwfdecPlayerManager *manager) -{ - const char *text = gtk_entry_get_text (entry); - - if (text[0] == '\0') - return; - - swfdec_player_manager_execute (manager, text); - gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); -} - -static void -message_display_cb (SwfdecPlayerManager *manager, guint type, const char *message, GtkTextView *view) -{ - Gtk...