/[gnokii]/gnokii/xgnokii/xgnokii_speed.c
ViewVC logotype

Diff of /gnokii/xgnokii/xgnokii_speed.c

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

revision 1.17 by pkot, Sun Apr 24 20:57:37 2005 UTC revision 1.18 by ja, Wed Aug 10 07:33:43 2005 UTC
# Line 23  Line 23 
23    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24    
25    Copyright (C) 1999 Pavel Janík ml., Hugh Blemings    Copyright (C) 1999 Pavel Janík ml., Hugh Blemings
26    & Ján Derfiňák <ja@mail.upjs.sk>.    & 1999-2005 Jan Derfinak
27    Copyright (C) 2002-2003 Pawel Kot    Copyright (C) 2002-2003 Pawel Kot
28    Copyright (C) 2002      BORBELY Zoltan, Markus Plail    Copyright (C) 2002      BORBELY Zoltan, Markus Plail
29    
# Line 325  static void OkImportDialog(GtkWidget * w Line 325  static void OkImportDialog(GtkWidget * w
325          gint location;          gint location;
326          register gint i, row_i = 0;          register gint i, row_i = 0;
327    
328          fileName = gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs));          fileName = (gchar *) gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs));
329          gtk_widget_hide(GTK_WIDGET(fs));          gtk_widget_hide(GTK_WIDGET(fs));
330    
331          if ((f = fopen(fileName, "r")) == NULL) {          if ((f = fopen(fileName, "r")) == NULL) {
# Line 454  static void OkExportDialog(GtkWidget * w Line 454  static void OkExportDialog(GtkWidget * w
454          gchar err[255];          gchar err[255];
455    
456    
457          exportDialogData.fileName = gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs));          exportDialogData.fileName = (gchar *) gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs));
458          gtk_widget_hide(GTK_WIDGET(fs));          gtk_widget_hide(GTK_WIDGET(fs));
459    
460          if ((f = fopen(exportDialogData.fileName, "r")) != NULL) {          if ((f = fopen(exportDialogData.fileName, "r")) != NULL) {
461                  fclose(f);                  fclose(f);
462                  if (dialog.dialog == NULL) {                  if (dialog.dialog == NULL) {
463                          CreateYesNoDialog(&dialog, YesExportDialog, CancelDialog,                          CreateYesNoDialog(&dialog, (GtkSignalFunc) YesExportDialog, (GtkSignalFunc) CancelDialog,
464                                            GUI_SpeedDialWindow);                                            GUI_SpeedDialWindow);
465                          gtk_window_set_title(GTK_WINDOW(dialog.dialog), _("Overwrite file?"));                          gtk_window_set_title(GTK_WINDOW(dialog.dialog), _("Overwrite file?"));
466                          g_snprintf(err, 255, _("File %s already exist.\nOverwrite?"),                          g_snprintf(err, 255, _("File %s already exist.\nOverwrite?"),
# Line 567  void GUI_CreateSpeedDialWindow(void) Line 567  void GUI_CreateSpeedDialWindow(void)
567    
568          gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL);          gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL);
569    
570          gtk_accel_group_attach(accel_group, GTK_OBJECT(GUI_SpeedDialWindow));          gtk_window_add_accel_group(GTK_WINDOW(GUI_SpeedDialWindow), accel_group);
571    
572          /* Finally, return the actual menu bar created by the item factory. */          /* Finally, return the actual menu bar created by the item factory. */
573          menubar = gtk_item_factory_get_widget(item_factory, "<main>");          menubar = gtk_item_factory_get_widget(item_factory, "<main>");
# Line 582  void GUI_CreateSpeedDialWindow(void) Line 582  void GUI_CreateSpeedDialWindow(void)
582    
583          /* Create the toolbar */          /* Create the toolbar */
584    
585          toolbar = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS);          toolbar = gtk_toolbar_new();
586          gtk_toolbar_set_button_relief(GTK_TOOLBAR(toolbar), GTK_RELIEF_NORMAL);          gtk_toolbar_set_style(GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS);
587            gtk_toolbar_set_orientation(GTK_TOOLBAR(toolbar), GTK_ORIENTATION_HORIZONTAL);
588    
589          gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), NULL, _("Read from phone"), NULL,          gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), NULL, _("Read from phone"), NULL,
590                                  NewPixmap(Read_xpm, GUI_SpeedDialWindow->window,                                  NewPixmap(Read_xpm, GUI_SpeedDialWindow->window,

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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