[gtk+/gtk-2-90: 80/127] Remove deprecated code: GtkRadioButton



commit 89c0e0418054d3193c659897ae32668e59369426
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Fri Oct 9 19:49:29 2009 +0200

    Remove deprecated code: GtkRadioButton

 docs/reference/gtk/gtk-sections.txt         |    1 -
 docs/reference/gtk/tmpl/gtkradiobutton.sgml |    7 -------
 docs/tutorial/gtk_tut.sgml                  |   12 ++++++------
 docs/tutorial/gtk_tut_12.es.sgml            |   10 +++++-----
 docs/tutorial/gtk_tut_fr.sgml               |    2 +-
 docs/tutorial/gtk_tut_it.sgml               |   10 +++++-----
 gtk/gtkradiobutton.h                        |    4 ----
 7 files changed, 17 insertions(+), 29 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index a505ea6..3cbbb70 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -3006,7 +3006,6 @@ gtk_radio_button_new_with_label
 gtk_radio_button_new_with_label_from_widget
 gtk_radio_button_new_with_mnemonic
 gtk_radio_button_new_with_mnemonic_from_widget
-gtk_radio_button_group
 gtk_radio_button_set_group
 gtk_radio_button_get_group
 <SUBSECTION Standard>
diff --git a/docs/reference/gtk/tmpl/gtkradiobutton.sgml b/docs/reference/gtk/tmpl/gtkradiobutton.sgml
index c6c55c1..800fb9c 100644
--- a/docs/reference/gtk/tmpl/gtkradiobutton.sgml
+++ b/docs/reference/gtk/tmpl/gtkradiobutton.sgml
@@ -176,13 +176,6 @@ as @radio_group_member.
 @Returns: 
 
 
-<!-- ##### MACRO gtk_radio_button_group ##### -->
-<para>
-Deprecated compatibility macro. Use gtk_radio_button_get_group() instead.
-</para>
-
-
-
 <!-- ##### FUNCTION gtk_radio_button_set_group ##### -->
 <para>
 Sets a #GtkRadioButton's group. It should be noted that this does not change
diff --git a/docs/tutorial/gtk_tut.sgml b/docs/tutorial/gtk_tut.sgml
index f1ac12e..c45a08c 100644
--- a/docs/tutorial/gtk_tut.sgml
+++ b/docs/tutorial/gtk_tut.sgml
@@ -2158,10 +2158,10 @@ gtk_radio_button_new_with_label or gtk_radio_button_new_with_label
 should pass NULL as the first argument. Then create a group using:
 
 <tscreen><verb>
-GSList *gtk_radio_button_group( GtkRadioButton *radio_button );
+GSList *gtk_radio_button_get_group( GtkRadioButton *radio_button );
 </verb></tscreen>
 
-The important thing to remember is that gtk_radio_button_group must be
+The important thing to remember is that gtk_radio_button_get_group must be
 called for each new button added to the group, with the previous
 button passed in as an argument. The result is then passed into the
 next call to gtk_radio_button_new or
@@ -2174,7 +2174,7 @@ is used in the example to create the third button:
 
 <tscreen><verb>
      button2 = gtk_radio_button_new_with_label(
-                 gtk_radio_button_group (GTK_RADIO_BUTTON (button1)),
+                 gtk_radio_button_get_group (GTK_RADIO_BUTTON (button1)),
                  "button2");
 </verb></tscreen>
 
@@ -2243,14 +2243,14 @@ int main( int   argc,
     gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
     gtk_widget_show (button);
 
-    group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
+    group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (button));
     button = gtk_radio_button_new_with_label(group, "button2");
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
     gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
     gtk_widget_show (button);
 
     button = gtk_radio_button_new_with_label(
-	         gtk_radio_button_group (GTK_RADIO_BUTTON (button)),
+	         gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
                  "button3");
     gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
     gtk_widget_show (button);
@@ -3899,7 +3899,7 @@ int main( int   argc,
 
     /* Add a radio button to select discrete display mode */
     button = gtk_radio_button_new_with_label(
-               gtk_radio_button_group (GTK_RADIO_BUTTON (button)),
+               gtk_radio_button_get_group (GTK_RADIO_BUTTON (button)),
                "Discrete");
     gtk_table_attach (GTK_TABLE (table), button, 2, 3, 1, 2,
                       GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
diff --git a/docs/tutorial/gtk_tut_12.es.sgml b/docs/tutorial/gtk_tut_12.es.sgml
index 22ce28f..290e346 100755
--- a/docs/tutorial/gtk_tut_12.es.sgml
+++ b/docs/tutorial/gtk_tut_12.es.sgml
@@ -2132,11 +2132,11 @@ argumento. A continuaci
 usando:
 
 <tscreen><verb>
-GSList *gtk_radio_button_group( GtkRadioButton *radio_button );
+GSList *gtk_radio_button_get_group( GtkRadioButton *radio_button );
 </verb></tscreen>
 
 Para añadir un nuevo botón a un grupo hay que usar
-gtk_radio_button_group con el anterior botón como argumento. El
+gtk_radio_button_get_group con el anterior botón como argumento. El
 resultado se le pasa a gtk_radio_button_new o a
 gtk_radio_button_new_with_label. Así se consigue enlazar una cadena
 de botones. (El ejemplo siguiente sirve para aclarar el proceso)
@@ -2192,13 +2192,13 @@ main(int argc,char *argv[])
   gtk_box_pack_start (GTK_BOX (caja2), boton, TRUE, TRUE, 0);
   gtk_widget_show (boton);
 
-  group = gtk_radio_button_group (GTK_RADIO_BUTTON (boton));
+  group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (boton));
   boton = gtk_radio_button_new_with_label(group, "botón2");
   gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (boton), TRUE);
   gtk_box_pack_start (GTK_BOX (caja2), boton, TRUE, TRUE, 0);
   gtk_widget_show (boton);
 
