comparison interface.c @ 12:75a30c850ea0

more cosmetic changes
author meillo@marmaro.de
date Thu, 04 Mar 2010 14:23:30 +0100
parents c18ba4ea1514
children 13bc21684b8a
comparison
equal deleted inserted replaced
11:c18ba4ea1514 12:75a30c850ea0
295 295
296 ratio_optionmenu = gtk_option_menu_new(); 296 ratio_optionmenu = gtk_option_menu_new();
297 gtk_widget_set_name(ratio_optionmenu, "ratio_optionmenu"); 297 gtk_widget_set_name(ratio_optionmenu, "ratio_optionmenu");
298 gtk_widget_show(ratio_optionmenu); 298 gtk_widget_show(ratio_optionmenu);
299 gtk_table_attach(GTK_TABLE(table3), ratio_optionmenu, 0, 2, 0, 1, 299 gtk_table_attach(GTK_TABLE(table3), ratio_optionmenu, 0, 2, 0, 1,
300 (GtkAttachOptions)(GTK_FILL), 300 (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(0), 0, 0);
301 (GtkAttachOptions)(0), 0, 0);
302 301
303 menu1 = gtk_menu_new(); 302 menu1 = gtk_menu_new();
304 gtk_widget_set_name(menu1, "menu1"); 303 gtk_widget_set_name(menu1, "menu1");
305 304
306 ratio_none = gtk_menu_item_new_with_mnemonic("None"); 305 ratio_none = gtk_menu_item_new_with_mnemonic("None");
451 450
452 451
453 452
454 453
455 g_signal_connect(G_OBJECT(cropper_window), "show", 454 g_signal_connect(G_OBJECT(cropper_window), "show",
456 G_CALLBACK(on_cropper_window_create), 455 G_CALLBACK(on_cropper_window_create), NULL);
457 NULL);
458 /* destroy */ 456 /* destroy */
459 g_signal_connect(G_OBJECT(cropper_window), "destroy", 457 g_signal_connect(G_OBJECT(cropper_window), "destroy",
460 G_CALLBACK(on_cropper_window_destroy), 458 G_CALLBACK(on_cropper_window_destroy), NULL);
461 NULL);
462 459
463 460
464 /* crop */ 461 /* crop */
465 g_signal_connect(G_OBJECT(crop_okbutton), "clicked", 462 g_signal_connect(G_OBJECT(crop_okbutton), "clicked",
466 G_CALLBACK(on_crop_clicked), 463 G_CALLBACK(on_crop_clicked), NULL);
467 NULL);
468 464
469 465
470 /* zoom */ 466 /* zoom */
471 g_signal_connect(G_OBJECT(crop_zoom_in_button), "clicked", 467 g_signal_connect(G_OBJECT(crop_zoom_in_button), "clicked",
472 G_CALLBACK(on_zoom_in_button_clicked), 468 G_CALLBACK(on_zoom_in_button_clicked), NULL);
473 NULL);
474 g_signal_connect(G_OBJECT(crop_zoom_out_button), "clicked", 469 g_signal_connect(G_OBJECT(crop_zoom_out_button), "clicked",
475 G_CALLBACK(on_zoom_out_button_clicked), 470 G_CALLBACK(on_zoom_out_button_clicked), NULL);
476 NULL);
477 g_signal_connect(G_OBJECT(crop_zoom_100_button), "clicked", 471 g_signal_connect(G_OBJECT(crop_zoom_100_button), "clicked",
478 G_CALLBACK(on_zoom_100_button_clicked), 472 G_CALLBACK(on_zoom_100_button_clicked), NULL);
479 NULL);
480 g_signal_connect(G_OBJECT(crop_zoom_fit_button), "clicked", 473 g_signal_connect(G_OBJECT(crop_zoom_fit_button), "clicked",
481 G_CALLBACK(on_zoom_fit_button_clicked), 474 G_CALLBACK(on_zoom_fit_button_clicked), NULL);
482 NULL);
483 475
484 476
485 /* aspect ratio */ 477 /* aspect ratio */
486 /* 478 /*
487 g_signal_connect(G_OBJECT(ratio_w_spinbutton), "value_changed", 479 g_signal_connect(G_OBJECT(ratio_w_spinbutton), "value_changed",
488 G_CALLBACK(on_ratio_w_spinbutton_value_changed), 480 G_CALLBACK(on_ratio_w_spinbutton_value_changed), NULL);
489 NULL);
490 g_signal_connect(G_OBJECT(ratio_swap_button), "clicked", 481 g_signal_connect(G_OBJECT(ratio_swap_button), "clicked",
491 G_CALLBACK(on_ratio_swap_button_clicked), 482 G_CALLBACK(on_ratio_swap_button_clicked), NULL);
492 NULL);
493 g_signal_connect(G_OBJECT(ratio_h_spinbutton), "value_changed", 483 g_signal_connect(G_OBJECT(ratio_h_spinbutton), "value_changed",
494 G_CALLBACK(on_ratio_h_spinbutton_value_changed), 484 G_CALLBACK(on_ratio_h_spinbutton_value_changed), NULL);
495 NULL);
496 485
497 g_signal_connect(G_OBJECT(ratio_none), "activate", 486 g_signal_connect(G_OBJECT(ratio_none), "activate",
498 G_CALLBACK(on_ratio_none_activate), 487 G_CALLBACK(on_ratio_none_activate), NULL);
499 NULL);
500 g_signal_connect(G_OBJECT(ratio_square), "activate", 488 g_signal_connect(G_OBJECT(ratio_square), "activate",
501 G_CALLBACK(on_ratio_square_activate), 489 G_CALLBACK(on_ratio_square_activate), NULL);
502 NULL);
503 g_signal_connect(G_OBJECT(ratio_4x3), "activate", 490 g_signal_connect(G_OBJECT(ratio_4x3), "activate",
504 G_CALLBACK(on_ratio_4x3_activate), 491 G_CALLBACK(on_ratio_4x3_activate), NULL);
505 NULL);
506 g_signal_connect(G_OBJECT(ratio_3x2), "activate", 492 g_signal_connect(G_OBJECT(ratio_3x2), "activate",
507 G_CALLBACK(on_ratio_3x2_activate), 493 G_CALLBACK(on_ratio_3x2_activate), NULL);
508 NULL);
509 g_signal_connect(G_OBJECT(ratio_custom), "activate", 494 g_signal_connect(G_OBJECT(ratio_custom), "activate",
510 G_CALLBACK(on_ratio_custom_activate), 495 G_CALLBACK(on_ratio_custom_activate), NULL);
511 NULL);
512 496
513 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_optionmenu")), "changed", 497 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_optionmenu")), "changed",
514 G_CALLBACK(ratio_optionmenu_changed_cb), 498 G_CALLBACK(ratio_optionmenu_changed_cb), NULL);
515 NULL);
516 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_w_spinbutton")), "value_changed", 499 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_w_spinbutton")), "value_changed",
517 G_CALLBACK(ratio_value_changed_cb), 500 G_CALLBACK(ratio_value_changed_cb), NULL);
518 NULL);
519 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_h_spinbutton")), "value_changed", 501 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_h_spinbutton")), "value_changed",
520 G_CALLBACK(ratio_value_changed_cb), 502 G_CALLBACK(ratio_value_changed_cb), NULL);
521 NULL);
522 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_swap_button")), "clicked", 503 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_swap_button")), "clicked",
523 G_CALLBACK(ratio_swap_button_cb), 504 G_CALLBACK(ratio_swap_button_cb), NULL);
524 NULL);
525 */ 505 */
526 506
527 507
528 /* selection */ 508 /* selection */
529 /* 509 /*
530 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed", 510 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed",
531 G_CALLBACK(selection_x_value_changed_cb), 511 G_CALLBACK(selection_x_value_changed_cb), data);
532 data);
533 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_y_spinbutton")), "value_changed", 512 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_y_spinbutton")), "value_changed",
534 G_CALLBACK(selection_y_value_changed_cb), 513 G_CALLBACK(selection_y_value_changed_cb), data);
535 data);
536 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_width_spinbutton")), "value_changed", 514 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_width_spinbutton")), "value_changed",
537 G_CALLBACK(selection_width_value_changed_cb), 515 G_CALLBACK(selection_width_value_changed_cb), data);
538 data);
539 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_height_spinbutton")), "value_changed", 516 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_height_spinbutton")), "value_changed",
540 G_CALLBACK(selection_height_value_changed_cb), 517 G_CALLBACK(selection_height_value_changed_cb), data);
541 data);
542 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_image")), "selection_changed", 518 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_image")), "selection_changed",
543 G_CALLBACK(selection_changed_cb), 519 G_CALLBACK(selection_changed_cb), data);
544 data);
545 */ 520 */
546 521
547 522
548 523
549 524