cropper

view callbacks.h @ 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
line source
1 #ifndef _CALLBACKS_H_
2 #define _CALLBACKS_H_
4 #include <gtk/gtk.h>
6 double ratio;
8 void crop(void);
9 gboolean on_key_press(GtkWidget* window, GdkEventKey* pKey, gpointer userdata);
10 void on_cropper_window_create(GtkObject* object, gpointer user_data);
11 void on_cropper_window_destroy(GtkObject* object, gpointer user_data);
15 /*
16 gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data);
18 void on_zoom_in_button_clicked(GtkObject* object, gpointer user_data);
19 void on_zoom_out_button_clicked(GtkObject* object, gpointer user_data);
20 void on_zoom_100_button_clicked(GtkObject* object, gpointer user_data);
21 void on_zoom_fit_button_clicked(GtkObject* object, gpointer user_data);
23 void on_ratio_none_activate(GtkMenuItem* menuitem, gpointer user_data);
24 void on_ratio_square_activate(GtkMenuItem* menuitem, gpointer user_data);
25 void on_ratio_4x3_activate(GtkMenuItem* menuitem, gpointer user_data);
26 void on_ratio_3x2_activate(GtkMenuItem* menuitem, gpointer user_data);
27 void on_ratio_custom_activate(GtkMenuItem* menuitem, gpointer user_data);
29 static void ratio_optionmenu_changed_cb(GtkOptionMenu* optionmenu, gpointer unser_data);
30 static void ratio_value_changed_cb(GtkSpinButton* spin, gpointer unser_data);
31 static void ratio_swap_button_cb(GtkButton* button, gpointer unser_data);
33 void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
34 void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
35 void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
36 void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
37 void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data);
38 */
41 #endif