Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 7th, 2011  |  syntax: Diff  |  size: 3.72 KB  |  views: 227  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- saturate.c  2011-05-06 12:10:17.000000000 +0200
  2. +++ saturate_p.c        2011-05-08 05:44:41.659615352 +0200
  3. @@ -281,13 +281,15 @@ static gboolean
  4.  sat_dialog (GimpDrawable *drawable)
  5.  {
  6.    GtkWidget *dialog;
  7. -  GtkWidget *main_vbox;
  8. +  GtkWidget *main_box;
  9. +  GtkWidget *vbox1;
  10. +  GtkWidget *vbox2;
  11.    GtkWidget *sat_hbox;
  12.    GtkWidget *br_hbox,*tmpr_hbox,*formula_hbox;
  13.    GtkWidget *preview;
  14.    GtkWidget *combo;
  15.    GtkWidget *frame,*frame2,*frame3,*frame4;
  16. -  GtkWidget *alignment,*alignment2,*alignment3,*alignment4;
  17. +  GtkWidget *alignment,*alignment2,*alignment3,*alignment4,*alignment_vb1,*alignment_vb2;
  18.    GtkWidget *slider0,*slider,*slider2,*slider3,*slider4,*slider5,*spin_dark, *spin_light,*slider_tmpr;  
  19.    GtkObject *slider0_adj,*slider_adj,*slider2_adj,*slider3_adj,*slider4_adj,*slider5_adj; //?
  20.    GtkObject *spin_dark_adj, *spin_light_adj, *slider_tmpr_adj;  
  21. @@ -308,17 +310,27 @@ sat_dialog (GimpDrawable *drawable)
  22.  
  23.                              NULL);
  24.  
  25. -  main_vbox = gtk_vbox_new (FALSE, 6);
  26. -  gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_vbox);
  27. -  gtk_widget_show (main_vbox);
  28. +  main_box = gtk_hbox_new (FALSE, 6);
  29. +  gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_box);
  30. +  gtk_widget_show (main_box);
  31. +
  32. +  alignment_vb1 = gtk_alignment_new (0.5, 0.5, 1, 1);
  33. +  gtk_widget_show (alignment_vb1);
  34. +  gtk_container_add (GTK_CONTAINER (main_box), alignment_vb1);
  35. +  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment_vb1), 6, 6, 6, 6);
  36. +  
  37. +       vbox1 = gtk_vbox_new (FALSE, 6);
  38. +  gtk_container_set_border_width (GTK_CONTAINER (vbox1), 3);
  39. +  gtk_widget_show (vbox1);
  40. +  gtk_container_add (GTK_CONTAINER (alignment_vb1), vbox1);
  41.  
  42.    preview = gimp_drawable_preview_new (drawable, &satvals.preview);
  43. -  gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
  44. +  gtk_box_pack_start (GTK_BOX (vbox1), preview, TRUE, TRUE, 0);
  45.    gtk_widget_show (preview);
  46.  
  47.    //saturation hbox
  48.    frame = gimp_frame_new ("Saturation");
  49. -  gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
  50. +  gtk_box_pack_start (GTK_BOX (vbox1), frame, FALSE, FALSE, 0);
  51.    gtk_widget_show (frame);
  52.  
  53.    alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
  54. @@ -332,9 +344,19 @@ sat_dialog (GimpDrawable *drawable)
  55.    gtk_widget_show (sat_hbox);
  56.    gtk_container_add (GTK_CONTAINER (alignment), sat_hbox);
  57.  
  58. +  alignment_vb2 = gtk_alignment_new (0.5, 0.5, 1, 1);
  59. +  gtk_widget_show (alignment_vb2);
  60. +  gtk_container_add (GTK_CONTAINER (main_box), alignment_vb2);
  61. +  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment_vb2), 6, 6, 6, 6);
  62. +  
  63. +       vbox2 = gtk_vbox_new (TRUE, 6);
  64. +  gtk_container_set_border_width (GTK_CONTAINER (vbox2), 3);
  65. +  gtk_widget_show (vbox2);
  66. +  gtk_container_add (GTK_CONTAINER (alignment_vb2), vbox2);
  67. +
  68.    //brightness hbox
  69.    frame2 = gimp_frame_new ("Brightness");
  70. -  gtk_box_pack_start (GTK_BOX (main_vbox), frame2, FALSE, FALSE, 0);
  71. +  gtk_box_pack_start (GTK_BOX (vbox2), frame2, FALSE, FALSE, 0);
  72.    gtk_widget_show (frame2);
  73.  
  74.    alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
  75. @@ -353,7 +375,7 @@ sat_dialog (GimpDrawable *drawable)
  76.  
  77.   //color temperature hbox
  78.    frame3 = gimp_frame_new ("Temperature");
  79. -  gtk_box_pack_start (GTK_BOX (main_vbox), frame3, FALSE, FALSE, 0);
  80. +  gtk_box_pack_start (GTK_BOX (vbox2), frame3, FALSE, FALSE, 0);
  81.    gtk_widget_show (frame3);
  82.  
  83.    alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1);
  84. @@ -465,7 +487,7 @@ sat_dialog (GimpDrawable *drawable)
  85.  
  86.   //brightness_formula_hbox
  87.    frame4 = gimp_frame_new (" Brightness formula:");
  88. -  gtk_box_pack_start (GTK_BOX (main_vbox), frame4, FALSE, FALSE, 0);
  89. +  gtk_box_pack_start (GTK_BOX (vbox2), frame4, FALSE, FALSE, 0);
  90.    gtk_widget_show (frame4);
clone this paste RAW Paste Data