gnome-terminal r2698 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2698 - trunk/src
- Date: Thu, 29 May 2008 19:46:14 +0000 (UTC)
Author: chpe
Date: Thu May 29 19:46:14 2008
New Revision: 2698
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2698&view=rev
Log:
Don't put the locked flags into the struct, instead allocate them.
Modified:
trunk/src/terminal-profile.c
Modified: trunk/src/terminal-profile.c
==============================================================================
--- trunk/src/terminal-profile.c (original)
+++ trunk/src/terminal-profile.c Thu May 29 19:46:14 2008
@@ -149,7 +149,7 @@
struct _TerminalProfilePrivate
{
GValueArray *properties;
- gboolean locked[LAST_PROP];
+ gboolean *locked;
GConfClient *conf;
char *profile_dir;
@@ -917,7 +917,7 @@
priv->in_notification_count = 0;
- memset (priv->locked, 0, LAST_PROP * sizeof (gboolean));
+ priv->locked = g_new0 (gboolean, LAST_PROP);
priv->locked[PROP_NAME] = TRUE;
priv->properties = g_value_array_new (LAST_PROP);
@@ -1038,6 +1038,7 @@
g_object_unref (priv->conf);
+ g_free (priv->locked);
g_value_array_free (priv->properties);
G_OBJECT_CLASS (terminal_profile_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]