[gtk+/gtk-2-90: 135/158] Remove GtkGammaCurve completely
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 135/158] Remove GtkGammaCurve completely
- Date: Thu, 11 Mar 2010 02:54:54 +0000 (UTC)
commit 4dd5374544e51dc11384cff657c93649d830b1f5
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 +-
gtk/gtk.symbols | 9 -
gtk/gtkgamma.c | 494 -------------------------------
gtk/gtkgamma.h | 82 -----
tests/testgtk.c | 51 ----
11 files changed, 2 insertions(+), 715 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 499d459..47005cd 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -1760,22 +1760,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 0e80165..dce03d3 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 6054169..3d46113 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/gtk/gtk.symbols b/gtk/gtk.symbols
index 44ebe0c..2cfd612 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1507,15 +1507,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 5b8b724..c47c918 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -10831,56 +10831,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_get_visible (window))
- gtk_widget_show (window);
- else if (count % 4 == 3)
- {
- gtk_widget_destroy (window);
- window = NULL;
- }
-
- ++count;
-}
-
-/*
* Test scrolling
*/
@@ -11761,7 +11711,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]