increment years and months by two not three on double clicks, patch

Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>

        * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
        months by two not three on double clicks, patch provided by Nick Lamb
        <njl98r@ecs.soton.ac.uk>.
This commit is contained in:
Tim Janik 1999-02-20 19:09:21 +00:00 committed by Tim Janik
parent e0e893da8f
commit 32b008bf56
8 changed files with 48 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -1,3 +1,9 @@
Sat Feb 20 20:04:48 1999 Tim Janik <timj@gtk.org>
* gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
months by two not three on double clicks, patch provided by Nick Lamb
<njl98r@ecs.soton.ac.uk>.
Sat Feb 20 19:44:36 1999 Tim Janik <timj@gtk.org>
* gtk/gtkwindow.c: added ::modal argument.

View File

@ -2289,6 +2289,12 @@ gtk_calendar_button_press (GtkWidget *widget,
x = (gint) (event->x);
y = (gint) (event->y);
if (event->window == private_data->main_win)
gtk_calendar_main_button (widget, event);
if (event->type != GDK_BUTTON_PRESS)
return FALSE; /* Double-clicks? Triple-clicks? No thanks! */
if (event->window == private_data->arrow_win[ARROW_MONTH_LEFT])
gtk_calendar_set_month_prev (calendar);
@ -2301,9 +2307,6 @@ gtk_calendar_button_press (GtkWidget *widget,
if (event->window == private_data->arrow_win[ARROW_YEAR_RIGHT])
gtk_calendar_set_year_next (calendar);
if (event->window == private_data->main_win)
gtk_calendar_main_button (widget, event);
return FALSE;
}