/soc/2013/bhaskar/plugins-window: 52b9207696bb: Fixed the DEFAUL...
Bhaskar Kandiyal
bkandiyal at gmail.com
Sun Jul 28 15:55:42 EDT 2013
Changeset: 52b9207696bb675a7c98aa4e2ae2a41ac5f46140
Author: Bhaskar Kandiyal <bkandiyal at gmail.com>
Date: 2013-07-29 01:23 +0530
Branch: soc.2013.plugins_window
URL: https://hg.pidgin.im/soc/2013/bhaskar/plugins-window/rev/52b9207696bb
Description:
Fixed the DEFAULT_URI to point to the online website and added code to refresh the plugins list upon a successful plugin download
diffstat:
pidgin/gtkplugin.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (38 lines):
diff --git a/pidgin/gtkplugin.c b/pidgin/gtkplugin.c
--- a/pidgin/gtkplugin.c
+++ b/pidgin/gtkplugin.c
@@ -45,7 +45,7 @@ typedef enum {
PLUGINS_TAB_DOWNLOAD_PLUGINS = 1,
} PluginTabs;
-static const gchar* DEFAULT_URI = "http://localhost:8000/";
+static const gchar* DEFAULT_URI = "http://bhaskar-kandiyal.rhcloud.com/";
static gint FIRST_LOAD = TRUE;
static void plugin_toggled_stage_two(PurplePlugin *plug, GtkTreeModel *model,
@@ -736,7 +736,9 @@ static gboolean
webview_download_status(gpointer data)
{
GtkWidget *dialog;
+ GtkListStore *ls;
WebKitDownloadStatus status = webkit_download_get_status(WEBKIT_DOWNLOAD(data));
+
switch(status)
{
case WEBKIT_DOWNLOAD_STATUS_FINISHED:
@@ -746,6 +748,15 @@ webview_download_status(gpointer data)
_("Plugin installed. You can now enable the plugin from the \'Installed Plugins\' tab"));
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
+
+ /* Refresh the plugins list */
+ ls = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(event_view)));
+ g_object_ref(G_OBJECT(ls));
+ gtk_tree_view_set_model(GTK_TREE_VIEW(event_view), NULL);
+ update_plugin_list(ls);
+ gtk_tree_view_set_model(GTK_TREE_VIEW(event_view), GTK_TREE_MODEL(ls));
+ g_object_unref(G_OBJECT(ls));
+
return FALSE;
break;
More information about the Commits
mailing list