Skip to content

Commit

Permalink
fix #1514
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Jan 18, 2025
1 parent 3fc97ee commit e2663ed
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
30 changes: 23 additions & 7 deletions core/Widgets/DateTimePicker/DateTimePicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,30 @@ public class Widgets.DateTimePicker.DateTimePicker : Gtk.Popover {
var back_item = new Widgets.ContextMenu.MenuItem (_("Back"), "go-previous-symbolic");
back_item.autohide_popover = false;

var none_item = new Widgets.ContextMenu.MenuItem (_("None"));
var daily_item = new Widgets.ContextMenu.MenuItem (_("Daily"));
var weekly_item = new Widgets.ContextMenu.MenuItem (_("Weekly"));
var monthly_item = new Widgets.ContextMenu.MenuItem (_("Monthly"));
var yearly_item = new Widgets.ContextMenu.MenuItem (_("Yearly"));
var custom_item = new Widgets.ContextMenu.MenuItem (_("Custom"));
var none_item = new Widgets.ContextMenu.MenuItem (_("None")) {
autohide_popover = false
};

var daily_item = new Widgets.ContextMenu.MenuItem (_("Daily")) {
autohide_popover = false
};

var weekly_item = new Widgets.ContextMenu.MenuItem (_("Weekly")) {
autohide_popover = false
};

var monthly_item = new Widgets.ContextMenu.MenuItem (_("Monthly")) {
autohide_popover = false
};

var yearly_item = new Widgets.ContextMenu.MenuItem (_("Yearly")) {
autohide_popover = false
};

var custom_item = new Widgets.ContextMenu.MenuItem (_("Custom")) {
autohide_popover = false
};
custom_item.arrow = true;
custom_item.autohide_popover = false;

var menu_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
menu_box.margin_top = menu_box.margin_bottom = 3;
Expand Down
1 change: 1 addition & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ nl
hi
bg
ko
sk_SK

0 comments on commit e2663ed

Please sign in to comment.