Skip to content

Commit

Permalink
Horizzontal expand for editor fields
Browse files Browse the repository at this point in the history
  • Loading branch information
antenore committed Jun 17, 2017
1 parent 644b66b commit 90a7c1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions remmina/src/remmina_file_editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ static void remmina_file_editor_create_server(RemminaFileEditor* gfe, const Remm

s = remmina_pref_get_recent(plugin->name);
widget = remmina_public_create_combo_entry(s, remmina_file_get_string(gfe->priv->remmina_file, "server"), TRUE);
gtk_widget_set_hexpand (widget, TRUE);
gtk_widget_show(widget);
gtk_widget_set_tooltip_markup(widget, _(server_tips));
gtk_entry_set_activates_default(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(widget))), TRUE);
Expand Down Expand Up @@ -453,6 +454,7 @@ static GtkWidget* remmina_file_editor_create_password(RemminaFileEditor* gfe, Gt
gtk_grid_attach(GTK_GRID(grid), widget, 1, row, 1, 1);
gtk_entry_set_max_length(GTK_ENTRY(widget), 100);
gtk_entry_set_visibility(GTK_ENTRY(widget), FALSE);
gtk_widget_set_hexpand (widget, TRUE);

if (value)
{
Expand Down Expand Up @@ -560,6 +562,7 @@ static GtkWidget* remmina_file_editor_create_text(RemminaFileEditor* gfe, GtkWid
gtk_widget_show(widget);
gtk_grid_attach(GTK_GRID(grid), widget, 1, row, 1, 1);
gtk_entry_set_max_length(GTK_ENTRY(widget), 300);
gtk_widget_set_hexpand (widget, TRUE);

if (value)
gtk_entry_set_text(GTK_ENTRY(widget), value);
Expand Down

0 comments on commit 90a7c1c

Please sign in to comment.