Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnumeric
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
368
Issues
368
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gnumeric
Commits
a8a9b912
Commit
a8a9b912
authored
Oct 06, 1999
by
Jody Goldberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missed patch.
parent
fb750b50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
src/workbook.c
src/workbook.c
+21
-0
No files found.
src/workbook.c
View file @
a8a9b912
...
...
@@ -2109,6 +2109,8 @@ gboolean
workbook_rename_sheet
(
Workbook
*
wb
,
const
char
*
old_name
,
const
char
*
new_name
)
{
Sheet
*
sheet
;
GtkNotebook
*
notebook
;
int
sheets
,
i
;
g_return_val_if_fail
(
wb
!=
NULL
,
FALSE
);
g_return_val_if_fail
(
old_name
!=
NULL
,
FALSE
);
...
...
@@ -2127,6 +2129,25 @@ workbook_rename_sheet (Workbook *wb, const char *old_name, const char *new_name)
g_hash_table_insert
(
wb
->
sheets
,
sheet
->
name
,
sheet
);
sheet_set_dirty
(
sheet
,
TRUE
);
/* Update the notebook label */
notebook
=
GTK_NOTEBOOK
(
wb
->
notebook
);
sheets
=
workbook_sheet_count
(
wb
);
for
(
i
=
0
;
i
<
sheets
;
i
++
)
{
Sheet
*
this_sheet
;
GtkWidget
*
w
;
w
=
gtk_notebook_get_nth_page
(
notebook
,
i
);
this_sheet
=
gtk_object_get_data
(
GTK_OBJECT
(
w
),
"sheet"
);
if
(
this_sheet
==
sheet
)
{
gtk_notebook_set_tab_label_text
(
notebook
,
w
,
new_name
);
}
}
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment