Displaying 20 results from an estimated 23 matches for "gtk_entry".
Did you mean:
gdt_entry
2004 Sep 10
2
xmms plugin, fileinfo
...r *str, ...)
{
- gint stripped_len;
- gchar *text;
+ va_list args;
+ gchar *tempstr;
+
+ va_start(args, str);
+ tempstr = g_strdup_vprintf(str, args);
+ va_end(args);
- stripped_len = flac_strip_spaces(tag, length);
- text = g_strdup_printf("%-*.*s", stripped_len, 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);
- mems...
2016 Sep 26
1
[PATCH] p2v: add mnemonics to labels and buttons (RHBZ#1379289)
...rsion server:"));
+ server_label = gtk_label_new_with_mnemonic (_("Conversion _server:"));
table_attach (table, server_label,
0, 1, 0, 1, GTK_FILL, GTK_FILL, 4, 4);
set_alignment (server_label, 1., 0.5);
hbox_new (server_hbox, FALSE, 4);
server_entry = gtk_entry_new ();
+ gtk_label_set_mnemonic_widget (GTK_LABEL (server_label), server_entry);
if (config->server != NULL)
gtk_entry_set_text (GTK_ENTRY (server_entry), config->server);
port_colon_label = gtk_label_new (":");
@@ -305,11 +306,12 @@ create_connection_dialog (struct con...
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;
> +...
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
2016 May 30
0
[PATCH v2 3/3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
..._MISC (server_label), 1., 0.5);
- gtk_table_attach (GTK_TABLE (table), server_label,
- 0, 1, 0, 1, GTK_FILL, GTK_FILL, 4, 4);
+ set_alignment (server_label, 1., 0.5);
+ table_attach (table, server_label,
+ 0, 1, 0, 1, GTK_FILL, GTK_FILL, 4, 4);
server_entry = gtk_entry_new ();
if (config->server != NULL)
gtk_entry_set_text (GTK_ENTRY (server_entry), config->server);
- gtk_table_attach (GTK_TABLE (table), server_entry,
- 1, 2, 0, 1, GTK_FILL, GTK_FILL, 4, 4);
+ table_attach (table, server_entry,
+ 1, 2, 0, 1, GTK_F...
2016 May 30
1
[PATCH v3] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
This version of the Gtk 2/3 patch gets alignment and padding mostly
right. I still can't work out how to vertically align labels in the
middle of a cell in a GtkGrid. The GtkTextView in the final dialog is
still broken.
Rich.
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
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));
+ i...
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 @@ l...
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.
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
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.
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...
2012 Jan 13
0
[PATCH 1/1] Ported gnome-ssh-askpass2 to gtk3.
...uot;GNOME_SSH_ASKPASS_GRAB_SERVER") != NULL);
+ grab_pointer = (getenv("GNOME_SSH_ASKPASS_GRAB_POINTER") != NULL);
+ grab_tries = 0;
+
+ dialog = gtk_message_dialog_new(NULL, 0,
+ GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_OK_CANCEL,
+ "%s",
+ message);
+
+ entry = gtk_entry_new();
+ gtk_box_pack_start(GTK_BOX(gtk_message_dialog_get_message_area(GTK_MESSAGE_DIALOG(dialog))), entry, FALSE,
+ FALSE, 0);
+ gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
+ gtk_widget_grab_focus(entry);
+ gtk_widget_show(entry);
+
+ gtk_window_set_title(GTK_WINDOW(dialog), "Open...
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...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...#endif
--- src/plugin_xmms/fileinfo.c-dist 2005-05-25 16:24:26.000000000 +0200
+++ src/plugin_xmms/fileinfo.c 2005-05-25 16:24:33.000000000 +0200
@@ -136,7 +136,7 @@ static void get_entry_tag(GtkEntry * ent
free(utf8);
}
-static void show_tag()
+static void show_tag(void)
{
set_entry_tag(GTK_ENTRY(title_entry) , FLAC_plugin__tags_get_tag_utf8(tags_, "TITLE"));
set_entry_tag(GTK_ENTRY(artist_entry) , FLAC_plugin__tags_get_tag_utf8(tags_, "ARTIST"));
@@ -189,7 +189,7 @@ static void remove_tag(GtkWidget * w, gp
gtk_widget_destroy(window);...
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
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
2015 Aug 27
5
[PATCH v2 0/4] p2v: Wait for network to come online before testing connection
Fixes https://bugzilla.redhat.com/1256222