[gtk+/gtk-2-90] Remove GtkGammaCurve completely



commit edf55249c2de2a01a5c896fe77c3be841018ae4a
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Nov 24 04:54:52 2009 +0100

    Remove GtkGammaCurve completely

 docs/faq/gtk-faq.sgml                   |    3 +-
 docs/reference/gtk/gtk-sections.txt     |   16 -
 docs/reference/gtk/gtk.types            |    1 -
 docs/reference/gtk/objects_grouped.sgml |    1 -
 docs/reference/gtk/tmpl/gtkcurve.sgml   |   10 -
 docs/reference/gtk/tmpl/gtkgamma.sgml   |   47 ---
 docs/tutorial/gtk-tut.sgml              |    3 +-
 docs/tutorial/gtk_tut.sgml              |    3 +-
 docs/tutorial/gtk_tut_12.es.sgml        |    3 +-
 docs/tutorial/gtk_tut_it.sgml           |    3 +-
 gtk/gtk.symbols                         |    9 -
 gtk/gtkgamma.c                          |  494 -------------------------------
 gtk/gtkgamma.h                          |   82 -----
 tests/testgtk.c                         |   51 ----
 14 files changed, 5 insertions(+), 721 deletions(-)
---
diff --git a/docs/faq/gtk-faq.sgml b/docs/faq/gtk-faq.sgml
index 493d61e..cbb4796 100644
--- a/docs/faq/gtk-faq.sgml
+++ b/docs/faq/gtk-faq.sgml
@@ -1137,8 +1137,7 @@ myapp --display=:1
      | | | +GtkCombo
      | | | `GtkStatusbar
      | | `GtkVBox
-     | |   +GtkColorSelection
-     | |   `GtkGammaCurve
+     | |   `GtkColorSelection
      | +GtkButton
      | | +GtkOptionMenu
      | | `GtkToggleButton
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index ed79afb..d0c2def 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -1756,22 +1756,6 @@ gtk_frame_get_type
 </SECTION>
 
 <SECTION>
-<FILE>gtkgamma</FILE>
-<TITLE>GtkGammaCurve</TITLE>
-GtkGammaCurve
-gtk_gamma_curve_new
-<SUBSECTION Standard>
-GTK_GAMMA_CURVE
-GTK_IS_GAMMA_CURVE
-GTK_TYPE_GAMMA_CURVE
-GTK_GAMMA_CURVE_CLASS
-GTK_IS_GAMMA_CURVE_CLASS
-GTK_GAMMA_CURVE_GET_CLASS
-<SUBSECTION Private>
-gtk_gamma_curve_get_type
-</SECTION>
-
-<SECTION>
 <FILE>gtkhandlebox</FILE>
 <TITLE>GtkHandleBox</TITLE>
 GtkHandleBox
diff --git a/docs/reference/gtk/gtk.types b/docs/reference/gtk/gtk.types
index 1cc34c6..a26a8d6 100644
--- a/docs/reference/gtk/gtk.types
+++ b/docs/reference/gtk/gtk.types
@@ -65,7 +65,6 @@ gtk_font_button_get_type
 gtk_font_selection_dialog_get_type
 gtk_font_selection_get_type
 gtk_frame_get_type
-gtk_gamma_curve_get_type
 gtk_handle_box_get_type
 gtk_hbox_get_type
 gtk_hbutton_box_get_type
diff --git a/docs/reference/gtk/objects_grouped.sgml b/docs/reference/gtk/objects_grouped.sgml
index fdbded0..519b2dc 100644
--- a/docs/reference/gtk/objects_grouped.sgml
+++ b/docs/reference/gtk/objects_grouped.sgml
@@ -85,7 +85,6 @@
     <link linkend="GtkPixmap">GtkPixmap</link>
     <link linkend="GtkPreview">GtkPreview</link>
     <link linkend="GtkCurve">GtkCurve</link>
-    <link linkend="GtkGammaCurve">GtkGammaCurve</link>
 
 <emphasis>Misc. Widgets</emphasis>
     <link linkend="GtkArrow">GtkArrow</link>
diff --git a/docs/reference/gtk/tmpl/gtkcurve.sgml b/docs/reference/gtk/tmpl/gtkcurve.sgml
index c2e2b40..b1b603d 100644
--- a/docs/reference/gtk/tmpl/gtkcurve.sgml
+++ b/docs/reference/gtk/tmpl/gtkcurve.sgml
@@ -22,16 +22,6 @@ As of GTK+ 2.20, #GtkCurve has been deprecated since it is too specialized.
 </para>
 
 <!-- ##### SECTION See_Also ##### -->
-<para>
-<variablelist>
-<varlistentry>
-<term>#GtkGammaCurve</term>
-<listitem><para>a subclass for editing gamma curves.</para>
-</listitem>
-</varlistentry>
-</variablelist>
-
-</para>
 
 <!-- ##### SECTION Stability_Level ##### -->
 
diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml
index cba2b65..a999e38 100755
--- a/docs/tutorial/gtk-tut.sgml
+++ b/docs/tutorial/gtk-tut.sgml
@@ -2001,8 +2001,7 @@ GObject
   | | | | `GtkVButtonBox
   | | | +GtkVBox
   | | | | +GtkColorSelection
