Deprecation cleanup
Sun Oct 13 16:20:41 2002 Manish Singh <yosh@gimp.org> * tests/pixbuf-randomly-modified.c tests/prop-editor.c tests/testcalendar.c tests/testdnd.c tests/testgtk.c tests/testinput.c tests/testmultidisplay.c tests/testmultiscreen.c tests/testrgb.c tests/testselection.c tests/testsocket.c tests/testsocket_common.c tests/testtext.c tests/testtextbuffer.c tests/testtreecolumns.c tests/testtreeedit.c tests/testtreeflow.c tests/testtreefocus.c tests/testtreesort.c tests/testtreeview.c tests/testxinerama.c tests/treestoretest.c: Deprecation cleanup * tests/Makefile.am: Added disable deprecation flags
This commit is contained in:
committed by
Manish Singh
parent
aa54cfeede
commit
37278865e1
@ -52,7 +52,7 @@ signal_removed (gpointer data,
|
||||
static void
|
||||
g_object_connect_property (GObject *object,
|
||||
const gchar *prop_name,
|
||||
GtkSignalFunc func,
|
||||
GCallback func,
|
||||
gpointer data,
|
||||
GObject *alive_object)
|
||||
{
|
||||
@ -471,7 +471,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_spin_button_new (adj, 1.0, 0);
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (int_changed),
|
||||
G_CALLBACK (int_changed),
|
||||
adj, G_OBJECT (adj));
|
||||
|
||||
if (can_modify)
|
||||
@ -492,7 +492,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_spin_button_new (adj, 1.0, 0);
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (uint_changed),
|
||||
G_CALLBACK (uint_changed),
|
||||
adj, G_OBJECT (adj));
|
||||
|
||||
if (can_modify)
|
||||
@ -513,7 +513,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_spin_button_new (adj, 0.1, 2);
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (float_changed),
|
||||
G_CALLBACK (float_changed),
|
||||
adj, G_OBJECT (adj));
|
||||
|
||||
if (can_modify)
|
||||
@ -533,7 +533,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_spin_button_new (adj, 0.1, 2);
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (double_changed),
|
||||
G_CALLBACK (double_changed),
|
||||
adj, G_OBJECT (adj));
|
||||
|
||||
if (can_modify)
|
||||
@ -545,7 +545,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_entry_new ();
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (string_changed),
|
||||
G_CALLBACK (string_changed),
|
||||
prop_edit, G_OBJECT (prop_edit));
|
||||
|
||||
if (can_modify)
|
||||
@ -557,7 +557,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_toggle_button_new_with_label ("");
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (bool_changed),
|
||||
G_CALLBACK (bool_changed),
|
||||
prop_edit, G_OBJECT (prop_edit));
|
||||
|
||||
if (can_modify)
|
||||
@ -596,7 +596,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
gtk_option_menu_set_menu (GTK_OPTION_MENU (prop_edit), menu);
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (enum_changed),
|
||||
G_CALLBACK (enum_changed),
|
||||
prop_edit, G_OBJECT (prop_edit));
|
||||
|
||||
if (can_modify)
|
||||
@ -610,7 +610,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
gtk_entry_set_max_length (GTK_ENTRY (prop_edit), 1);
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (unichar_changed),
|
||||
G_CALLBACK (unichar_changed),
|
||||
prop_edit, G_OBJECT (prop_edit));
|
||||
|
||||
if (can_modify)
|
||||
@ -622,7 +622,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_label_new ("");
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (pointer_changed),
|
||||
G_CALLBACK (pointer_changed),
|
||||
prop_edit, G_OBJECT (prop_edit));
|
||||
}
|
||||
else if (type == G_TYPE_PARAM_OBJECT)
|
||||
@ -630,7 +630,7 @@ property_widget (GObject *object, GParamSpec *spec, gboolean can_modify)
|
||||
prop_edit = gtk_label_new ("");
|
||||
|
||||
g_object_connect_property (object, spec->name,
|
||||
GTK_SIGNAL_FUNC (object_changed),
|
||||
G_CALLBACK (object_changed),
|
||||
prop_edit, G_OBJECT (prop_edit));
|
||||
}
|
||||
else
|
||||
@ -757,8 +757,8 @@ create_prop_editor (GObject *object,
|
||||
gtk_widget_get_screen (GTK_WIDGET (object)));
|
||||
|
||||
tips = gtk_tooltips_new ();
|
||||
gtk_signal_connect_object (GTK_OBJECT (win), "destroy",
|
||||
GTK_SIGNAL_FUNC (gtk_object_destroy), GTK_OBJECT (tips));
|
||||
g_signal_connect_swapped (win, "destroy",
|
||||
G_CALLBACK (gtk_object_destroy), tips);
|
||||
|
||||
/* hold a weak ref to the object we're editing */
|
||||
g_object_set_data_full (G_OBJECT (object), "prop-editor-win", win, model_destroy);
|
||||
|
||||
Reference in New Issue
Block a user