aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugin-manager
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugin-manager')
-rw-r--r--plugins/plugin-manager/ChangeLog5
-rw-r--r--plugins/plugin-manager/plugin-manager.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/plugins/plugin-manager/ChangeLog b/plugins/plugin-manager/ChangeLog
index abf48b55a9..40111f51cd 100644
--- a/plugins/plugin-manager/ChangeLog
+++ b/plugins/plugin-manager/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-26 Kjartan Maraas <kmaraas@gnome.org>
+
+ * plugin-manager.c: (org_gnome_plugin_manager_manage):
+ Don't mix code and declarations.
+
2007-10-26 Sankar P <psankar@novell.com>
* plugin-manager.c: (eppm_selection_changed):
diff --git a/plugins/plugin-manager/plugin-manager.c b/plugins/plugin-manager/plugin-manager.c
index 326f6ee49b..86b94c290d 100644
--- a/plugins/plugin-manager/plugin-manager.c
+++ b/plugins/plugin-manager/plugin-manager.c
@@ -71,7 +71,7 @@ struct _Manager {
/* for tracking if we're shown */
static GtkDialog *dialog;
-const int RESPONSE_CONFIGURE = 1;
+static const int RESPONSE_CONFIGURE = 1;
void org_gnome_plugin_manager_manage(void *ep, ESMenuTargetShell *t);
int e_plugin_lib_configure(EPluginLib *ep);
@@ -217,6 +217,8 @@ org_gnome_plugin_manager_manage(void *ep, ESMenuTargetShell *t)
GtkTreeSelection *selection;
GtkCellRenderer *renderer;
GSList *l;
+ char *string;
+ GtkWidget *vbox, *subvbox;
if (dialog) {
gdk_window_raise(((GtkWidget *)dialog)->window);
@@ -240,7 +242,6 @@ org_gnome_plugin_manager_manage(void *ep, ESMenuTargetShell *t)
gtk_container_set_border_width((GtkContainer *)hbox, 12);
gtk_box_pack_start((GtkBox *)m->dialog->vbox, hbox, TRUE, TRUE, 0);
- char *string;
string = g_strdup_printf("<i>%s</i>", _("Note: Some changes will not take effect until restart"));
w = g_object_new(gtk_label_get_type(),
@@ -307,12 +308,10 @@ org_gnome_plugin_manager_manage(void *ep, ESMenuTargetShell *t)
gtk_container_add((GtkContainer *)w, (GtkWidget *)m->treeview);
gtk_box_pack_start((GtkBox *)hbox, (GtkWidget *)w, FALSE, TRUE, 6);
- GtkWidget *vbox;
vbox = gtk_vbox_new(FALSE, 0);
gtk_box_pack_start((GtkBox *)hbox, vbox, TRUE, TRUE, 6);
/* this is plugin's name label */
- GtkWidget *subvbox;
subvbox = gtk_vbox_new(FALSE, 0);
m->items[0] = g_object_new(gtk_label_get_type(),
"wrap", TRUE,
@@ -324,9 +323,10 @@ org_gnome_plugin_manager_manage(void *ep, ESMenuTargetShell *t)
/* this is every other data */
for (i=1;i<LABEL_LAST;i++) {
+ char *markup;
+
subvbox = gtk_vbox_new(FALSE, 0);
- char *markup;
markup = g_strdup_printf("<span weight=\"bold\">%s :</span>", _(label_info[i].label));
m->labels[i] = g_object_new(gtk_label_get_type(),
"label", markup,