cropper
diff callbacks.h @ 4:2f11ab3e6047
added option handling; added output for convert; commented all ratio code cause it is not really important now
author | meillo@marmaro.de |
---|---|
date | Fri, 07 Dec 2007 17:40:08 +0100 |
parents | 6aaba3a61563 |
children | ec2d11d96fb0 |
line diff
1.1 --- a/callbacks.h Wed Dec 05 00:08:39 2007 +0100 1.2 +++ b/callbacks.h Fri Dec 07 17:40:08 2007 +0100 1.3 @@ -1,19 +1,32 @@ 1.4 +#ifndef _CALLBACKS_H_ 1.5 +#define _CALLBACKS_H_ 1.6 + 1.7 #include <gtk/gtk.h> 1.8 1.9 double ratio; 1.10 1.11 +/* 1.12 void on_ratio_none_activate(GtkMenuItem* menuitem, gpointer user_data); 1.13 void on_ratio_square_activate(GtkMenuItem* menuitem, gpointer user_data); 1.14 void on_ratio_4x3_activate(GtkMenuItem* menuitem, gpointer user_data); 1.15 void on_ratio_3x2_activate(GtkMenuItem* menuitem, gpointer user_data); 1.16 void on_ratio_custom_activate(GtkMenuItem* menuitem, gpointer user_data); 1.17 1.18 +static void ratio_optionmenu_changed_cb (GtkOptionMenu* optionmenu, gpointer unser_data); 1.19 +static void ratio_value_changed_cb (GtkSpinButton* spin, gpointer unser_data); 1.20 +static void ratio_swap_button_cb (GtkButton* button, gpointer unser_data); 1.21 + 1.22 void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data); 1.23 void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data); 1.24 void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data); 1.25 void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data); 1.26 void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data); 1.27 +*/ 1.28 + 1.29 +void on_crop_clicked(GtkButton* button, gpointer user_data); 1.30 1.31 void on_cropper_window_destroy(GtkObject* object, gpointer user_data); 1.32 -gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data); 1.33 +/*gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data);*/ 1.34 1.35 + 1.36 +#endif