-  group = gtk_radio_button_group (GTK_RADIO_BUTTON (boton));
+  group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (boton));
   boton = gtk_radio_button_new_with_label(group, "botón3");
   gtk_box_pack_start (GTK_BOX (caja2), boton, TRUE, TRUE, 0);
   gtk_widget_show (boton);
@@ -3840,7 +3840,7 @@ int main( int   argc,
 
     /* Añade un botón circular para seleccionar el modo discreto */
     boton = gtk_radio_button_new_with_label(
-               gtk_radio_button_group (GTK_RADIO_BUTTON (boton)),
+               gtk_radio_button_get_group (GTK_RADIO_BUTTON (boton)),
                "Discrete");
     gtk_table_attach (GTK_TABLE (table), boton, 2, 3, 1, 2,
                       GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
diff --git a/docs/tutorial/gtk_tut_fr.sgml b/docs/tutorial/gtk_tut_fr.sgml
index efb75e8..51be48f 100644
--- a/docs/tutorial/gtk_tut_fr.sgml
+++ b/docs/tutorial/gtk_tut_fr.sgml
@@ -1913,7 +1913,7 @@ premier appel doit passer NULL au premier param
 groupe en utilisant&nbsp;:
 
 <tscreen><verb>
-GSList* gtk_radio_button_group (GtkRadioButton *radio_button);
+GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button);
 </verb></tscreen>
 
 <p>
diff --git a/docs/tutorial/gtk_tut_it.sgml b/docs/tutorial/gtk_tut_it.sgml
index 321a2b5..440bf17 100644
--- a/docs/tutorial/gtk_tut_it.sgml
+++ b/docs/tutorial/gtk_tut_it.sgml
@@ -1897,11 +1897,11 @@ Per il primo bottone di un gruppo si deve passare come primo argomento il valore
 NULL. Dopodich&eacute; potete creare un gruppo usando la funzione:
 
 <tscreen><verb>
-GSList* gtk_radio_button_group (GtkRadioButton *radio_button);
+GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button);
 </verb></tscreen>
 
 <p>
-La cosa importante da ricordare &egrave; che gtk_radio_button_group va chiamata ogni volta che si aggiunge un nuovo bottone al gruppo, con il preceente bottone passato come argomento. Il risultato viene poi passato nella chiamata a gtk_radio_button_new o a gtk_radio_button_new_with_label. Ci&ograve; permette di creare una catena di bottoni. L'esempio pi&ugrave; sotto dovrebbe chiarire questo punto.
+La cosa importante da ricordare &egrave; che gtk_radio_button_get_group va chiamata ogni volta che si aggiunge un nuovo bottone al gruppo, con il preceente bottone passato come argomento. Il risultato viene poi passato nella chiamata a gtk_radio_button_new o a gtk_radio_button_new_with_label. Ci&ograve; permette di creare una catena di bottoni. L'esempio pi&ugrave; sotto dovrebbe chiarire questo punto.
 
 E' poi una buona idea stabiire quale dev'essere il bottone premuto per difetto, usando:
 
@@ -1958,13 +1958,13 @@ main(int argc,char *argv[])
   gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
   gtk_widget_show (button);
 
-  group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
+  group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (button));
   button = gtk_radio_button_new_with_label(group, "button2");
   gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
   gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
   gtk_widget_show (button);
 
-  group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
+  group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (button));
   button = gtk_radio_button_new_with_label(group, "button3");
   gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
   gtk_widget_show (button);
@@ -1998,7 +1998,7 @@ che elimina la necessit&agrave; di una variabile per contenere la lista di botto
 
 <tscreen><verb>
      button2 = gtk_radio_button_new_with_label(
-                 gtk_radio_button_group (GTK_RADIO_BUTTON (button1)),
+                 gtk_radio_button_get_group (GTK_RADIO_BUTTON (button1)),
                  "button2");
 </verb></tscreen>
 
diff --git a/gtk/gtkradiobutton.h b/gtk/gtkradiobutton.h
index c39e214..520c10d 100644
--- a/gtk/gtkradiobutton.h
+++ b/gtk/gtkradiobutton.h
@@ -85,10 +85,6 @@ GSList*    gtk_radio_button_get_group                     (GtkRadioButton *radio
 void       gtk_radio_button_set_group                     (GtkRadioButton *radio_button,
                                                            GSList         *group);
 
-#ifndef GTK_DISABLE_DEPRECATED
-#define gtk_radio_button_group gtk_radio_button_get_group
-#endif
-
 G_END_DECLS
 
 #endif /* __GTK_RADIO_BUTTON_H__ */



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