gconf.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | gconf.c (3b9fa0931dd86a1fe5507311ee8031650f5d0e8c) |
---|---|
1/* Hey EMACS -*- linux-c -*- */ 2/* 3 * 4 * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info> 5 * Released under the terms of the GNU GPL v2.0. 6 * 7 */ 8 --- 27 unchanged lines hidden (view full) --- 36static gboolean show_value = TRUE; 37static gboolean show_all = FALSE; 38static gboolean show_debug = FALSE; 39static gboolean resizeable = FALSE; 40 41static gboolean config_changed = FALSE; 42 43static char nohelp_text[] = | 1/* Hey EMACS -*- linux-c -*- */ 2/* 3 * 4 * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info> 5 * Released under the terms of the GNU GPL v2.0. 6 * 7 */ 8 --- 27 unchanged lines hidden (view full) --- 36static gboolean show_value = TRUE; 37static gboolean show_all = FALSE; 38static gboolean show_debug = FALSE; 39static gboolean resizeable = FALSE; 40 41static gboolean config_changed = FALSE; 42 43static char nohelp_text[] = |
44 "Sorry, no help available for this option yet.\n"; | 44 N_("Sorry, no help available for this option yet.\n"); |
45 46GtkWidget *main_wnd = NULL; 47GtkWidget *tree1_w = NULL; // left frame 48GtkWidget *tree2_w = NULL; // right frame 49GtkWidget *text_w = NULL; 50GtkWidget *hpaned = NULL; 51GtkWidget *vpaned = NULL; 52GtkWidget *back_btn = NULL; --- 135 unchanged lines hidden (view full) --- 188 GtkTextBuffer *txtbuf; 189 char title[256]; 190 GdkPixmap *pixmap; 191 GdkBitmap *mask; 192 GtkStyle *style; 193 194 xml = glade_xml_new(glade_file, "window1", NULL); 195 if (!xml) | 45 46GtkWidget *main_wnd = NULL; 47GtkWidget *tree1_w = NULL; // left frame 48GtkWidget *tree2_w = NULL; // right frame 49GtkWidget *text_w = NULL; 50GtkWidget *hpaned = NULL; 51GtkWidget *vpaned = NULL; 52GtkWidget *back_btn = NULL; --- 135 unchanged lines hidden (view full) --- 188 GtkTextBuffer *txtbuf; 189 char title[256]; 190 GdkPixmap *pixmap; 191 GdkBitmap *mask; 192 GtkStyle *style; 193 194 xml = glade_xml_new(glade_file, "window1", NULL); 195 if (!xml) |
196 g_error("GUI loading failed !\n"); | 196 g_error(_("GUI loading failed !\n")); |
197 glade_xml_signal_autoconnect(xml); 198 199 main_wnd = glade_xml_get_widget(xml, "window1"); 200 hpaned = glade_xml_get_widget(xml, "hpaned1"); 201 vpaned = glade_xml_get_widget(xml, "vpaned1"); 202 tree1_w = glade_xml_get_widget(xml, "treeview1"); 203 tree2_w = glade_xml_get_widget(xml, "treeview2"); 204 text_w = glade_xml_get_widget(xml, "textview3"); --- 65 unchanged lines hidden (view full) --- 270 tag1 = gtk_text_buffer_create_tag(txtbuf, "mytag1", 271 "foreground", "red", 272 "weight", PANGO_WEIGHT_BOLD, 273 NULL); 274 tag2 = gtk_text_buffer_create_tag(txtbuf, "mytag2", 275 /*"style", PANGO_STYLE_OBLIQUE, */ 276 NULL); 277 | 197 glade_xml_signal_autoconnect(xml); 198 199 main_wnd = glade_xml_get_widget(xml, "window1"); 200 hpaned = glade_xml_get_widget(xml, "hpaned1"); 201 vpaned = glade_xml_get_widget(xml, "vpaned1"); 202 tree1_w = glade_xml_get_widget(xml, "treeview1"); 203 tree2_w = glade_xml_get_widget(xml, "treeview2"); 204 text_w = glade_xml_get_widget(xml, "textview3"); --- 65 unchanged lines hidden (view full) --- 270 tag1 = gtk_text_buffer_create_tag(txtbuf, "mytag1", 271 "foreground", "red", 272 "weight", PANGO_WEIGHT_BOLD, 273 NULL); 274 tag2 = gtk_text_buffer_create_tag(txtbuf, "mytag2", 275 /*"style", PANGO_STYLE_OBLIQUE, */ 276 NULL); 277 |
278 sprintf(title, "Linux Kernel v%s Configuration", | 278 sprintf(title, _("Linux Kernel v%s Configuration"), |
279 getenv("KERNELRELEASE")); 280 gtk_window_set_title(GTK_WINDOW(main_wnd), title); 281 282 gtk_widget_show(main_wnd); 283} 284 285void init_tree_model(void) 286{ --- 33 unchanged lines hidden (view full) --- 320 GtkTreeViewColumn *column; 321 322 gtk_tree_view_set_model(view, model1); 323 gtk_tree_view_set_headers_visible(view, TRUE); 324 gtk_tree_view_set_rules_hint(view, FALSE); 325 326 column = gtk_tree_view_column_new(); 327 gtk_tree_view_append_column(view, column); | 279 getenv("KERNELRELEASE")); 280 gtk_window_set_title(GTK_WINDOW(main_wnd), title); 281 282 gtk_widget_show(main_wnd); 283} 284 285void init_tree_model(void) 286{ --- 33 unchanged lines hidden (view full) --- 320 GtkTreeViewColumn *column; 321 322 gtk_tree_view_set_model(view, model1); 323 gtk_tree_view_set_headers_visible(view, TRUE); 324 gtk_tree_view_set_rules_hint(view, FALSE); 325 326 column = gtk_tree_view_column_new(); 327 gtk_tree_view_append_column(view, column); |
328 gtk_tree_view_column_set_title(column, "Options"); | 328 gtk_tree_view_column_set_title(column, _("Options")); |
329 330 renderer = gtk_cell_renderer_toggle_new(); 331 gtk_tree_view_column_pack_start(GTK_TREE_VIEW_COLUMN(column), 332 renderer, FALSE); 333 gtk_tree_view_column_set_attributes(GTK_TREE_VIEW_COLUMN(column), 334 renderer, 335 "active", COL_BTNACT, 336 "inconsistent", COL_BTNINC, --- 28 unchanged lines hidden (view full) --- 365 gint i; 366 367 gtk_tree_view_set_model(view, model2); 368 gtk_tree_view_set_headers_visible(view, TRUE); 369 gtk_tree_view_set_rules_hint(view, FALSE); 370 371 column = gtk_tree_view_column_new(); 372 gtk_tree_view_append_column(view, column); | 329 330 renderer = gtk_cell_renderer_toggle_new(); 331 gtk_tree_view_column_pack_start(GTK_TREE_VIEW_COLUMN(column), 332 renderer, FALSE); 333 gtk_tree_view_column_set_attributes(GTK_TREE_VIEW_COLUMN(column), 334 renderer, 335 "active", COL_BTNACT, 336 "inconsistent", COL_BTNINC, --- 28 unchanged lines hidden (view full) --- 365 gint i; 366 367 gtk_tree_view_set_model(view, model2); 368 gtk_tree_view_set_headers_visible(view, TRUE); 369 gtk_tree_view_set_rules_hint(view, FALSE); 370 371 column = gtk_tree_view_column_new(); 372 gtk_tree_view_append_column(view, column); |
373 gtk_tree_view_column_set_title(column, "Options"); | 373 gtk_tree_view_column_set_title(column, _("Options")); |
374 375 renderer = gtk_cell_renderer_pixbuf_new(); 376 gtk_tree_view_column_pack_start(GTK_TREE_VIEW_COLUMN(column), 377 renderer, FALSE); 378 gtk_tree_view_column_set_attributes(GTK_TREE_VIEW_COLUMN(column), 379 renderer, 380 "pixbuf", COL_PIXBUF, 381 "visible", COL_PIXVIS, NULL); --- 14 unchanged lines hidden (view full) --- 396 gtk_tree_view_column_set_attributes(GTK_TREE_VIEW_COLUMN(column), 397 renderer, 398 "text", COL_OPTION, 399 "foreground-gdk", 400 COL_COLOR, NULL); 401 402 renderer = gtk_cell_renderer_text_new(); 403 gtk_tree_view_insert_column_with_attributes(view, -1, | 374 375 renderer = gtk_cell_renderer_pixbuf_new(); 376 gtk_tree_view_column_pack_start(GTK_TREE_VIEW_COLUMN(column), 377 renderer, FALSE); 378 gtk_tree_view_column_set_attributes(GTK_TREE_VIEW_COLUMN(column), 379 renderer, 380 "pixbuf", COL_PIXBUF, 381 "visible", COL_PIXVIS, NULL); --- 14 unchanged lines hidden (view full) --- 396 gtk_tree_view_column_set_attributes(GTK_TREE_VIEW_COLUMN(column), 397 renderer, 398 "text", COL_OPTION, 399 "foreground-gdk", 400 COL_COLOR, NULL); 401 402 renderer = gtk_cell_renderer_text_new(); 403 gtk_tree_view_insert_column_with_attributes(view, -1, |
404 "Name", renderer, | 404 _("Name"), renderer, |
405 "text", COL_NAME, 406 "foreground-gdk", 407 COL_COLOR, NULL); 408 renderer = gtk_cell_renderer_text_new(); 409 gtk_tree_view_insert_column_with_attributes(view, -1, 410 "N", renderer, 411 "text", COL_NO, 412 "foreground-gdk", --- 7 unchanged lines hidden (view full) --- 420 renderer = gtk_cell_renderer_text_new(); 421 gtk_tree_view_insert_column_with_attributes(view, -1, 422 "Y", renderer, 423 "text", COL_YES, 424 "foreground-gdk", 425 COL_COLOR, NULL); 426 renderer = gtk_cell_renderer_text_new(); 427 gtk_tree_view_insert_column_with_attributes(view, -1, | 405 "text", COL_NAME, 406 "foreground-gdk", 407 COL_COLOR, NULL); 408 renderer = gtk_cell_renderer_text_new(); 409 gtk_tree_view_insert_column_with_attributes(view, -1, 410 "N", renderer, 411 "text", COL_NO, 412 "foreground-gdk", --- 7 unchanged lines hidden (view full) --- 420 renderer = gtk_cell_renderer_text_new(); 421 gtk_tree_view_insert_column_with_attributes(view, -1, 422 "Y", renderer, 423 "text", COL_YES, 424 "foreground-gdk", 425 COL_COLOR, NULL); 426 renderer = gtk_cell_renderer_text_new(); 427 gtk_tree_view_insert_column_with_attributes(view, -1, |
428 "Value", renderer, | 428 _("Value"), renderer, |
429 "text", COL_VALUE, 430 "editable", 431 COL_EDIT, 432 "foreground-gdk", 433 COL_COLOR, NULL); 434 g_signal_connect(G_OBJECT(renderer), "edited", 435 G_CALLBACK(renderer_edited), NULL); 436 --- 24 unchanged lines hidden (view full) --- 461 462 463static void text_insert_help(struct menu *menu) 464{ 465 GtkTextBuffer *buffer; 466 GtkTextIter start, end; 467 const char *prompt = menu_get_prompt(menu); 468 gchar *name; | 429 "text", COL_VALUE, 430 "editable", 431 COL_EDIT, 432 "foreground-gdk", 433 COL_COLOR, NULL); 434 g_signal_connect(G_OBJECT(renderer), "edited", 435 G_CALLBACK(renderer_edited), NULL); 436 --- 24 unchanged lines hidden (view full) --- 461 462 463static void text_insert_help(struct menu *menu) 464{ 465 GtkTextBuffer *buffer; 466 GtkTextIter start, end; 467 const char *prompt = menu_get_prompt(menu); 468 gchar *name; |
469 const char *help = nohelp_text; | 469 const char *help = _(nohelp_text); |
470 471 if (!menu->sym) 472 help = ""; 473 else if (menu->sym->help) | 470 471 if (!menu->sym) 472 help = ""; 473 else if (menu->sym->help) |
474 help = menu->sym->help; | 474 help = _(menu->sym->help); |
475 476 if (menu->sym && menu->sym->name) | 475 476 if (menu->sym && menu->sym->name) |
477 name = g_strdup_printf(menu->sym->name); | 477 name = g_strdup_printf(_(menu->sym->name)); |
478 else 479 name = g_strdup(""); 480 481 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w)); 482 gtk_text_buffer_get_bounds(buffer, &start, &end); 483 gtk_text_buffer_delete(buffer, &start, &end); 484 gtk_text_view_set_left_margin(GTK_TEXT_VIEW(text_w), 15); 485 --- 39 unchanged lines hidden (view full) --- 525 gpointer user_data) 526{ 527 GtkWidget *dialog, *label; 528 gint result; 529 530 if (config_changed == FALSE) 531 return FALSE; 532 | 478 else 479 name = g_strdup(""); 480 481 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w)); 482 gtk_text_buffer_get_bounds(buffer, &start, &end); 483 gtk_text_buffer_delete(buffer, &start, &end); 484 gtk_text_view_set_left_margin(GTK_TEXT_VIEW(text_w), 15); 485 --- 39 unchanged lines hidden (view full) --- 525 gpointer user_data) 526{ 527 GtkWidget *dialog, *label; 528 gint result; 529 530 if (config_changed == FALSE) 531 return FALSE; 532 |
533 dialog = gtk_dialog_new_with_buttons("Warning !", | 533 dialog = gtk_dialog_new_with_buttons(_("Warning !"), |
534 GTK_WINDOW(main_wnd), 535 (GtkDialogFlags) 536 (GTK_DIALOG_MODAL | 537 GTK_DIALOG_DESTROY_WITH_PARENT), 538 GTK_STOCK_OK, 539 GTK_RESPONSE_YES, 540 GTK_STOCK_NO, 541 GTK_RESPONSE_NO, 542 GTK_STOCK_CANCEL, 543 GTK_RESPONSE_CANCEL, NULL); 544 gtk_dialog_set_default_response(GTK_DIALOG(dialog), 545 GTK_RESPONSE_CANCEL); 546 | 534 GTK_WINDOW(main_wnd), 535 (GtkDialogFlags) 536 (GTK_DIALOG_MODAL | 537 GTK_DIALOG_DESTROY_WITH_PARENT), 538 GTK_STOCK_OK, 539 GTK_RESPONSE_YES, 540 GTK_STOCK_NO, 541 GTK_RESPONSE_NO, 542 GTK_STOCK_CANCEL, 543 GTK_RESPONSE_CANCEL, NULL); 544 gtk_dialog_set_default_response(GTK_DIALOG(dialog), 545 GTK_RESPONSE_CANCEL); 546 |
547 label = gtk_label_new("\nSave configuration ?\n"); | 547 label = gtk_label_new(_("\nSave configuration ?\n")); |
548 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), label); 549 gtk_widget_show(label); 550 551 result = gtk_dialog_run(GTK_DIALOG(dialog)); 552 switch (result) { 553 case GTK_RESPONSE_YES: 554 on_save1_activate(NULL, NULL); 555 return FALSE; --- 43 unchanged lines hidden (view full) --- 599load_filename(GtkFileSelection * file_selector, gpointer user_data) 600{ 601 const gchar *fn; 602 603 fn = gtk_file_selection_get_filename(GTK_FILE_SELECTION 604 (user_data)); 605 606 if (conf_read(fn)) | 548 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), label); 549 gtk_widget_show(label); 550 551 result = gtk_dialog_run(GTK_DIALOG(dialog)); 552 switch (result) { 553 case GTK_RESPONSE_YES: 554 on_save1_activate(NULL, NULL); 555 return FALSE; --- 43 unchanged lines hidden (view full) --- 599load_filename(GtkFileSelection * file_selector, gpointer user_data) 600{ 601 const gchar *fn; 602 603 fn = gtk_file_selection_get_filename(GTK_FILE_SELECTION 604 (user_data)); 605 606 if (conf_read(fn)) |
607 text_insert_msg("Error", "Unable to load configuration !"); | 607 text_insert_msg(_("Error"), _("Unable to load configuration !")); |
608 else 609 display_tree(&rootmenu); 610} 611 612void on_load1_activate(GtkMenuItem * menuitem, gpointer user_data) 613{ 614 GtkWidget *fs; 615 | 608 else 609 display_tree(&rootmenu); 610} 611 612void on_load1_activate(GtkMenuItem * menuitem, gpointer user_data) 613{ 614 GtkWidget *fs; 615 |
616 fs = gtk_file_selection_new("Load file..."); | 616 fs = gtk_file_selection_new(_("Load file...")); |
617 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), 618 "clicked", 619 G_CALLBACK(load_filename), (gpointer) fs); 620 g_signal_connect_swapped(GTK_OBJECT 621 (GTK_FILE_SELECTION(fs)->ok_button), 622 "clicked", G_CALLBACK(gtk_widget_destroy), 623 (gpointer) fs); 624 g_signal_connect_swapped(GTK_OBJECT 625 (GTK_FILE_SELECTION(fs)->cancel_button), 626 "clicked", G_CALLBACK(gtk_widget_destroy), 627 (gpointer) fs); 628 gtk_widget_show(fs); 629} 630 631 632void on_save1_activate(GtkMenuItem * menuitem, gpointer user_data) 633{ 634 if (conf_write(NULL)) | 617 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), 618 "clicked", 619 G_CALLBACK(load_filename), (gpointer) fs); 620 g_signal_connect_swapped(GTK_OBJECT 621 (GTK_FILE_SELECTION(fs)->ok_button), 622 "clicked", G_CALLBACK(gtk_widget_destroy), 623 (gpointer) fs); 624 g_signal_connect_swapped(GTK_OBJECT 625 (GTK_FILE_SELECTION(fs)->cancel_button), 626 "clicked", G_CALLBACK(gtk_widget_destroy), 627 (gpointer) fs); 628 gtk_widget_show(fs); 629} 630 631 632void on_save1_activate(GtkMenuItem * menuitem, gpointer user_data) 633{ 634 if (conf_write(NULL)) |
635 text_insert_msg("Error", "Unable to save configuration !"); | 635 text_insert_msg(_("Error"), _("Unable to save configuration !")); |
636 637 config_changed = FALSE; 638} 639 640 641static void 642store_filename(GtkFileSelection * file_selector, gpointer user_data) 643{ 644 const gchar *fn; 645 646 fn = gtk_file_selection_get_filename(GTK_FILE_SELECTION 647 (user_data)); 648 649 if (conf_write(fn)) | 636 637 config_changed = FALSE; 638} 639 640 641static void 642store_filename(GtkFileSelection * file_selector, gpointer user_data) 643{ 644 const gchar *fn; 645 646 fn = gtk_file_selection_get_filename(GTK_FILE_SELECTION 647 (user_data)); 648 649 if (conf_write(fn)) |
650 text_insert_msg("Error", "Unable to save configuration !"); | 650 text_insert_msg(_("Error"), _("Unable to save configuration !")); |
651 652 gtk_widget_destroy(GTK_WIDGET(user_data)); 653} 654 655void on_save_as1_activate(GtkMenuItem * menuitem, gpointer user_data) 656{ 657 GtkWidget *fs; 658 | 651 652 gtk_widget_destroy(GTK_WIDGET(user_data)); 653} 654 655void on_save_as1_activate(GtkMenuItem * menuitem, gpointer user_data) 656{ 657 GtkWidget *fs; 658 |
659 fs = gtk_file_selection_new("Save file as..."); | 659 fs = gtk_file_selection_new(_("Save file as...")); |
660 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), 661 "clicked", 662 G_CALLBACK(store_filename), (gpointer) fs); 663 g_signal_connect_swapped(GTK_OBJECT 664 (GTK_FILE_SELECTION(fs)->ok_button), 665 "clicked", G_CALLBACK(gtk_widget_destroy), 666 (gpointer) fs); 667 g_signal_connect_swapped(GTK_OBJECT --- 67 unchanged lines hidden (view full) --- 735 show_debug = GTK_CHECK_MENU_ITEM(menuitem)->active; 736 update_tree(&rootmenu, NULL); 737} 738 739 740void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data) 741{ 742 GtkWidget *dialog; | 660 g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), 661 "clicked", 662 G_CALLBACK(store_filename), (gpointer) fs); 663 g_signal_connect_swapped(GTK_OBJECT 664 (GTK_FILE_SELECTION(fs)->ok_button), 665 "clicked", G_CALLBACK(gtk_widget_destroy), 666 (gpointer) fs); 667 g_signal_connect_swapped(GTK_OBJECT --- 67 unchanged lines hidden (view full) --- 735 show_debug = GTK_CHECK_MENU_ITEM(menuitem)->active; 736 update_tree(&rootmenu, NULL); 737} 738 739 740void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data) 741{ 742 GtkWidget *dialog; |
743 const gchar *intro_text = | 743 const gchar *intro_text = _( |
744 "Welcome to gkc, the GTK+ graphical kernel configuration tool\n" 745 "for Linux.\n" 746 "For each option, a blank box indicates the feature is disabled, a\n" 747 "check indicates it is enabled, and a dot indicates that it is to\n" 748 "be compiled as a module. Clicking on the box will cycle through the three states.\n" 749 "\n" 750 "If you do not see an option (e.g., a device driver) that you\n" 751 "believe should be present, try turning on Show All Options\n" 752 "under the Options menu.\n" 753 "Although there is no cross reference yet to help you figure out\n" 754 "what other options must be enabled to support the option you\n" 755 "are interested in, you can still view the help of a grayed-out\n" 756 "option.\n" 757 "\n" 758 "Toggling Show Debug Info under the Options menu will show \n" | 744 "Welcome to gkc, the GTK+ graphical kernel configuration tool\n" 745 "for Linux.\n" 746 "For each option, a blank box indicates the feature is disabled, a\n" 747 "check indicates it is enabled, and a dot indicates that it is to\n" 748 "be compiled as a module. Clicking on the box will cycle through the three states.\n" 749 "\n" 750 "If you do not see an option (e.g., a device driver) that you\n" 751 "believe should be present, try turning on Show All Options\n" 752 "under the Options menu.\n" 753 "Although there is no cross reference yet to help you figure out\n" 754 "what other options must be enabled to support the option you\n" 755 "are interested in, you can still view the help of a grayed-out\n" 756 "option.\n" 757 "\n" 758 "Toggling Show Debug Info under the Options menu will show \n" |
759 "the dependencies, which you can then match by examining other options."; | 759 "the dependencies, which you can then match by examining other options."); |
760 761 dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd), 762 GTK_DIALOG_DESTROY_WITH_PARENT, 763 GTK_MESSAGE_INFO, 764 GTK_BUTTONS_CLOSE, intro_text); 765 g_signal_connect_swapped(GTK_OBJECT(dialog), "response", 766 G_CALLBACK(gtk_widget_destroy), 767 GTK_OBJECT(dialog)); 768 gtk_widget_show_all(dialog); 769} 770 771 772void on_about1_activate(GtkMenuItem * menuitem, gpointer user_data) 773{ 774 GtkWidget *dialog; 775 const gchar *about_text = | 760 761 dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd), 762 GTK_DIALOG_DESTROY_WITH_PARENT, 763 GTK_MESSAGE_INFO, 764 GTK_BUTTONS_CLOSE, intro_text); 765 g_signal_connect_swapped(GTK_OBJECT(dialog), "response", 766 G_CALLBACK(gtk_widget_destroy), 767 GTK_OBJECT(dialog)); 768 gtk_widget_show_all(dialog); 769} 770 771 772void on_about1_activate(GtkMenuItem * menuitem, gpointer user_data) 773{ 774 GtkWidget *dialog; 775 const gchar *about_text = |
776 "gkc is copyright (c) 2002 Romain Lievin <roms@lpg.ticalc.org>.\n" 777 "Based on the source code from Roman Zippel.\n"; | 776 _("gkc is copyright (c) 2002 Romain Lievin <roms@lpg.ticalc.org>.\n" 777 "Based on the source code from Roman Zippel.\n"); |
778 779 dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd), 780 GTK_DIALOG_DESTROY_WITH_PARENT, 781 GTK_MESSAGE_INFO, 782 GTK_BUTTONS_CLOSE, about_text); 783 g_signal_connect_swapped(GTK_OBJECT(dialog), "response", 784 G_CALLBACK(gtk_widget_destroy), 785 GTK_OBJECT(dialog)); 786 gtk_widget_show_all(dialog); 787} 788 789 790void on_license1_activate(GtkMenuItem * menuitem, gpointer user_data) 791{ 792 GtkWidget *dialog; 793 const gchar *license_text = | 778 779 dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd), 780 GTK_DIALOG_DESTROY_WITH_PARENT, 781 GTK_MESSAGE_INFO, 782 GTK_BUTTONS_CLOSE, about_text); 783 g_signal_connect_swapped(GTK_OBJECT(dialog), "response", 784 G_CALLBACK(gtk_widget_destroy), 785 GTK_OBJECT(dialog)); 786 gtk_widget_show_all(dialog); 787} 788 789 790void on_license1_activate(GtkMenuItem * menuitem, gpointer user_data) 791{ 792 GtkWidget *dialog; 793 const gchar *license_text = |
794 "gkc is released under the terms of the GNU GPL v2.\n" 795 "For more information, please see the source code or\n" 796 "visit http://www.fsf.org/licenses/licenses.html\n"; | 794 _("gkc is released under the terms of the GNU GPL v2.\n" 795 "For more information, please see the source code or\n" 796 "visit http://www.fsf.org/licenses/licenses.html\n"); |
797 798 dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd), 799 GTK_DIALOG_DESTROY_WITH_PARENT, 800 GTK_MESSAGE_INFO, 801 GTK_BUTTONS_CLOSE, license_text); 802 g_signal_connect_swapped(GTK_OBJECT(dialog), "response", 803 G_CALLBACK(gtk_widget_destroy), 804 GTK_OBJECT(dialog)); --- 769 unchanged lines hidden (view full) --- 1574 const char *name; 1575 char *env; 1576 gchar *glade_file; 1577 1578#ifndef LKC_DIRECT_LINK 1579 kconfig_load(); 1580#endif 1581 | 797 798 dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd), 799 GTK_DIALOG_DESTROY_WITH_PARENT, 800 GTK_MESSAGE_INFO, 801 GTK_BUTTONS_CLOSE, license_text); 802 g_signal_connect_swapped(GTK_OBJECT(dialog), "response", 803 G_CALLBACK(gtk_widget_destroy), 804 GTK_OBJECT(dialog)); --- 769 unchanged lines hidden (view full) --- 1574 const char *name; 1575 char *env; 1576 gchar *glade_file; 1577 1578#ifndef LKC_DIRECT_LINK 1579 kconfig_load(); 1580#endif 1581 |
1582 bindtextdomain(PACKAGE, LOCALEDIR); 1583 bind_textdomain_codeset(PACKAGE, "UTF-8"); 1584 textdomain(PACKAGE); 1585 |
|
1582 /* GTK stuffs */ 1583 gtk_set_locale(); 1584 gtk_init(&ac, &av); 1585 glade_init(); 1586 1587 //add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); 1588 //add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps"); 1589 --- 50 unchanged lines hidden --- | 1586 /* GTK stuffs */ 1587 gtk_set_locale(); 1588 gtk_init(&ac, &av); 1589 glade_init(); 1590 1591 //add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); 1592 //add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps"); 1593 --- 50 unchanged lines hidden --- |