month-popover: popdown when adding new event
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<property name="relief">none</property>
|
<property name="relief">none</property>
|
||||||
<property name="label" translatable="yes">New Event…</property>
|
<property name="label" translatable="yes">New Event…</property>
|
||||||
<signal name="clicked" handler="new_event_button_clicked_cb" object="GcalMonthPopover" />
|
<signal name="clicked" handler="new_event_button_clicked_cb" object="GcalMonthPopover" swapped="no" />
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#define G_LOG_DOMAIN "GcalMonthPopover"
|
#define G_LOG_DOMAIN "GcalMonthPopover"
|
||||||
|
|
||||||
|
#include "gcal-debug.h"
|
||||||
#include "gcal-event-widget.h"
|
#include "gcal-event-widget.h"
|
||||||
#include "gcal-month-popover.h"
|
#include "gcal-month-popover.h"
|
||||||
#include "gcal-utils.h"
|
#include "gcal-utils.h"
|
||||||
@@ -399,10 +400,16 @@ new_event_button_clicked_cb (GtkWidget *button,
|
|||||||
GActionMap *map;
|
GActionMap *map;
|
||||||
GAction *action;
|
GAction *action;
|
||||||
|
|
||||||
|
GCAL_ENTRY;
|
||||||
|
|
||||||
map = G_ACTION_MAP (g_application_get_default ());
|
map = G_ACTION_MAP (g_application_get_default ());
|
||||||
action = g_action_map_lookup_action (map, "new");
|
action = g_action_map_lookup_action (map, "new");
|
||||||
|
|
||||||
|
gcal_month_popover_popdown (self);
|
||||||
|
|
||||||
g_action_activate (action, NULL);
|
g_action_activate (action, NULL);
|
||||||
|
|
||||||
|
GCAL_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user