Commit c1a26cc3 authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

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)
parent 53171867
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)
......
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)
......
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)
......
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)
......
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)
......
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)
......
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment