Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
884c8b73
Commit
884c8b73
authored
Sep 27, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge, title was not UTF8, and title changed when new graph is opened
parent
eb1d18e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
xtt/lib/ge/gtk/ge_gtk.cpp
xtt/lib/ge/gtk/ge_gtk.cpp
+9
-3
xtt/lib/ge/src/ge.cpp
xtt/lib/ge/src/ge.cpp
+1
-0
No files found.
xtt/lib/ge/gtk/ge_gtk.cpp
View file @
884c8b73
...
...
@@ -145,7 +145,9 @@ void GeGtk::subgraphs_new()
void
GeGtk
::
set_title
(
char
*
title
)
{
gtk_window_set_title
(
GTK_WINDOW
(
toplevel
),
title
);
char
*
titleutf8
=
g_convert
(
title
,
-
1
,
"UTF-8"
,
"ISO8859-1"
,
NULL
,
NULL
,
NULL
);
gtk_window_set_title
(
GTK_WINDOW
(
toplevel
),
titleutf8
);
g_free
(
titleutf8
);
}
void
GeGtk
::
open_input_dialog
(
const
char
*
text
,
const
char
*
title
,
...
...
@@ -1748,12 +1750,16 @@ GeGtk::GeGtk( void *x_parent_ctx,
strcat
(
title
,
tmp_name
);
}
char
*
titleutf8
=
g_convert
(
title
,
-
1
,
"UTF-8"
,
"ISO8859-1"
,
NULL
,
NULL
,
NULL
);
toplevel
=
(
GtkWidget
*
)
g_object_new
(
GTK_TYPE_WINDOW
,
"default-height"
,
window_height
,
"default-width"
,
window_width
,
"title"
,
title
,
"title"
,
title
utf8
,
NULL
);
g_free
(
titleutf8
);
g_signal_connect
(
toplevel
,
"delete_event"
,
G_CALLBACK
(
delete_event
),
this
);
g_signal_connect
(
toplevel
,
"destroy"
,
G_CALLBACK
(
destroy_event
),
this
);
g_signal_connect
(
toplevel
,
"focus-in-event"
,
G_CALLBACK
(
ge_action_inputfocus
),
this
);
...
...
@@ -3495,4 +3501,4 @@ GeGtk::GeGtk( void *x_parent_ctx,
gtk_check_menu_item_set_active
(
GTK_CHECK_MENU_ITEM
(
cons_type_routed
),
TRUE
);
gtk_check_menu_item_set_active
(
GTK_CHECK_MENU_ITEM
(
cons_round_amount_2
),
TRUE
);
gtk_check_menu_item_set_active
(
GTK_CHECK_MENU_ITEM
(
cons_corners_rounded
),
TRUE
);
}
\ No newline at end of file
}
xtt/lib/ge/src/ge.cpp
View file @
884c8b73
...
...
@@ -1559,6 +1559,7 @@ void Ge::activate_graph_attr()
void
Ge
::
open_list_cb
(
void
*
ctx
,
char
*
text
,
int
ok_pressed
)
{
((
Ge
*
)
ctx
)
->
open_graph
(
text
);
((
Ge
*
)
ctx
)
->
set_title
();
if
(
ok_pressed
)
((
Ge
*
)
ctx
)
->
open_dialog
=
0
;
}
...
...
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