honor min_width and max_width while resizing columns (pointed out by Jorn
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
max_width while resizing columns (pointed out by Jorn Baayen)
This commit is contained in:
parent
53171867b5
commit
c1a26cc321
8 changed files with 48 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
Sat Feb 23 03:10:20 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_key_press): honor min_width and
|
||||
max_width while resizing columns (pointed out by Jorn Baayen)
|
||||
|
||||
Fri Feb 22 19:17:46 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
Patch from Matthias Clasen (#54488)
|
||||
|
|
|
|||
|
|
@ -3372,8 +3372,15 @@ gtk_tree_view_key_press (GtkWidget *widget,
|
|||
column->resized_width -= 2;
|
||||
if (column->resized_width < 0)
|
||||
column->resized_width = 0;
|
||||
column->resized_width = MAX (column->min_width,
|
||||
column->resized_width);
|
||||
|
||||
if (column->min_width == -1)
|
||||
column->resized_width = MAX (column->button->requisition.width, column->resized_width);
|
||||
else
|
||||
column->resized_width = MAX (column->min_width, column->resized_width);
|
||||
|
||||
if (column->max_width != -1)
|
||||
column->resized_width = MIN (column->resized_width, column->max_width);
|
||||
|
||||
column->use_resized_width = TRUE;
|
||||
gtk_widget_queue_resize (widget);
|
||||
return TRUE;
|
||||
|
|
@ -3383,6 +3390,10 @@ gtk_tree_view_key_press (GtkWidget *widget,
|
|||
column->resized_width = MAX (column->resized_width,
|
||||
column->width);
|
||||
column->resized_width += 2;
|
||||
|
||||
if (column->max_width != -1)
|
||||
column->resized_width = MIN (column->resized_width, column->max_width);
|
||||
|
||||
column->use_resized_width = TRUE;
|
||||
gtk_widget_queue_resize (widget);
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue