cpw.darkrain42.xmpp.disco: 96395797: Rename pdl->cats to pdl->services, since...

paul at darkrain42.org paul at darkrain42.org
Sat Apr 25 16:17:15 EDT 2009


-----------------------------------------------------------------
Revision: 96395797c0c43554716f48034c902ac51069bdba
Ancestor: 259cbb999b0e04dd813a3b61ff856e6cf3ae9d13
Author: paul at darkrain42.org
Date: 2009-04-17T16:34:03
Branch: im.pidgin.cpw.darkrain42.xmpp.disco
URL: http://d.pidgin.im/viewmtn/revision/info/96395797c0c43554716f48034c902ac51069bdba

Modified files:
        pidgin/gtkdisco.c

ChangeLog: 

Rename pdl->cats to pdl->services, since these aren't roomlist categories

-------------- next part --------------
============================================================
--- pidgin/gtkdisco.c	9b4f34e0d3c1bd6e263a8a85b7bd4b745ff81ff6
+++ pidgin/gtkdisco.c	732af8c53a0deb80d89daba8967219668a5d12ad
@@ -53,7 +53,7 @@ typedef struct _PidginDiscoList {
 	PidginDiscoDialog *dialog;
 	GtkTreeStore *model;
 	GtkWidget *tree;
-	GHashTable *cats; /** Meow. */
+	GHashTable *services;
 } PidginDiscoList;
 
 struct _menu_cb_info {
@@ -374,7 +374,7 @@ pidgin_disco_dialog_new_with_account(Pur
 	gtk_widget_set_sensitive(dialog->stop_button, FALSE);
 
 	/* list button */
-	dialog->list_button = pidgin_pixbuf_button_from_stock(_("_Get List"), GTK_STOCK_REFRESH,
+	dialog->list_button = pidgin_pixbuf_button_from_stock(_("_Browse"), GTK_STOCK_REFRESH,
 	                                                    PIDGIN_BUTTON_HORIZONTAL);
 	gtk_box_pack_start(GTK_BOX(bbox), dialog->list_button, FALSE, FALSE, 0);
 	g_signal_connect(G_OBJECT(dialog->list_button), "clicked",
@@ -429,7 +429,8 @@ pidgin_disco_create(PurpleDiscoList *lis
 
 	purple_disco_list_set_ui_data(list, pdl);
 
-	pdl->cats = g_hash_table_new_full(NULL, NULL, NULL, (GDestroyNotify)gtk_tree_row_reference_free);
+	pdl->services = g_hash_table_new_full(NULL, NULL, NULL,
+			(GDestroyNotify)gtk_tree_row_reference_free);
 }
 
 
@@ -440,7 +441,7 @@ pidgin_disco_destroy(PurpleDiscoList *li
 
 	pdl = purple_disco_list_get_ui_data(list);
 
-	g_hash_table_destroy(pdl->cats);
+	g_hash_table_destroy(pdl->services);
 	g_free(pdl);
 
 	purple_disco_list_set_ui_data(list, NULL);
@@ -495,7 +496,7 @@ static void pidgin_disco_add_service(Pur
 		GtkTreeRowReference *rr;
 		GtkTreePath *path;
 
-		rr = g_hash_table_lookup(pdl->cats, parent);
+		rr = g_hash_table_lookup(pdl->services, parent);
 		path = gtk_tree_row_reference_get_path(rr);
 		if (path) {
 			gtk_tree_model_get_iter(GTK_TREE_MODEL(pdl->model), &parent_iter, path);
@@ -525,7 +526,7 @@ static void pidgin_disco_add_service(Pur
 
 		path = gtk_tree_model_get_path(GTK_TREE_MODEL(pdl->model), &iter);
 		rr = gtk_tree_row_reference_new(GTK_TREE_MODEL(pdl->model), path);
-		g_hash_table_insert(pdl->cats, service, rr);
+		g_hash_table_insert(pdl->services, service, rr);
 		gtk_tree_path_free(path);
 	}
 


More information about the Commits mailing list