forked from AuroraMiddleware/gtk
Removed size_request from GtkTextView
This commit is contained in:
parent
2b728f66a8
commit
87dfa724eb
@ -282,6 +282,12 @@ static void gtk_text_view_get_property (GObject *object,
|
|||||||
static void gtk_text_view_destroy (GtkWidget *widget);
|
static void gtk_text_view_destroy (GtkWidget *widget);
|
||||||
static void gtk_text_view_size_request (GtkWidget *widget,
|
static void gtk_text_view_size_request (GtkWidget *widget,
|
||||||
GtkRequisition *requisition);
|
GtkRequisition *requisition);
|
||||||
|
static void gtk_text_view_get_preferred_width (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural);
|
||||||
|
static void gtk_text_view_get_preferred_height (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural);
|
||||||
static void gtk_text_view_size_allocate (GtkWidget *widget,
|
static void gtk_text_view_size_allocate (GtkWidget *widget,
|
||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
static void gtk_text_view_realize (GtkWidget *widget);
|
static void gtk_text_view_realize (GtkWidget *widget);
|
||||||
@ -589,7 +595,8 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
|||||||
widget_class->direction_changed = gtk_text_view_direction_changed;
|
widget_class->direction_changed = gtk_text_view_direction_changed;
|
||||||
widget_class->grab_notify = gtk_text_view_grab_notify;
|
widget_class->grab_notify = gtk_text_view_grab_notify;
|
||||||
widget_class->state_changed = gtk_text_view_state_changed;
|
widget_class->state_changed = gtk_text_view_state_changed;
|
||||||
widget_class->size_request = gtk_text_view_size_request;
|
widget_class->get_preferred_width = gtk_text_view_get_preferred_width;
|
||||||
|
widget_class->get_preferred_height = gtk_text_view_get_preferred_height;
|
||||||
widget_class->size_allocate = gtk_text_view_size_allocate;
|
widget_class->size_allocate = gtk_text_view_size_allocate;
|
||||||
widget_class->event = gtk_text_view_event;
|
widget_class->event = gtk_text_view_event;
|
||||||
widget_class->key_press_event = gtk_text_view_key_press_event;
|
widget_class->key_press_event = gtk_text_view_key_press_event;
|
||||||
@ -3305,6 +3312,31 @@ gtk_text_view_size_request (GtkWidget *widget,
|
|||||||
priv->cached_size_request = *requisition;
|
priv->cached_size_request = *requisition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_text_view_get_preferred_width (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural)
|
||||||
|
{
|
||||||
|
GtkRequisition requisition;
|
||||||
|
|
||||||
|
gtk_text_view_size_request (widget, &requisition);
|
||||||
|
|
||||||
|
*minimum = *natural = requisition.width;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_text_view_get_preferred_height (GtkWidget *widget,
|
||||||
|
gint *minimum,
|
||||||
|
gint *natural)
|
||||||
|
{
|
||||||
|
GtkRequisition requisition;
|
||||||
|
|
||||||
|
gtk_text_view_size_request (widget, &requisition);
|
||||||
|
|
||||||
|
*minimum = *natural = requisition.height;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_text_view_compute_child_allocation (GtkTextView *text_view,
|
gtk_text_view_compute_child_allocation (GtkTextView *text_view,
|
||||||
GtkTextViewChild *vc,
|
GtkTextViewChild *vc,
|
||||||
|
Loading…
Reference in New Issue
Block a user