[ekiga/ds-fix-boost-leaks] FormDialogGtk: Make the Dialog resizable. Entries look better.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-fix-boost-leaks] FormDialogGtk: Make the Dialog resizable. Entries look better.
- Date: Tue, 13 Oct 2015 18:08:58 +0000 (UTC)
commit 9e9dd5d231e89dd17ffd30ab4d59bc079653b762
Author: Damien Sandras <dsandras seconix com>
Date: Tue Oct 13 20:06:02 2015 +0200
FormDialogGtk: Make the Dialog resizable. Entries look better.
Entries now have a minimal decent width.
lib/engine/gui/gtk-core/form-dialog-gtk.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
index 046ed13..ce450cc 100644
--- a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
+++ b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
@@ -728,7 +728,7 @@ FormDialog::FormDialog (Ekiga::FormRequestPtr _request,
"use-header-bar", use_header,
NULL));
gtk_window_set_modal (GTK_WINDOW (window), TRUE);
- gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
+ gtk_window_set_resizable (GTK_WINDOW (window), TRUE);
if (GTK_IS_WINDOW (parent))
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (parent));
gtk_dialog_add_button (GTK_DIALOG (window),
@@ -1012,7 +1012,9 @@ FormDialog::text (const std::string name,
gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
gtk_entry_set_activates_default (GTK_ENTRY (entry), true);
gtk_entry_set_text (GTK_ENTRY (entry), value.c_str ());
- g_object_set (G_OBJECT (entry), "expand", TRUE, "allow-empty", allow_empty, NULL);
+ g_object_set (G_OBJECT (entry), "expand", TRUE,
+ "allow-empty", allow_empty,
+ "width-chars", 30, NULL);
submitter = new TextSubmitter (name, description, placeholder_text, type, advanced, allow_empty, entry);
submitters.push_back (submitter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]