-  | | | | +GtkFontSelection
-  | | | | `GtkGammaCurve
+  | | | | `GtkFontSelection
   | | | `GtkHBox
   | | |   +GtkCombo
   | | |   `GtkStatusbar
diff --git a/docs/tutorial/gtk_tut.sgml b/docs/tutorial/gtk_tut.sgml
index e689fc4..572e36e 100644
--- a/docs/tutorial/gtk_tut.sgml
+++ b/docs/tutorial/gtk_tut.sgml
@@ -1789,8 +1789,7 @@ For your reference, here is the class hierarchy tree used to implement widgets.
   | | | | +GtkHButtonBox
   | | | | `GtkVButtonBox
   | | | +GtkVBox
-  | | | | +GtkColorSelection
-  | | | | `GtkGammaCurve
+  | | | | `GtkColorSelection
   | | | `GtkHBox
   | | |   +GtkCombo
   | | |   `GtkStatusbar
diff --git a/docs/tutorial/gtk_tut_12.es.sgml b/docs/tutorial/gtk_tut_12.es.sgml
index 4641c1f..8389a89 100755
--- a/docs/tutorial/gtk_tut_12.es.sgml
+++ b/docs/tutorial/gtk_tut_12.es.sgml
@@ -1807,8 +1807,7 @@ los <em/widgets/.
   | | | | +GtkHButtonBox
   | | | | `GtkVButtonBox
   | | | +GtkVBox
-  | | | | +GtkColorSelection
-  | | | | `GtkGammaCurve
+  | | | | `GtkColorSelection
   | | | `GtkHBox
   | | |   +GtkCombo
   | | |   `GtkStatusbar
diff --git a/docs/tutorial/gtk_tut_it.sgml b/docs/tutorial/gtk_tut_it.sgml
index 3d3c43e..1876112 100644
--- a/docs/tutorial/gtk_tut_it.sgml
+++ b/docs/tutorial/gtk_tut_it.sgml
@@ -1550,8 +1550,7 @@ oggetti grafici.
      | | | +GtkCombo
      | | | `GtkStatusbar
      | | `GtkVBox
-     | |   +GtkColorSelection
-     | |   `GtkGammaCurve
+     | |   `GtkColorSelection
      | +GtkButton
      | | +GtkOptionMenu
      | | `GtkToggleButton
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index ef649bd..dec0c6d 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1499,15 +1499,6 @@ gtk_frame_set_shadow_type
 #endif
 #endif
 
-#if IN_HEADER(__GTK_GAMMA_CURVE_H__)
-#if IN_FILE(__GTK_GAMMA_CURVE_C__)
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_gamma_curve_get_type G_GNUC_CONST
-gtk_gamma_curve_new
-#endif
-#endif
-#endif
-
 #if IN_HEADER(__GTK_GC_H__)
 #if IN_FILE(__GTK_GC_C__)
 gtk_gc_get
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 18b3b2d..95a31bc 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -10824,56 +10824,6 @@ create_selection_test (GtkWidget *widget)
 }
 
 /*
- * Gamma Curve
- */
-
-void
-create_gamma_curve (GtkWidget *widget)
-{
-  static GtkWidget *window = NULL, *curve;
-  static int count = 0;
-  gfloat vec[256];
-  gint max;
-  gint i;
-  
-  if (!window)
-    {
-      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_window_set_screen (GTK_WINDOW (window),
-			     gtk_widget_get_screen (widget));
-
-      gtk_window_set_title (GTK_WINDOW (window), "test");
-      gtk_container_set_border_width (GTK_CONTAINER (window), 10);
-
-      g_signal_connect (window, "destroy",
-			G_CALLBACK(gtk_widget_destroyed),
-			&window);
-
-      curve = gtk_gamma_curve_new ();
-      gtk_container_add (GTK_CONTAINER (window), curve);
-      gtk_widget_show (curve);
-    }
-
-  max = 127 + (count % 2)*128;
-  gtk_curve_set_range (GTK_CURVE (GTK_GAMMA_CURVE (curve)->curve),
-		       0, max, 0, max);
-  for (i = 0; i < max; ++i)
-    vec[i] = (127 / sqrt (max)) * sqrt (i);
-  gtk_curve_set_vector (GTK_CURVE (GTK_GAMMA_CURVE (curve)->curve),
-			max, vec);
-
-  if (!GTK_WIDGET_VISIBLE (window))
-    gtk_widget_show (window);
-  else if (count % 4 == 3)
-    {
-      gtk_widget_destroy (window);
-      window = NULL;
-    }
-
-  ++count;
-}
-
-/*
  * Test scrolling
  */
 
@@ -11754,7 +11704,6 @@ struct {
   { "flipping", create_flipping },
   { "focus", create_focus },
   { "font selection", create_font_selection },
-  { "gamma curve", create_gamma_curve, TRUE },
   { "gridded geometry", create_gridded_geometry },
   { "handle box", create_handle_box },
   { "image from drawable", create_get_image },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]