cropper

diff callbacks.c @ 14:da18f2d4f92f

removed all buttons and stuff from the window; cleaned up
author meillo@marmaro.de
date Thu, 04 Mar 2010 18:31:28 +0100
parents 13bc21684b8a
children 7dbf3879939a
line diff
     1.1 --- a/callbacks.c	Thu Mar 04 17:05:38 2010 +0100
     1.2 +++ b/callbacks.c	Thu Mar 04 18:31:28 2010 +0100
     1.3 @@ -147,7 +147,6 @@
     1.4  	                             "crop_image")), TRUE, (double) h / w);
     1.5  }
     1.6  
     1.7 -*/
     1.8  
     1.9  
    1.10  
    1.11 @@ -155,8 +154,6 @@
    1.12  
    1.13  
    1.14  
    1.15 -
    1.16 -/*
    1.17  void
    1.18  on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data)
    1.19  {
    1.20 @@ -268,7 +265,7 @@
    1.21  
    1.22  
    1.23  void
    1.24 -on_crop_clicked(GtkButton* button, gpointer user_data)
    1.25 +crop(void)
    1.26  {
    1.27  	char crop_call[256];
    1.28  
    1.29 @@ -327,6 +324,12 @@
    1.30  		return FALSE;
    1.31  	}
    1.32  	switch (pKey->keyval) {
    1.33 +	case GDK_q:
    1.34 +		gtk_main_quit();
    1.35 +		break;
    1.36 +	case GDK_Return:
    1.37 +		crop();
    1.38 +		break;
    1.39  	case GDK_plus:
    1.40  		on_zoom_in_button_clicked(NULL, userdata);
    1.41  		break;