GtkEntry



In gtkentry.c:
#define MIN_ENTRY_WIDTH  150

Which is later used to make all edit boxes at least that wide:
static void
gtk_entry_size_request (GtkWidget      *widget,
                        GtkRequisition *requisition)
{
  g_return_if_fail (widget != NULL);
  g_return_if_fail (GTK_IS_ENTRY (widget));
  g_return_if_fail (requisition != NULL);

  requisition->width = MIN_ENTRY_WIDTH + (widget->style->klass->xthickness + INNER_BORDER) * 2;

While this may be a reasonable default, it seems that there are many
cases where you'd want a smaller entry (for example, in a form that needed
a zip code).  
Is this possible?

-- 
Evan Martin - eeyem@u.washington.edu - http://students.washington.edu/eeyem



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]