Commit fe7ff5de authored by Colomban Wendling's avatar Colomban Wendling

OVCCGtk: fix packing of the port field in the connect dialog

Also drop the build-time support for vertical layout, it's useless,
less nice, adds complexity and needs different packing options.
parent 62b70d44
......@@ -32,10 +32,6 @@
#include "ovccgtk-message-info.h"
/* define to 1 to have Port on it own row */
#define VERTICAL_LAYOUT 0
struct _OVCCGtkConnectionDialogPrivate
{
GtkWidget *message;
......@@ -230,11 +226,7 @@ ovccgtk_connection_dialog_init (OVCCGtkConnectionDialog *self)
/* server frame */
frame = ovccgtk_frame_new (_("Server"));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
#if VERTICAL_LAYOUT
box = gtk_vbox_new (FALSE, 6);
#else
box = gtk_hbox_new (FALSE, 6);
#endif
gtk_container_add (GTK_CONTAINER (frame), box);
box2 = gtk_hbox_new (FALSE, 6);
......@@ -250,13 +242,10 @@ ovccgtk_connection_dialog_init (OVCCGtkConnectionDialog *self)
gtk_box_pack_start (GTK_BOX (box2), self->priv->host, TRUE, TRUE, 0);
box2 = gtk_hbox_new (FALSE, 6);
gtk_box_pack_start (GTK_BOX (box), box2, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (box), box2, FALSE, TRUE, 0);
label = gtk_label_new (_("Port:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
#if VERTICAL_LAYOUT
gtk_size_group_add_widget (group, label);
#endif
gtk_box_pack_start (GTK_BOX (box2), label, FALSE, TRUE, 0);
self->priv->port = gtk_spin_button_new_with_range (0, 0xffff, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment