Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bac4d3

Browse files
committed
Added forms_(de)activate_all_forms functions; minor lay-out fixes.
1 parent 26e67b0 commit 2bac4d3

1 file changed

Lines changed: 40 additions & 18 deletions

File tree

Modules/flmodule.c

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,6 +1918,26 @@ forms_make_form(dummy, args)
19181918
return newformobject(form);
19191919
}
19201920

1921+
static object *
1922+
forms_activate_all_forms(f, args)
1923+
object *f;
1924+
object *args;
1925+
{
1926+
fl_activate_all_forms();
1927+
INCREF(None);
1928+
return None;
1929+
}
1930+
1931+
static object *
1932+
forms_deactivate_all_forms(f, args)
1933+
object *f;
1934+
object *args;
1935+
{
1936+
fl_deactivate_all_forms();
1937+
INCREF(None);
1938+
return None;
1939+
}
1940+
19211941
static object *my_event_callback = NULL;
19221942

19231943
static object *
@@ -2247,8 +2267,8 @@ forms_tie(self, args)
22472267

22482268
static object *
22492269
forms_show_message(f, args)
2250-
object *f;
2251-
object *args;
2270+
object *f;
2271+
object *args;
22522272
{
22532273
char *a, *b, *c;
22542274

@@ -2262,8 +2282,8 @@ forms_show_message(f, args)
22622282

22632283
static object *
22642284
forms_show_choice(f, args)
2265-
object *f;
2266-
object *args;
2285+
object *f;
2286+
object *args;
22672287
{
22682288
char *m1, *m2, *m3, *b1, *b2, *b3;
22692289
int nb;
@@ -2300,8 +2320,8 @@ forms_show_choice(f, args)
23002320

23012321
static object *
23022322
forms_show_question(f, args)
2303-
object *f;
2304-
object *args;
2323+
object *f;
2324+
object *args;
23052325
{
23062326
int ret;
23072327
char *a, *b, *c;
@@ -2315,8 +2335,8 @@ forms_show_question(f, args)
23152335

23162336
static object *
23172337
forms_show_input(f, args)
2318-
object *f;
2319-
object *args;
2338+
object *f;
2339+
object *args;
23202340
{
23212341
char *str;
23222342
char *a, *b;
@@ -2334,8 +2354,8 @@ forms_show_input(f, args)
23342354

23352355
static object *
23362356
forms_file_selector(f, args)
2337-
object *f;
2338-
object *args;
2357+
object *f;
2358+
object *args;
23392359
{
23402360
char *str;
23412361
char *a, *b, *c, *d;
@@ -2354,8 +2374,8 @@ forms_file_selector(f, args)
23542374

23552375
static object *
23562376
forms_file_selector_func(args, func)
2357-
object *args;
2358-
char *(*func)();
2377+
object *args;
2378+
char *(*func)();
23592379
{
23602380
char *str;
23612381

@@ -2370,31 +2390,33 @@ forms_file_selector_func(args, func)
23702390

23712391
static object *
23722392
forms_get_directory(f, args)
2373-
object *f;
2374-
object *args;
2393+
object *f;
2394+
object *args;
23752395
{
23762396
return forms_file_selector_func(args, fl_get_directory);
23772397
}
23782398

23792399
static object *
23802400
forms_get_pattern(f, args)
2381-
object *f;
2382-
object *args;
2401+
object *f;
2402+
object *args;
23832403
{
23842404
return forms_file_selector_func(args, fl_get_pattern);
23852405
}
23862406

23872407
static object *
23882408
forms_get_filename(f, args)
2389-
object *f;
2390-
object *args;
2409+
object *f;
2410+
object *args;
23912411
{
23922412
return forms_file_selector_func(args, fl_get_filename);
23932413
}
23942414

23952415
static struct methodlist forms_methods[] = {
23962416
/* adm */
23972417
{"make_form", forms_make_form},
2418+
{"activate_all_forms", forms_activate_all_forms},
2419+
{"deactivate_all_forms",forms_deactivate_all_forms},
23982420
/* gl support wrappers */
23992421
{"qdevice", forms_qdevice},
24002422
{"unqdevice", forms_unqdevice},

0 commit comments

Comments
 (0)