cropper

diff callbacks.h @ 2:e359bea4c8ac

added code for ratio swap; new names for ratio operations; added main.h; some more
author meillo@marmaro.de
date Tue, 04 Dec 2007 23:20:51 +0100
parents 80535e4deaa4
children 6aaba3a61563
line diff
     1.1 --- a/callbacks.h	Tue Dec 04 20:23:25 2007 +0100
     1.2 +++ b/callbacks.h	Tue Dec 04 23:20:51 2007 +0100
     1.3 @@ -1,32 +1,19 @@
     1.4  #include <gtk/gtk.h>
     1.5  
     1.6 +gdouble ratio;
     1.7  
     1.8 -void on_none1_activate(GtkMenuItem* menuitem, gpointer user_data);
     1.9 +void on_ratio_none_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.10 +void on_ratio_square_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.11 +void on_ratio_4x3_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.12 +void on_ratio_3x2_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.13 +void on_ratio_custom_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.14  
    1.15 -void on_square1_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.16 -
    1.17 -void on_4x3__book__dvd_1_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.18 -
    1.19 -void on_4x6__postcard_1_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.20 -
    1.21 -void on_5x1_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.22 -
    1.23 -void on_8x1_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.24 -
    1.25 -void on_custom1_activate(GtkMenuItem* menuitem, gpointer user_data);
    1.26 +void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
    1.27 +void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
    1.28 +void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
    1.29 +void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
    1.30 +void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data);
    1.31  
    1.32  void on_cropper_window_destroy(GtkObject* object, gpointer user_data);
    1.33 -
    1.34 -void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
    1.35 -
    1.36 -void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
    1.37 -
    1.38 -void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data);
    1.39 -
    1.40 -void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
    1.41 -
    1.42 -void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
    1.43 -
    1.44  gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data);
    1.45  
    1.46 -void on_cropper_window_destroy(GtkObject* object, gpointer user_data);