mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
egg-resizer: ignore unset drag positions
This commit is contained in:
@ -195,10 +195,13 @@ egg_resizer_measure (GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
int handle_min, handle_nat;
|
int handle_min, handle_nat;
|
||||||
|
|
||||||
if (self->drag_position > *minimum)
|
if (self->drag_position != 0)
|
||||||
*natural = self->drag_position;
|
{
|
||||||
else if (self->drag_position < *minimum)
|
if (self->drag_position > *minimum)
|
||||||
*natural = *minimum;
|
*natural = self->drag_position;
|
||||||
|
else if (self->drag_position < *minimum)
|
||||||
|
*natural = *minimum;
|
||||||
|
}
|
||||||
|
|
||||||
if (gtk_widget_get_visible (GTK_WIDGET (self->handle)))
|
if (gtk_widget_get_visible (GTK_WIDGET (self->handle)))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user