Deprecated calls in profterm



Hi

I found few deprecated calls in profterm. I have a patch for this.
Please find attached the same.

Thanks
Deepa
--- src/profile-editor.c	Sun Feb 10 22:05:26 2002
+++ src_new/profile-editor.c	Wed Feb 13 11:15:28 2002
@@ -492,7 +492,7 @@
 
   path = gtk_tree_path_new_from_string (path_text);
   gtk_tree_model_get_iter (model, &iter, path);
-  gtk_list_store_set (model, &iter,
+  gtk_list_store_set (GTK_LIST_STORE(model), &iter,
 		      0, new_text,
 		      -1);
   gtk_tree_path_free (path);
@@ -748,7 +748,7 @@
 
       w = glade_xml_get_widget (xml, "bindings-swindow");
 
-      model = gtk_list_store_new (1, G_TYPE_STRING);
+      model = GTK_TREE_MODEL (gtk_list_store_new (1, G_TYPE_STRING));
       for (i = 0; i < 30; i++)
 	{
 	  gtk_list_store_append (GTK_LIST_STORE (model), &iter);
@@ -760,7 +760,7 @@
       renderer = g_object_new (EGG_TYPE_CELL_RENDERER_KEYS,
 			       "editable", TRUE,
 			       NULL);
-      g_signal_connect (G_OBJECT (renderer), "edited", edited_cb, model);
+      g_signal_connect (G_OBJECT (renderer), "edited", G_CALLBACK (edited_cb), model);
       gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (view),
 						   0,
 						   "Egg Test",
@@ -920,7 +920,7 @@
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "blink-cursor-checkbutton");
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_cursor_blink (profile));
 }
 
@@ -932,7 +932,7 @@
   GtkWidget *w;
 
   w = profile_editor_get_widget (editor, "show-menubar-checkbutton");
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_default_show_menubar (profile));
 }
 
@@ -1015,7 +1015,7 @@
 
   w = profile_editor_get_widget (editor, "allow-bold-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_allow_bold (profile));
 }
 
@@ -1027,7 +1027,7 @@
 
   w = profile_editor_get_widget (editor, "silent-bell-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_silent_bell (profile));
 }
 
@@ -1081,7 +1081,7 @@
 
   w = profile_editor_get_widget (editor, "scroll-on-keystroke-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_scroll_on_keystroke (profile));
 }
 
@@ -1093,7 +1093,7 @@
 
   w = profile_editor_get_widget (editor, "scroll-on-output-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_scroll_on_output (profile));
 }
 
@@ -1117,7 +1117,7 @@
 
   w = profile_editor_get_widget (editor, "login-shell-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_login_shell (profile));
 }
 
@@ -1129,7 +1129,7 @@
 
   w = profile_editor_get_widget (editor, "update-records-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_update_records (profile));
 
 }
@@ -1142,7 +1142,7 @@
 
   w = profile_editor_get_widget (editor, "use-custom-command-checkbutton");
   
-  gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (w),
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (w),
                                terminal_profile_get_use_custom_command (profile));
 
 }
--- src/eggcellrendererkeys.c	Sun Feb 10 22:05:26 2002
+++ src_new/eggcellrendererkeys.c	Wed Feb 13 11:15:50 2002
@@ -72,7 +72,7 @@
   path = g_object_get_data (G_OBJECT (entry), EGG_CELL_RENDERER_TEXT_PATH);
   new_text = gtk_entry_get_text (GTK_ENTRY (entry));
 
-  gtk_signal_emit_by_name (GTK_OBJECT (data), "edited", path, new_text);
+  g_signal_emit_by_name (data, "edited", path, new_text);
 }
 
 static gchar *
@@ -179,17 +179,17 @@
   entry = g_object_new (GTK_TYPE_ENTRY,
 			"has_frame", FALSE,
 			NULL);
-  g_signal_connect_after (G_OBJECT (entry), "realize", entry_realize, NULL);
+  g_signal_connect_after (G_OBJECT (entry), "realize", G_CALLBACK (entry_realize), NULL);
   gtk_entry_set_text (GTK_ENTRY (entry), celltext->text);
   g_object_set_data_full (G_OBJECT (entry), EGG_CELL_RENDERER_TEXT_PATH, g_strdup (path), g_free);
   
   gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1);
   
   gtk_widget_show (entry);
-  gtk_signal_connect (GTK_OBJECT (entry),
-		      "editing_done",
-		      G_CALLBACK (egg_cell_renderer_keys_editing_done),
-		      celltext);
+  g_signal_connect (entry,
+		    "editing_done",
+		    G_CALLBACK (egg_cell_renderer_keys_editing_done),
+		    celltext);
   return GTK_CELL_EDITABLE (entry);
 
 }

**************************Disclaimer************************************
      


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 ********************************************************************


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