[gimp/cage: 115/130] app: use gtk_entry_set_width_chars() to override GtkEntry's default width
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/cage: 115/130] app: use gtk_entry_set_width_chars() to override GtkEntry's default width
- Date: Thu, 30 Dec 2010 17:57:38 +0000 (UTC)
commit fadd38cb730eb536dea42a78202ccb03622d0872
Author: Michael Natterer <mitch gimp org>
Date: Thu Dec 9 23:45:00 2010 +0100
app: use gtk_entry_set_width_chars() to override GtkEntry's default width
app/widgets/gimpviewablebox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpviewablebox.c b/app/widgets/gimpviewablebox.c
index 2382bfa..54c943d 100644
--- a/app/widgets/gimpviewablebox.c
+++ b/app/widgets/gimpviewablebox.c
@@ -526,7 +526,7 @@ gimp_viewable_box_new (GimpContainer *container,
/* set a silly smally size request on the entry to disable
* GtkEntry's minimal width of 150 pixels.
*/
- gtk_widget_set_size_request (entry, 10, -1);
+ gtk_entry_set_width_chars (GTK_ENTRY (entry), 4);
gtk_box_pack_start (GTK_BOX (vbox), entry, label ? FALSE: TRUE, FALSE, 0);
gtk_widget_show (entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]