[gnumeric] Compilation: more "link" avoidance.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Compilation: more "link" avoidance.
- Date: Wed, 8 Mar 2017 18:44:20 +0000 (UTC)
commit 7d634b9e5a63ab87e52dc86927736e5b12a31845
Author: Morten Welinder <terra gnome org>
Date: Wed Mar 8 13:43:46 2017 -0500
Compilation: more "link" avoidance.
src/commands.h | 8 ++++----
src/dialogs/dialog-doc-metadata.c | 28 ++++++++++++++--------------
2 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/src/commands.h b/src/commands.h
index e51ef62..1786cf4 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -203,20 +203,20 @@ gboolean cmd_so_set_frame_label (WorkbookControl *wbc, SheetObject *so,
char *old_label, char *new_label);
gboolean cmd_so_set_button (WorkbookControl *wbc, SheetObject *so,
- GnmExprTop const *link,
+ GnmExprTop const *lnk,
char *old_label, char *new_label);
gboolean cmd_so_set_radio_button (WorkbookControl *wbc, SheetObject *so,
- GnmExprTop const *link,
+ GnmExprTop const *lnk,
char *old_label, char *new_label,
GnmValue *old_value, GnmValue *new_value);
gboolean cmd_so_set_checkbox (WorkbookControl *wbc, SheetObject *so,
- GnmExprTop const *link,
+ GnmExprTop const *lnk,
char *old_label, char *new_label);
gboolean cmd_so_set_adjustment (WorkbookControl *wbc, SheetObject *so,
- GnmExprTop const *link,
+ GnmExprTop const *lnk,
gboolean horizontal,
int lower, int upper,
int step, int page,
diff --git a/src/dialogs/dialog-doc-metadata.c b/src/dialogs/dialog-doc-metadata.c
index 85527ec..48d963e 100644
--- a/src/dialogs/dialog-doc-metadata.c
+++ b/src/dialogs/dialog-doc-metadata.c
@@ -775,7 +775,7 @@ static void
dialog_doc_metadata_add_prop (DialogDocMetaData *state,
const gchar *name,
const gchar *value,
- const gchar *link,
+ const gchar *lnk,
GType val_type)
{
gboolean editable = (val_type != G_TYPE_INVALID)
@@ -783,14 +783,14 @@ dialog_doc_metadata_add_prop (DialogDocMetaData *state,
if (value == NULL)
value = "";
- if (link == NULL)
- link = "";
+ if (lnk == NULL)
+ lnk = "";
/* Append new values in tree view */
gtk_tree_store_insert_with_values (state->properties_store, NULL, NULL, G_MAXINT,
0, name,
1, value,
- 2, link,
+ 2, lnk,
3, editable,
4, val_type,
-1);
@@ -870,7 +870,7 @@ dialog_doc_metadata_set_gsf_prop_val (DialogDocMetaData *state,
* @state: dialog main struct
* @name: property name
* @value: property value
- * @link: property linked to
+ * @lnk: property linked to
*
* Sets a new value to the property in the GsfDocMetaData struct
*
@@ -879,7 +879,7 @@ static GType
dialog_doc_metadata_set_gsf_prop (DialogDocMetaData *state,
const gchar *name,
const gchar *value,
- const gchar *link,
+ const gchar *lnk,
GType type)
{
GsfDocProp *existing_prop = NULL;
@@ -894,11 +894,11 @@ dialog_doc_metadata_set_gsf_prop (DialogDocMetaData *state,
existing_link = gsf_doc_prop_get_link (existing_prop);
}
- if (link != NULL && *link == 0)
- link = NULL;
+ if (lnk != NULL && *lnk == 0)
+ lnk = NULL;
if (value != NULL && *value == 0)
value = NULL;
- if ((value == NULL) && (link == NULL)) {
+ if ((value == NULL) && (lnk == NULL)) {
if ((existing_prop == NULL) ||
((existing_value == NULL) && (existing_link == NULL)))
return G_TYPE_INVALID;
@@ -915,12 +915,12 @@ dialog_doc_metadata_set_gsf_prop (DialogDocMetaData *state,
if (existing_link!= NULL && *existing_link == 0)
existing_link = NULL;
- if (link == existing_link)
+ if (lnk == existing_link)
link_changed = FALSE;
- else if (link == NULL || existing_link == NULL)
+ else if (lnk == NULL || existing_link == NULL)
link_changed = TRUE;
else
- link_changed = (0 != strcmp (link, existing_link));
+ link_changed = (0 != strcmp (lnk, existing_link));
if (existing_value == NULL)
value_changed = (value != NULL);
@@ -959,8 +959,8 @@ dialog_doc_metadata_set_gsf_prop (DialogDocMetaData *state,
gsf_doc_prop_set_val (doc_prop, doc_prop_value);
}
- if (link != NULL)
- gsf_doc_prop_set_link (doc_prop, g_strdup (link));
+ if (lnk != NULL)
+ gsf_doc_prop_set_link (doc_prop, g_strdup (lnk));
cmd_change_meta_data (GNM_WBC (state->wbcg),
g_slist_prepend (NULL, doc_prop), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]