diff options
Diffstat (limited to 'src/dialogs/bookmark.c')
-rw-r--r-- | src/dialogs/bookmark.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/dialogs/bookmark.c b/src/dialogs/bookmark.c index abff500..b171087 100644 --- a/src/dialogs/bookmark.c +++ b/src/dialogs/bookmark.c @@ -148,7 +148,6 @@ GtkWidget *create_bookmark_dialog(GtkWindow *parent, const vmpa2t *addr) GtkWidget *result; /* Fenêtre à renvoyer */ GtkWidget *dlgvbox; /* Zone principale de la boîte */ GtkWidget *vbox; /* Support à construire #1 */ - GtkWidget *alignment; /* Support véritable interne */ GtkWidget *frame; /* Support avec encadrement */ GtkWidget *sub_vbox; /* Support à construire #2 */ GtkWidget *hbox; /* Support à construire #3 */ @@ -173,12 +172,11 @@ GtkWidget *create_bookmark_dialog(GtkWindow *parent, const vmpa2t *addr) /* Localisation dans l'espace */ - frame = qck_create_frame(_("<b>Localisation</b>"), &alignment, 8, 0, 12, 0); - gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); - sub_vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(sub_vbox); - gtk_container_add(GTK_CONTAINER(alignment), sub_vbox); + + frame = qck_create_frame(_("<b>Localisation</b>"), sub_vbox, 8, 0, 12, 0); + gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); /* 1) Adresse */ @@ -210,11 +208,10 @@ GtkWidget *create_bookmark_dialog(GtkWindow *parent, const vmpa2t *addr) /* Commentaire éventuel */ - frame = qck_create_frame(_("<b>Optional comment</b>"), &alignment, 8, 0, 12, 0); - gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); - entry = qck_create_entry(G_OBJECT(result), "comment", NULL); - gtk_container_add(GTK_CONTAINER(alignment), entry); + + frame = qck_create_frame(_("<b>Optional comment</b>"), entry, 8, 0, 12, 0); + gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); /* Zone de validation */ |