[gtk+/radio-group: 7/9] Deprecate gtk_radio_..._from_widget
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/radio-group: 7/9] Deprecate gtk_radio_..._from_widget
- Date: Fri, 5 Nov 2010 13:35:09 +0000 (UTC)
commit 5324e62ab0d1753e0b8c7f36cf5fda1d54f11a3f
Author: Alexander Larsson <alexl redhat com>
Date: Fri Nov 5 13:39:59 2010 +0100
Deprecate gtk_radio_..._from_widget
The _from_widget versions of the radio group constructors are really
only useful in e.g. bindings where the old GSList group did not bind
well. They have no use now that we have a proper GtkRagioGroup object.
gtk/gtkradiobutton.h | 8 +++++---
gtk/gtkradiomenuitem.h | 2 ++
gtk/gtkradiotoolbutton.h | 2 ++
3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkradiobutton.h b/gtk/gtkradiobutton.h
index 1ee2454..256d68b 100644
--- a/gtk/gtkradiobutton.h
+++ b/gtk/gtkradiobutton.h
@@ -76,15 +76,17 @@ struct _GtkRadioButtonClass
GType gtk_radio_button_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_radio_button_new (GtkRadioGroup *group);
-GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *radio_group_member);
GtkWidget* gtk_radio_button_new_with_label (GtkRadioGroup *group,
const gchar *label);
-GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *radio_group_member,
- const gchar *label);
GtkWidget* gtk_radio_button_new_with_mnemonic (GtkRadioGroup *group,
const gchar *label);
+#ifndef GTK_DISABLE_DEPRECATED
+GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *radio_group_member);
+GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *radio_group_member,
+ const gchar *label);
GtkWidget* gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *radio_group_member,
const gchar *label);
+#endif
GtkRadioGroup *gtk_radio_button_get_group (GtkRadioButton *radio_button);
void gtk_radio_button_set_group (GtkRadioButton *radio_button,
GtkRadioGroup *group);
diff --git a/gtk/gtkradiomenuitem.h b/gtk/gtkradiomenuitem.h
index 4749143..f5a04a3 100644
--- a/gtk/gtkradiomenuitem.h
+++ b/gtk/gtkradiomenuitem.h
@@ -80,11 +80,13 @@ GtkWidget* gtk_radio_menu_item_new_with_label (GtkRadioGroup
const gchar *label);
GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GtkRadioGroup *group,
const gchar *label);
+#ifndef GTK_DISABLE_DEPRECATED
GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group);
GtkWidget * gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
const gchar *label);
GtkWidget * gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
const gchar *label);
+#endif
GtkRadioGroup* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item);
void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
GtkRadioGroup *group);
diff --git a/gtk/gtkradiotoolbutton.h b/gtk/gtkradiotoolbutton.h
index 7f217f5..e3424b2 100644
--- a/gtk/gtkradiotoolbutton.h
+++ b/gtk/gtkradiotoolbutton.h
@@ -63,9 +63,11 @@ GType gtk_radio_tool_button_get_type (void) G_GNUC_CONST;
GtkToolItem * gtk_radio_tool_button_new (GtkRadioGroup *group);
GtkToolItem * gtk_radio_tool_button_new_from_stock (GtkRadioGroup *group,
const gchar *stock_id);
+#ifndef GTK_DISABLE_DEPRECATED
GtkToolItem * gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group);
GtkToolItem * gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group,
const gchar *stock_id);
+#endif
GtkRadioGroup *gtk_radio_tool_button_get_group (GtkRadioToolButton *button);
void gtk_radio_tool_button_set_group (GtkRadioToolButton *button,
GtkRadioGroup *group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]