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
2030af4d
Commit
2030af4d
authored
Oct 19, 2020
by
Claes
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb script function PromptDialog bugfix
parent
75a9df45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
wb/lib/wb/gtk/wb_wnav_gtk.cpp
wb/lib/wb/gtk/wb_wnav_gtk.cpp
+13
-2
No files found.
wb/lib/wb/gtk/wb_wnav_gtk.cpp
View file @
2030af4d
...
...
@@ -508,6 +508,14 @@ static void wnav_message_dialog_read(GtkWidget* w, gpointer data)
gtk_main_quit
();
}
static
void
wnav_message_dialog_cancel
(
GtkWidget
*
w
,
gpointer
data
)
{
WNav
*
wnav
=
(
WNav
*
)
data
;
wnav
->
dialog_cancel
=
1
;
gtk_main_quit
();
}
void
WNavGtk
::
message_dialog
(
char
*
title
,
char
*
text
)
{
GtkWidget
*
dialog
...
...
@@ -632,7 +640,7 @@ int WNavGtk::prompt_dialog(char* title, char* text, char** value)
GtkWidget
*
india_cancel
=
gtk_button_new_with_label
(
"Cancel"
);
gtk_widget_set_size_request
(
india_cancel
,
70
,
25
);
g_signal_connect
(
india_cancel
,
"clicked"
,
G_CALLBACK
(
wnav_
confirm
_dialog_cancel
),
this
);
india_cancel
,
"clicked"
,
G_CALLBACK
(
wnav_
message
_dialog_cancel
),
this
);
GtkWidget
*
india_hboxtext
=
gtk_hbox_new
(
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
india_hboxtext
),
india_image
,
FALSE
,
FALSE
,
15
);
...
...
@@ -650,8 +658,11 @@ int WNavGtk::prompt_dialog(char* title, char* text, char** value)
GTK_BOX
(
india_vbox
),
gtk_hseparator_new
(),
FALSE
,
FALSE
,
0
);
gtk_box_pack_end
(
GTK_BOX
(
india_vbox
),
india_hboxbuttons
,
FALSE
,
FALSE
,
15
);
gtk_container_add
(
GTK_CONTAINER
(
india_widget
),
india_vbox
);
gtk_widget_show_all
(
india_widget
);
dialog_ok
=
0
;
dialog_cancel
=
0
;
gtk_widget_show_all
(
india_widget
);
gtk_main
();
if
(
dialog_ok
)
{
...
...
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