Center the window and fixed one spelling issue.

This commit is contained in:
Sanel Zukan 2012-08-05 23:01:11 +00:00
parent 8eeca59484
commit 705ea3ebf2
2 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,7 @@
#include <FL/Fl_Button.H> #include <FL/Fl_Button.H>
#include <edelib/Window.h> #include <edelib/Window.h>
#include <edelib/WindowUtils.h>
#include <edelib/MessageBox.h> #include <edelib/MessageBox.h>
#include <edelib/String.h> #include <edelib/String.h>
#include <edelib/Regex.h> #include <edelib/Regex.h>
@ -41,6 +42,7 @@ EDELIB_NS_USING(String)
EDELIB_NS_USING(Regex) EDELIB_NS_USING(Regex)
EDELIB_NS_USING(alert) EDELIB_NS_USING(alert)
EDELIB_NS_USING(message) EDELIB_NS_USING(message)
EDELIB_NS_USING(window_center_on_screen)
EDELIB_NS_USING(RX_CASELESS) EDELIB_NS_USING(RX_CASELESS)
#ifdef HAVE_CURL #ifdef HAVE_CURL
@ -156,7 +158,7 @@ int main(int argc, char** argv) {
Fl_Box *description_box = new Fl_Box(80, 45, 390, 95, _("To help us to improve the future EDE versions, " Fl_Box *description_box = new Fl_Box(80, 45, 390, 95, _("To help us to improve the future EDE versions, "
"please describe the problem with much details as possible.\n\nNote: valid email address is required, so " "please describe the problem with much details as possible.\n\nNote: valid email address is required, so "
"developers could contact you for more informations if necessary.")); "developers can contact you for more informations if necessary."));
description_box->align(133|FL_ALIGN_INSIDE); description_box->align(133|FL_ALIGN_INSIDE);
@ -194,6 +196,7 @@ int main(int argc, char** argv) {
Fl_Group::current()->resizable(rbox); Fl_Group::current()->resizable(rbox);
win->window_icon(bug_xpm); win->window_icon(bug_xpm);
/* win->show(argc, argv); */ /* win->show(argc, argv); */
window_center_on_screen(win);
win->show(); win->show();
return Fl::run(); return Fl::run();
#endif /* HAVE_CURL */ #endif /* HAVE_CURL */

View File

@ -18,7 +18,7 @@ Function {} {open
Fl_Box {} { Fl_Box {} {
label {To help us to improve the future EDE versions, please describe the problem with much details as possible. label {To help us to improve the future EDE versions, please describe the problem with much details as possible.
Note: valid email address is required, so developers could contact you for more informations if necessary.} Note: valid email address is required, so developers can contact you for more informations if necessary.}
xywh {80 45 390 95} align 149 xywh {80 45 390 95} align 149
} }
Fl_Input {} { Fl_Input {} {