Mercurial > cropper
comparison 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 |
comparison
equal
deleted
inserted
replaced
3:6aaba3a61563 | 4:2f11ab3e6047 |
---|---|
1 #ifndef _CALLBACKS_H_ | |
2 #define _CALLBACKS_H_ | |
3 | |
1 #include <gtk/gtk.h> | 4 #include <gtk/gtk.h> |
2 | 5 |
3 double ratio; | 6 double ratio; |
4 | 7 |
8 /* | |
5 void on_ratio_none_activate(GtkMenuItem* menuitem, gpointer user_data); | 9 void on_ratio_none_activate(GtkMenuItem* menuitem, gpointer user_data); |
6 void on_ratio_square_activate(GtkMenuItem* menuitem, gpointer user_data); | 10 void on_ratio_square_activate(GtkMenuItem* menuitem, gpointer user_data); |
7 void on_ratio_4x3_activate(GtkMenuItem* menuitem, gpointer user_data); | 11 void on_ratio_4x3_activate(GtkMenuItem* menuitem, gpointer user_data); |
8 void on_ratio_3x2_activate(GtkMenuItem* menuitem, gpointer user_data); | 12 void on_ratio_3x2_activate(GtkMenuItem* menuitem, gpointer user_data); |
9 void on_ratio_custom_activate(GtkMenuItem* menuitem, gpointer user_data); | 13 void on_ratio_custom_activate(GtkMenuItem* menuitem, gpointer user_data); |
10 | 14 |
15 static void ratio_optionmenu_changed_cb (GtkOptionMenu* optionmenu, gpointer unser_data); | |
16 static void ratio_value_changed_cb (GtkSpinButton* spin, gpointer unser_data); | |
17 static void ratio_swap_button_cb (GtkButton* button, gpointer unser_data); | |
18 | |
11 void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data); | 19 void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data); |
12 void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data); | 20 void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data); |
13 void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data); | 21 void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data); |
14 void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data); | 22 void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data); |
15 void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data); | 23 void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data); |
24 */ | |
25 | |
26 void on_crop_clicked(GtkButton* button, gpointer user_data); | |
16 | 27 |
17 void on_cropper_window_destroy(GtkObject* object, gpointer user_data); | 28 void on_cropper_window_destroy(GtkObject* object, gpointer user_data); |
18 gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data); | 29 /*gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data);*/ |
19 | 30 |
31 | |
32 #endif |