/[beaver]/beaver/src/interface.c
ViewVC logotype

Diff of /beaver/src/interface.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mikix, Mon Mar 10 07:38:23 2003 UTC revision 1.3 by skypher, Sun Mar 16 19:04:03 2003 UTC
# Line 175  void menu_items_treatment (GtkWidget *Wi Line 175  void menu_items_treatment (GtkWidget *Wi
175            gtk_text_buffer_cut_clipboard (gtk_text_view_get_buffer (            gtk_text_buffer_cut_clipboard (gtk_text_view_get_buffer (
176                     GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))),                     GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))),
177                     clipboard, TRUE);                     clipboard, TRUE);
178            print_msg ("Selection cut to Clipboard...");            print_msg (_("Selection cut to clipboard."));
179          }          }
180        break;        break;
181      case COPY                 :      case COPY                 :
# Line 185  void menu_items_treatment (GtkWidget *Wi Line 185  void menu_items_treatment (GtkWidget *Wi
185            gtk_text_buffer_copy_clipboard (gtk_text_view_get_buffer (            gtk_text_buffer_copy_clipboard (gtk_text_view_get_buffer (
186                     GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))),                     GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))),
187                     clipboard);                     clipboard);
188            print_msg ("Selection copied to Clipboard...");            print_msg (_("Selection copied to clipboard."));
189          }          }
190          break;          break;
191      case PASTE                :      case PASTE                :
# Line 195  void menu_items_treatment (GtkWidget *Wi Line 195  void menu_items_treatment (GtkWidget *Wi
195            gtk_text_buffer_paste_clipboard (gtk_text_view_get_buffer (            gtk_text_buffer_paste_clipboard (gtk_text_view_get_buffer (
196                     GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))),                     GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))),
197                     clipboard, NULL, TRUE);                     clipboard, NULL, TRUE);
198            print_msg ("Text pasted from Clipboard...");            print_msg (_("Text pasted from clipboard..."));
199          }          }
200        break;        break;
201      case CLEAR                :      case CLEAR                :
# Line 203  void menu_items_treatment (GtkWidget *Wi Line 203  void menu_items_treatment (GtkWidget *Wi
203          {          {
204            gtk_text_buffer_set_text (gtk_text_view_get_buffer            gtk_text_buffer_set_text (gtk_text_view_get_buffer
205              (GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))), "", -1);              (GTK_TEXT_VIEW(FPROPS(CurrentPage, Text))), "", -1);
206            print_msg ("Buffer cleared...");            print_msg (_("Buffer cleared."));
207          }          }
208        break;        break;
209      case SELECT_ALL           :      case SELECT_ALL           :
# Line 217  void menu_items_treatment (GtkWidget *Wi Line 217  void menu_items_treatment (GtkWidget *Wi
217            gtk_text_buffer_get_bounds (Buffer, &start, &end);            gtk_text_buffer_get_bounds (Buffer, &start, &end);
218            gtk_text_buffer_place_cursor (Buffer, &start);            gtk_text_buffer_place_cursor (Buffer, &start);
219            gtk_text_buffer_move_mark_by_name (Buffer, "selection_bound", &end);            gtk_text_buffer_move_mark_by_name (Buffer, "selection_bound", &end);
220            print_msg ("All Text selected...");            print_msg (_("Selected whole text."));
221          }          }
222        break;        break;
223      case COMPLETE             :      case COMPLETE             :
# Line 244  void menu_items_treatment (GtkWidget *Wi Line 244  void menu_items_treatment (GtkWidget *Wi
244        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))
245          {          {
246            change_case (1);            change_case (1);
247            print_msg ("Selection converted to upper Case...");            print_msg (_("Selection converted to uppercase."));
248          }          }
249        break;        break;
250      case TO_LOWER             :      case TO_LOWER             :
251        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))
252          {          {
253            change_case (2);            change_case (2);
254            print_msg ("Selection converted to Lower Case...");            print_msg (_("Selection converted to lowercase."));
255          }          }
256        break;        break;
257      case CAPITALIZE           :      case CAPITALIZE           :
258        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))
259          {          {
260            change_case (3);            change_case (3);
261            print_msg ("Selection Capitalized...");            print_msg (_("Selection capitalized."));
262          }          }
263        break;        break;
264      case INVERT_CASE          :      case INVERT_CASE          :
265        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))        if ((OpenedFilesCnt) && !FPROPS(CurrentPage, ReadOnly))
266          {          {
267            change_case (4);            change_case (4);
268            print_msg ("Case inverted...");            print_msg (_("Inverted case."));
269          }          }
270        break;        break;
271      case TO_UNIX             :      case TO_UNIX             :
# Line 369  void menu_items_treatment (GtkWidget *Wi Line 369  void menu_items_treatment (GtkWidget *Wi
369                TOOLBAR_DISPLAY = FALSE;                TOOLBAR_DISPLAY = FALSE;
370                hide_toolbar ();                hide_toolbar ();
371                set_bool_conf ("General/ToolBar/Display", FALSE);                set_bool_conf ("General/ToolBar/Display", FALSE);
372                print_msg ("Hide Tool Bar...");                print_msg (_("Hid toolbar."));
373              }              }
374            else            else
375              {              {
# Line 377  void menu_items_treatment (GtkWidget *Wi Line 377  void menu_items_treatment (GtkWidget *Wi
377                show_toolbar ();                show_toolbar ();
378                set_bool_conf ("General/ToolBar/Display", TRUE);                set_bool_conf ("General/ToolBar/Display", TRUE);
379                if (!ToolBarToggleDisplay) ToolBarToggleDisplay = TRUE;                if (!ToolBarToggleDisplay) ToolBarToggleDisplay = TRUE;
380                print_msg ("Display Tool Bar...");                print_msg (_("Unhid toolbar..."));
381              }              }
382          }          }
383        break;        break;
# Line 398  void menu_items_treatment (GtkWidget *Wi Line 398  void menu_items_treatment (GtkWidget *Wi
398                show_msgbar ();                show_msgbar ();
399                set_bool_conf ("General/MsgBar/Display", TRUE);                set_bool_conf ("General/MsgBar/Display", TRUE);
400                if (!MsgBarToggleDisplay) MsgBarToggleDisplay = TRUE;                if (!MsgBarToggleDisplay) MsgBarToggleDisplay = TRUE;
401                print_msg ("Display Msg Bar...");                print_msg (_("Unhid Msg Bar..."));
402              }              }
403          }          }
404        break;        break;
# Line 415  void menu_items_treatment (GtkWidget *Wi Line 415  void menu_items_treatment (GtkWidget *Wi
415                              GTK_TEXT_VIEW(FPROPS(CurrentPage, Text)),                              GTK_TEXT_VIEW(FPROPS(CurrentPage, Text)),
416                              GTK_WRAP_NONE);                              GTK_WRAP_NONE);
417                set_bool_conf ("General/Editor/Wordwrap", FALSE);                set_bool_conf ("General/Editor/Wordwrap", FALSE);
418                print_msg ("Word-wrap disabled...");                print_msg (_("Disabled word-wrap."));
419              }              }
420            else            else
421              {              {
# Line 426  void menu_items_treatment (GtkWidget *Wi Line 426  void menu_items_treatment (GtkWidget *Wi
426                              GTK_WRAP_WORD);                              GTK_WRAP_WORD);
427                set_bool_conf ("General/Editor/Wordwrap", TRUE);                set_bool_conf ("General/Editor/Wordwrap", TRUE);
428                if (!ToggleWordwrap) ToggleWordwrap = TRUE;                if (!ToggleWordwrap) ToggleWordwrap = TRUE;
429                print_msg ("Word-wrap enabled...");                print_msg (_("Enabled word-wrap enabled."));
430              }              }
431          }          }
432        break;        break;
# Line 470  void menu_items_treatment (GtkWidget *Wi Line 470  void menu_items_treatment (GtkWidget *Wi
470        break;        break;
471      case PREFS                : display_prefs (&Settings);     break;      case PREFS                : display_prefs (&Settings);     break;
472      case HELP                 :      case HELP                 :
473        print_msg ("No help available yet...");        print_msg (_("No help available yet."));
474        break;        break;
475      case ABOUT                : about ();                      break;      case ABOUT                : about ();                      break;
476      }      }
# Line 1215  void about (void) Line 1215  void about (void)
1215                        Button, TRUE, TRUE, 0);                        Button, TRUE, TRUE, 0);
1216    gtk_widget_grab_default (Button);    gtk_widget_grab_default (Button);
1217    gtk_widget_show_all (AboutWindow);    gtk_widget_show_all (AboutWindow);
   print_msg ("Display About window...");  
1218  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26