/soc/2013/ankitkv/gobjectification: 02db93eb6506: Merged gtkdoc-...
Ankit Vani
a at nevitus.org
Sat Feb 1 13:53:30 EST 2014
Changeset: 02db93eb6506069fa177dda2ebecfb28cdd3489e
Author: Ankit Vani <a at nevitus.org>
Date: 2014-02-02 00:22 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/02db93eb6506
Description:
Merged gtkdoc-conversion branch
diffstat:
pidgin/plugins/gevolution/assoc-buddy.c | 38 +++++++++++---------------------
pidgin/plugins/gevolution/eds-utils.c | 10 +++++---
pidgin/plugins/gevolution/gevo-util.c | 6 +++-
pidgin/plugins/gevolution/gevolution.c | 7 +++--
pidgin/plugins/gevolution/gevolution.h | 1 -
5 files changed, 27 insertions(+), 35 deletions(-)
diffs (192 lines):
diff --git a/pidgin/plugins/gevolution/assoc-buddy.c b/pidgin/plugins/gevolution/assoc-buddy.c
--- a/pidgin/plugins/gevolution/assoc-buddy.c
+++ b/pidgin/plugins/gevolution/assoc-buddy.c
@@ -22,7 +22,6 @@
#include "gtkblist.h"
#include "pidgin.h"
#include "gtkutils.h"
-#include "gtkimhtml.h"
#include "debug.h"
@@ -204,8 +203,9 @@ populate_treeview(GevoAssociateBuddyDial
-1);
/* See if this user has the buddy in its list. */
- protocol_field = gevo_protocol_get_field(purple_buddy_get_account(dialog->buddy),
- dialog->buddy);
+ protocol_field = gevo_protocol_get_field(
+ purple_buddy_get_account(dialog->buddy),
+ dialog->buddy);
if (protocol_field > 0)
{
@@ -215,7 +215,8 @@ populate_treeview(GevoAssociateBuddyDial
for (l = ims; l != NULL; l = l->next)
{
- if (!strcmp(l->data, purple_buddy_get_name(dialog->buddy)))
+ if (!strcmp(l->data,
+ purple_buddy_get_name(dialog->buddy)))
{
GtkTreeSelection *selection;
@@ -253,9 +254,10 @@ addrbook_change_cb(GtkComboBox *combo, G
static void
new_person_cb(GtkWidget *w, GevoAssociateBuddyDialog *dialog)
{
- gevo_new_person_dialog_show(dialog->book, NULL, purple_buddy_get_account(dialog->buddy),
- purple_buddy_get_name(dialog->buddy), NULL, dialog->buddy,
- TRUE);
+ gevo_new_person_dialog_show(dialog->book, NULL,
+ purple_buddy_get_account(dialog->buddy),
+ purple_buddy_get_name(dialog->buddy),
+ NULL, dialog->buddy, TRUE);
delete_win_cb(NULL, NULL, dialog);
}
@@ -286,13 +288,15 @@ assoc_buddy_cb(GtkWidget *w, GevoAssocia
COLUMN_DATA, &contact,
-1);
- protocol_field = gevo_protocol_get_field(purple_buddy_get_account(dialog->buddy), dialog->buddy);
+ protocol_field = gevo_protocol_get_field(
+ purple_buddy_get_account(dialog->buddy), dialog->buddy);
if (protocol_field == 0)
return; /* XXX */
list = e_contact_get(contact, protocol_field);
- list = g_list_append(list, g_strdup(purple_buddy_get_name(dialog->buddy)));
+ list = g_list_append(list,
+ g_strdup(purple_buddy_get_name(dialog->buddy)));
e_contact_set(contact, protocol_field, list);
@@ -316,7 +320,6 @@ gevo_associate_buddy_dialog_new(PurpleBu
GtkWidget *hbox;
GtkWidget *bbox;
GtkWidget *sep;
- GtkWidget *expander;
GtkTreeSelection *selection;
GtkCellRenderer *cell;
@@ -416,21 +419,6 @@ gevo_associate_buddy_dialog_new(PurpleBu
G_CALLBACK(addrbook_change_cb), dialog);
gtk_combo_box_set_active(GTK_COMBO_BOX(dialog->addrbooks_combo), 0);
- /* Add the expander */
- expander = gtk_expander_new_with_mnemonic(_("User _details"));
- gtk_box_pack_start(GTK_BOX(vbox), expander, FALSE, FALSE, 0);
- gtk_widget_show(expander);
-
- /*
- * User details
- */
-
- /* Textview */
- dialog->imhtml = gtk_imhtml_new(NULL, NULL);
- gtk_container_add(GTK_CONTAINER(expander),
- pidgin_make_scrollable(dialog->imhtml, GTK_POLICY_NEVER, GTK_POLICY_ALWAYS, GTK_SHADOW_IN, -1, -1));
- gtk_widget_show(dialog->imhtml);
-
/* Separator. */
sep = gtk_hseparator_new();
gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0);
diff --git a/pidgin/plugins/gevolution/eds-utils.c b/pidgin/plugins/gevolution/eds-utils.c
--- a/pidgin/plugins/gevolution/eds-utils.c
+++ b/pidgin/plugins/gevolution/eds-utils.c
@@ -23,7 +23,6 @@
#include "gtkblist.h"
#include "pidgin.h"
#include "gtkutils.h"
-#include "gtkimhtml.h"
#include "debug.h"
#include "gevolution.h"
@@ -177,7 +176,8 @@ gevo_search_buddy_in_contacts(PurpleBudd
EBookQuery *full_query;
GSList *groups, *g;
EContact *result;
- EContactField protocol_field = gevo_protocol_get_field(purple_buddy_get_account(buddy), buddy);
+ EContactField protocol_field =
+ gevo_protocol_get_field(purple_buddy_get_account(buddy), buddy);
if (protocol_field == 0)
return NULL;
@@ -187,7 +187,8 @@ gevo_search_buddy_in_contacts(PurpleBudd
EBookQuery *queries[2];
queries[0] = query;
- queries[1] = e_book_query_field_test(protocol_field, E_BOOK_QUERY_IS, purple_buddy_get_name(buddy));
+ queries[1] = e_book_query_field_test(protocol_field,
+ E_BOOK_QUERY_IS, purple_buddy_get_name(buddy));
if (queries[1] == NULL)
{
purple_debug_error("evolution", "Error in creating protocol query\n");
@@ -199,7 +200,8 @@ gevo_search_buddy_in_contacts(PurpleBudd
}
else
{
- full_query = e_book_query_field_test(protocol_field, E_BOOK_QUERY_IS, purple_buddy_get_name(buddy));
+ full_query = e_book_query_field_test(protocol_field,
+ E_BOOK_QUERY_IS, purple_buddy_get_name(buddy));
if (full_query == NULL)
{
purple_debug_error("evolution", "Error in creating protocol query\n");
diff --git a/pidgin/plugins/gevolution/gevo-util.c b/pidgin/plugins/gevolution/gevo-util.c
--- a/pidgin/plugins/gevolution/gevo-util.c
+++ b/pidgin/plugins/gevolution/gevo-util.c
@@ -54,7 +54,8 @@ gevo_add_buddy(PurpleAccount *account, c
if (im != NULL)
{
purple_buddy_icon_update(purple_im_conversation_get_icon(im));
- purple_conversation_update(PURPLE_CONVERSATION(im), PURPLE_CONVERSATION_UPDATE_ADD);
+ purple_conversation_update(PURPLE_CONVERSATION(im),
+ PURPLE_CONVERSATION_UPDATE_ADD);
}
}
@@ -81,7 +82,8 @@ gevo_get_groups(void)
if (PURPLE_IS_GROUP(gnode))
{
g = PURPLE_GROUP(gnode);
- list = g_list_append(list, (gpointer)purple_group_get_name(g));
+ list = g_list_append(list,
+ (gpointer)purple_group_get_name(g));
}
}
}
diff --git a/pidgin/plugins/gevolution/gevolution.c b/pidgin/plugins/gevolution/gevolution.c
--- a/pidgin/plugins/gevolution/gevolution.c
+++ b/pidgin/plugins/gevolution/gevolution.c
@@ -248,14 +248,15 @@ menu_item_send_mail_activate_cb(PurpleBl
}
else
{
- purple_notify_error(NULL, NULL, _("Unable to send email"),
- _("The evolution executable was not found in the PATH."));
+ purple_notify_error(NULL, NULL, _("Unable to send "
+ "email"), _("The evolution executable was not "
+ "found in the PATH."), NULL);
}
}
else
{
purple_notify_error(NULL, NULL, _("Unable to send email"),
- _("An email address was not found for this buddy."));
+ _("An email address was not found for this buddy."), NULL);
}
}
diff --git a/pidgin/plugins/gevolution/gevolution.h b/pidgin/plugins/gevolution/gevolution.h
--- a/pidgin/plugins/gevolution/gevolution.h
+++ b/pidgin/plugins/gevolution/gevolution.h
@@ -97,7 +97,6 @@ typedef struct
GtkWidget *addrbooks_combo;
GtkWidget *search_field;
GtkWidget *assoc_button;
- GtkWidget *imhtml;
GtkListStore *model;
GtkTreeModel *addrbooks;
More information about the Commits
mailing list