Mercurial > pidgin.yaz
comparison finch/libgnt/gntwm.c @ 17541:aeb8c9fbb577
Fixed some curlies for functions
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Mon, 04 Jun 2007 03:00:09 +0000 |
parents | b242187b3591 |
children | ab71a09600ad |
comparison
equal
deleted
inserted
replaced
17540:b242187b3591 | 17541:aeb8c9fbb577 |
---|---|
495 | 495 |
496 return TRUE; | 496 return TRUE; |
497 } | 497 } |
498 | 498 |
499 static gboolean | 499 static gboolean |
500 free_rebind_info(){ | 500 free_rebind_info() |
501 { | |
501 g_free(rebind_info->keys); | 502 g_free(rebind_info->keys); |
502 g_free(rebind_info->name); | 503 g_free(rebind_info->name); |
503 g_free(rebind_info->params); | 504 g_free(rebind_info->params); |
504 g_free(rebind_info); | 505 g_free(rebind_info); |
505 | 506 |
506 } | 507 } |
507 | 508 |
508 static gboolean | 509 static gboolean |
509 help_for_widget_cancel_button_activate(GntBindable *bindable, gpointer data){ | 510 help_for_widget_cancel_button_activate(GntBindable *bindable, gpointer data) |
511 { | |
510 free_rebind_info(); | 512 free_rebind_info(); |
511 | 513 |
512 gnt_widget_destroy(GNT_WIDGET(data)); | 514 gnt_widget_destroy(GNT_WIDGET(data)); |
513 return TRUE; | 515 return TRUE; |
514 } | 516 } |
515 | 517 |
516 static gboolean | 518 static gboolean |
517 help_for_widget_bind_button_activate(GntBindable *bindable, gpointer data){ | 519 help_for_widget_bind_button_activate(GntBindable *bindable, gpointer data) |
520 { | |
518 | 521 |
519 /* This will be where the rebinding happens */ | 522 /* This will be where the rebinding happens */ |
520 /* if(rebind_info->keys){ | 523 /* if(rebind_info->keys){ |
521 gnt_bindable_class_register_action(rebind_info->klass,rebind_info->name,NULL,rebind_info->keys,rebind_info->params); | 524 gnt_bindable_class_register_action(rebind_info->klass,rebind_info->name,NULL,rebind_info->keys,rebind_info->params); |
522 } */ | 525 } */ |
527 | 530 |
528 return TRUE; | 531 return TRUE; |
529 } | 532 } |
530 | 533 |
531 static gboolean | 534 static gboolean |
532 help_for_widget_grab_key(GntBindable *bindable, const char *text, gpointer *data){ | 535 help_for_widget_grab_key(GntBindable *bindable, const char *text, gpointer *data) |
536 { | |
533 | 537 |
534 GntLabel *label = GNT_LABEL(data); | 538 GntLabel *label = GNT_LABEL(data); |
535 char *newText; | 539 char *newText; |
536 | 540 |
537 if(text && *text){ | 541 if(text && *text){ |
538 | |
539 fprintf(stderr,"%d %d\n",*text,text[1]); | |
540 | 542 |
541 if(!strcmp(text, GNT_KEY_CTRL_I) || !strcmp(text, GNT_KEY_ENTER)){ | 543 if(!strcmp(text, GNT_KEY_CTRL_I) || !strcmp(text, GNT_KEY_ENTER)){ |
542 return FALSE; | 544 return FALSE; |
543 } | 545 } |
544 | 546 |
550 return TRUE; | 552 return TRUE; |
551 } | 553 } |
552 return FALSE; | 554 return FALSE; |
553 } | 555 } |
554 static void | 556 static void |
555 help_for_widget_activate(GntBindable *bindable, gpointer widget){ | 557 help_for_widget_activate(GntBindable *bindable, gpointer widget) |
556 | 558 { |
557 | 559 |
558 GntTree * tree = GNT_TREE(bindable); | 560 GntTree * tree = GNT_TREE(bindable); |
559 | 561 |
560 GntWidget *vbox = gnt_box_new(FALSE,TRUE); | 562 GntWidget *vbox = gnt_box_new(FALSE,TRUE); |
561 | 563 |