Loading lib/application.vala +6 −6 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ namespace Xnp { private void notes_path_error (string message) { var error_dialog = new Gtk.MessageDialog (null, 0, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("Notes path is unacceptable")); error_dialog.format_secondary_text (message); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); error_dialog.destroy (); Loading Loading @@ -687,7 +687,7 @@ namespace Xnp { Gtk.Box content_area = (Gtk.Box)dialog.get_content_area (); dialog.set_default_response (Gtk.ResponseType.OK); dialog.resizable = false; dialog.icon_name = "gtk-edit"; dialog.icon_name = "document-edit"; dialog.border_width = 4; var entry = new Gtk.Entry (); Loading Loading @@ -731,7 +731,7 @@ namespace Xnp { if (!window.empty) { var dialog = new Gtk.MessageDialog (window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, _("Are you sure you want to delete this group?")); dialog.icon_name = "gtk-delete"; dialog.icon_name = "edit-delete"; dialog.title = window.name; int res = dialog.run (); window.dialog_destroy (dialog); Loading Loading @@ -880,7 +880,7 @@ namespace Xnp { var error_dialog = new Gtk.MessageDialog (null, 0, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("The name \"%s\" is invalid."), name); error_dialog.format_secondary_markup (_("The invalid characters are: %s").printf ("<tt>*|/\\:\"<>?</tt>")); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); error_dialog.destroy (); Loading Loading @@ -978,7 +978,7 @@ namespace Xnp { var error_dialog = new Gtk.MessageDialog (null, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("Unable to open the settings dialog")); error_dialog.format_secondary_text ("%s", e.message); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); error_dialog.destroy (); Loading Loading @@ -1049,7 +1049,7 @@ namespace Xnp { if (new_win != null) new_win.show (); }); var image = new Gtk.Image.from_icon_name ("gtk-add", Gtk.IconSize.MENU); var image = new Gtk.Image.from_icon_name ("list-add", Gtk.IconSize.MENU); mi_add.set_image (image); menu.insert (mi_add as Gtk.Widget, -1); Loading lib/window.vala +13 −13 Original line number Diff line number Diff line Loading @@ -881,9 +881,9 @@ namespace Xnp { /* Note items */ menu_add_separator (menu); menu_add_icon_item (menu, _("_New"), "gtk-new", "new-note", action_new_note); menu_add_icon_item (menu, _("_Delete"), "gtk-delete", "delete-note", action_delete_note); menu_add_icon_item (menu, _("_Rename"), "gtk-edit", "rename-note", action_rename_note); menu_add_icon_item (menu, _("_New"), "document-new", "new-note", action_new_note); menu_add_icon_item (menu, _("_Delete"), "edit-delete", "delete-note", action_delete_note); menu_add_icon_item (menu, _("_Rename"), "document-edit", "rename-note", action_rename_note); /* Window options */ menu_add_separator (menu); Loading @@ -892,8 +892,8 @@ namespace Xnp { /* Settings/About dialog */ menu_add_separator (menu); menu_add_icon_item (menu, _("_Properties"), "gtk-properties", null, () => { action("properties"); }); menu_add_icon_item (menu, _("_About"), "gtk-about", null, () => { action("about"); }); menu_add_icon_item (menu, _("_Properties"), "document-properties", null, () => { action("properties"); }); menu_add_icon_item (menu, _("_About"), "help-about", null, () => { action("about"); }); return menu; } Loading Loading @@ -925,7 +925,7 @@ namespace Xnp { var note = get_note (p); mi = new Gtk.ImageMenuItem.with_label (note.name); if (note == current_note) { image = new Gtk.Image.from_icon_name ("gtk-go-forward", Gtk.IconSize.MENU); image = new Gtk.Image.from_icon_name ("go-next", Gtk.IconSize.MENU); ((Gtk.ImageMenuItem)mi).set_image (image); } mi.set_data ("page", p.to_pointer ()); Loading @@ -950,9 +950,9 @@ namespace Xnp { } } menu_add_icon_item (menu, _("_Rename group"), "gtk-edit", "rename-window", action_rename_window); menu_add_icon_item (menu, _("_Delete group"), "gtk-remove", "delete-window", action_delete_window); menu_add_icon_item (menu, _("_Add a new group"), "gtk-add", "new-window", action_new_window); menu_add_icon_item (menu, _("_Rename group"), "document-edit", "rename-window", action_rename_window); menu_add_icon_item (menu, _("_Delete group"), "list-remove", "delete-window", action_delete_window); menu_add_icon_item (menu, _("_Add a new group"), "list-add", "new-window", action_new_window); menu.show_all (); } Loading Loading @@ -1066,7 +1066,7 @@ namespace Xnp { public void popup_error (string message) { var error_dialog = new Gtk.MessageDialog (this, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, "%s", message); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = this.name; error_dialog.run (); dialog_destroy (error_dialog); Loading Loading @@ -1253,7 +1253,7 @@ namespace Xnp { var dialog = new Gtk.MessageDialog (this, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, _("Are you sure you want to delete this note?")); dialog.title = this.name + " - " + note.name; dialog.icon_name = "gtk-delete"; dialog.icon_name = "edit-delete"; int res = dialog.run (); dialog_destroy (dialog); if (res != Gtk.ResponseType.YES) Loading Loading @@ -1316,7 +1316,7 @@ namespace Xnp { Gtk.Box content_area = (Gtk.Box)dialog.get_content_area (); dialog.set_default_response (Gtk.ResponseType.OK); dialog.resizable = false; dialog.icon_name = "gtk-edit"; dialog.icon_name = "document-edit"; dialog.border_width = 4; content_area.border_width = 6; Loading @@ -1333,7 +1333,7 @@ namespace Xnp { if (note_name_exists (name)) { var error_dialog = new Gtk.MessageDialog (this, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("The name %s is already in use"), name); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); dialog_destroy (error_dialog); Loading src/main-settings-dialog.c +1 −1 Original line number Diff line number Diff line Loading @@ -453,7 +453,7 @@ cb_background_changed (GtkComboBox *combobox, gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (combobox)))); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_icon_name (GTK_WINDOW (dialog), "gtk-select-color"); gtk_window_set_icon_name (GTK_WINDOW (dialog), "color-select"); res = gtk_dialog_run (GTK_DIALOG (dialog)); if (res == GTK_RESPONSE_OK) Loading src/main-status-icon.vala +3 −3 Original line number Diff line number Diff line Loading @@ -71,11 +71,11 @@ static Gtk.Menu build_context_menu () { menu.insert (mi as Gtk.Widget, -1); menu_add_separator (menu); menu_add_icon_item (menu, _("_Properties"), "gtk-properties", () => { application.open_settings_dialog (); }); menu_add_icon_item (menu, _("_About"), "gtk-about", () => { application.open_about_dialog (); }); menu_add_icon_item (menu, _("_Properties"), "document-properties", () => { application.open_settings_dialog (); }); menu_add_icon_item (menu, _("_About"), "help-about", () => { application.open_about_dialog (); }); menu_add_separator (menu); menu_add_icon_item (menu, _("_Quit"), "gtk-quit", () => { menu_add_icon_item (menu, _("_Quit"), "application-exit", () => { Xfce.Autostart.@set ("xfce4-notes-autostart", "xfce4-notes", true); application.quit (); }); Loading Loading
lib/application.vala +6 −6 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ namespace Xnp { private void notes_path_error (string message) { var error_dialog = new Gtk.MessageDialog (null, 0, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("Notes path is unacceptable")); error_dialog.format_secondary_text (message); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); error_dialog.destroy (); Loading Loading @@ -687,7 +687,7 @@ namespace Xnp { Gtk.Box content_area = (Gtk.Box)dialog.get_content_area (); dialog.set_default_response (Gtk.ResponseType.OK); dialog.resizable = false; dialog.icon_name = "gtk-edit"; dialog.icon_name = "document-edit"; dialog.border_width = 4; var entry = new Gtk.Entry (); Loading Loading @@ -731,7 +731,7 @@ namespace Xnp { if (!window.empty) { var dialog = new Gtk.MessageDialog (window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, _("Are you sure you want to delete this group?")); dialog.icon_name = "gtk-delete"; dialog.icon_name = "edit-delete"; dialog.title = window.name; int res = dialog.run (); window.dialog_destroy (dialog); Loading Loading @@ -880,7 +880,7 @@ namespace Xnp { var error_dialog = new Gtk.MessageDialog (null, 0, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("The name \"%s\" is invalid."), name); error_dialog.format_secondary_markup (_("The invalid characters are: %s").printf ("<tt>*|/\\:\"<>?</tt>")); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); error_dialog.destroy (); Loading Loading @@ -978,7 +978,7 @@ namespace Xnp { var error_dialog = new Gtk.MessageDialog (null, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("Unable to open the settings dialog")); error_dialog.format_secondary_text ("%s", e.message); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); error_dialog.destroy (); Loading Loading @@ -1049,7 +1049,7 @@ namespace Xnp { if (new_win != null) new_win.show (); }); var image = new Gtk.Image.from_icon_name ("gtk-add", Gtk.IconSize.MENU); var image = new Gtk.Image.from_icon_name ("list-add", Gtk.IconSize.MENU); mi_add.set_image (image); menu.insert (mi_add as Gtk.Widget, -1); Loading
lib/window.vala +13 −13 Original line number Diff line number Diff line Loading @@ -881,9 +881,9 @@ namespace Xnp { /* Note items */ menu_add_separator (menu); menu_add_icon_item (menu, _("_New"), "gtk-new", "new-note", action_new_note); menu_add_icon_item (menu, _("_Delete"), "gtk-delete", "delete-note", action_delete_note); menu_add_icon_item (menu, _("_Rename"), "gtk-edit", "rename-note", action_rename_note); menu_add_icon_item (menu, _("_New"), "document-new", "new-note", action_new_note); menu_add_icon_item (menu, _("_Delete"), "edit-delete", "delete-note", action_delete_note); menu_add_icon_item (menu, _("_Rename"), "document-edit", "rename-note", action_rename_note); /* Window options */ menu_add_separator (menu); Loading @@ -892,8 +892,8 @@ namespace Xnp { /* Settings/About dialog */ menu_add_separator (menu); menu_add_icon_item (menu, _("_Properties"), "gtk-properties", null, () => { action("properties"); }); menu_add_icon_item (menu, _("_About"), "gtk-about", null, () => { action("about"); }); menu_add_icon_item (menu, _("_Properties"), "document-properties", null, () => { action("properties"); }); menu_add_icon_item (menu, _("_About"), "help-about", null, () => { action("about"); }); return menu; } Loading Loading @@ -925,7 +925,7 @@ namespace Xnp { var note = get_note (p); mi = new Gtk.ImageMenuItem.with_label (note.name); if (note == current_note) { image = new Gtk.Image.from_icon_name ("gtk-go-forward", Gtk.IconSize.MENU); image = new Gtk.Image.from_icon_name ("go-next", Gtk.IconSize.MENU); ((Gtk.ImageMenuItem)mi).set_image (image); } mi.set_data ("page", p.to_pointer ()); Loading @@ -950,9 +950,9 @@ namespace Xnp { } } menu_add_icon_item (menu, _("_Rename group"), "gtk-edit", "rename-window", action_rename_window); menu_add_icon_item (menu, _("_Delete group"), "gtk-remove", "delete-window", action_delete_window); menu_add_icon_item (menu, _("_Add a new group"), "gtk-add", "new-window", action_new_window); menu_add_icon_item (menu, _("_Rename group"), "document-edit", "rename-window", action_rename_window); menu_add_icon_item (menu, _("_Delete group"), "list-remove", "delete-window", action_delete_window); menu_add_icon_item (menu, _("_Add a new group"), "list-add", "new-window", action_new_window); menu.show_all (); } Loading Loading @@ -1066,7 +1066,7 @@ namespace Xnp { public void popup_error (string message) { var error_dialog = new Gtk.MessageDialog (this, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, "%s", message); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = this.name; error_dialog.run (); dialog_destroy (error_dialog); Loading Loading @@ -1253,7 +1253,7 @@ namespace Xnp { var dialog = new Gtk.MessageDialog (this, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, _("Are you sure you want to delete this note?")); dialog.title = this.name + " - " + note.name; dialog.icon_name = "gtk-delete"; dialog.icon_name = "edit-delete"; int res = dialog.run (); dialog_destroy (dialog); if (res != Gtk.ResponseType.YES) Loading Loading @@ -1316,7 +1316,7 @@ namespace Xnp { Gtk.Box content_area = (Gtk.Box)dialog.get_content_area (); dialog.set_default_response (Gtk.ResponseType.OK); dialog.resizable = false; dialog.icon_name = "gtk-edit"; dialog.icon_name = "document-edit"; dialog.border_width = 4; content_area.border_width = 6; Loading @@ -1333,7 +1333,7 @@ namespace Xnp { if (note_name_exists (name)) { var error_dialog = new Gtk.MessageDialog (this, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.ERROR, Gtk.ButtonsType.CLOSE, _("The name %s is already in use"), name); error_dialog.icon_name = "gtk-dialog-error"; error_dialog.icon_name = "dialog-error"; error_dialog.title = _("Error"); error_dialog.run (); dialog_destroy (error_dialog); Loading
src/main-settings-dialog.c +1 −1 Original line number Diff line number Diff line Loading @@ -453,7 +453,7 @@ cb_background_changed (GtkComboBox *combobox, gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (combobox)))); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_icon_name (GTK_WINDOW (dialog), "gtk-select-color"); gtk_window_set_icon_name (GTK_WINDOW (dialog), "color-select"); res = gtk_dialog_run (GTK_DIALOG (dialog)); if (res == GTK_RESPONSE_OK) Loading
src/main-status-icon.vala +3 −3 Original line number Diff line number Diff line Loading @@ -71,11 +71,11 @@ static Gtk.Menu build_context_menu () { menu.insert (mi as Gtk.Widget, -1); menu_add_separator (menu); menu_add_icon_item (menu, _("_Properties"), "gtk-properties", () => { application.open_settings_dialog (); }); menu_add_icon_item (menu, _("_About"), "gtk-about", () => { application.open_about_dialog (); }); menu_add_icon_item (menu, _("_Properties"), "document-properties", () => { application.open_settings_dialog (); }); menu_add_icon_item (menu, _("_About"), "help-about", () => { application.open_about_dialog (); }); menu_add_separator (menu); menu_add_icon_item (menu, _("_Quit"), "gtk-quit", () => { menu_add_icon_item (menu, _("_Quit"), "application-exit", () => { Xfce.Autostart.@set ("xfce4-notes-autostart", "xfce4-notes", true); application.quit (); }); Loading