[anjuta] Terminal palette wouldn't change because of missing pointer dereference.
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Terminal palette wouldn't change because of missing pointer dereference.
- Date: Sat, 8 Mar 2014 07:18:50 +0000 (UTC)
commit 801038303038e472c23f3b65e8660e841a43ae36
Author: Tristian Celestin <tristian celestin outlook com>
Date: Mon Mar 3 01:13:12 2014 -0500
Terminal palette wouldn't change because of missing pointer dereference.
plugins/terminal/terminal.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/terminal/terminal.c b/plugins/terminal/terminal.c
index f53f5fb..deaed36 100644
--- a/plugins/terminal/terminal.c
+++ b/plugins/terminal/terminal.c
@@ -124,8 +124,8 @@ strv_to_rgbav (const gchar **specs, gsize *size, GdkRGBA **colors)
var = g_variant_new_strv (specs, -1);
g_variant_iter_init (&iter, var);
- size = g_variant_iter_n_children (&iter);
- *colors = g_new (GdkRGBA, size);
+ *size = g_variant_iter_n_children (&iter);
+ *colors = g_new (GdkRGBA, *size);
i = 0;
while (g_variant_iter_next (&iter, "&s", &str)) {
if (!gdk_rgba_parse (&(*colors)[i++], str)) {
@@ -932,7 +932,6 @@ on_pref_profile_changed (GtkComboBox* combo, TerminalPlugin* term_plugin)
gtk_tree_model_get (model, &iter, TERM_STORE_UUID_COLUMN, &uuid, -1);
g_settings_set_string (term_plugin->settings, PREFS_TERMINAL_PROFILE, uuid);
g_free (uuid);
- //g_object_unref (model);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]