|
@@ -79,13 +79,13 @@ on_note_selected (IridiumWindow *self, IridiumNoteRow *row, gpointer user_data)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
static void
|
|
|
-iridium_window_search_activated (GAction *action, GVariant *param, IridiumWindow *self)
|
|
|
|
|
|
|
+search_activated (GAction *action, GVariant *param, IridiumWindow *self)
|
|
|
{
|
|
{
|
|
|
gtk_search_bar_set_search_mode (self->search_bar, !gtk_search_bar_get_search_mode (self->search_bar));
|
|
gtk_search_bar_set_search_mode (self->search_bar, !gtk_search_bar_get_search_mode (self->search_bar));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
static gboolean
|
|
|
-iridium_window_note_visible (IridiumNoteRow *row, IridiumWindow *window)
|
|
|
|
|
|
|
+note_visible (IridiumNoteRow *row, IridiumWindow *window)
|
|
|
{
|
|
{
|
|
|
IridiumNote *note;
|
|
IridiumNote *note;
|
|
|
IridiumTagRow *tag_row;
|
|
IridiumTagRow *tag_row;
|
|
@@ -163,7 +163,7 @@ iridium_window_init (IridiumWindow *self)
|
|
|
|
|
|
|
|
action = g_simple_action_new ("search", NULL);
|
|
action = g_simple_action_new ("search", NULL);
|
|
|
g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
|
|
g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
|
|
|
- g_signal_connect (action, "activate", G_CALLBACK (iridium_window_search_activated), self);
|
|
|
|
|
|
|
+ g_signal_connect (action, "activate", G_CALLBACK (search_activated), self);
|
|
|
g_object_unref (action);
|
|
g_object_unref (action);
|
|
|
|
|
|
|
|
gtk_search_bar_connect_entry (self->search_bar, GTK_ENTRY (self->search_entry));
|
|
gtk_search_bar_connect_entry (self->search_bar, GTK_ENTRY (self->search_entry));
|
|
@@ -193,7 +193,7 @@ iridium_window_init (IridiumWindow *self)
|
|
|
gtk_list_box_insert (self->tag_list, iridium_tag_row_new (tags[0]), -1);
|
|
gtk_list_box_insert (self->tag_list, iridium_tag_row_new (tags[0]), -1);
|
|
|
gtk_list_box_insert (self->tag_list, iridium_tag_row_new (tags[1]), -1);
|
|
gtk_list_box_insert (self->tag_list, iridium_tag_row_new (tags[1]), -1);
|
|
|
|
|
|
|
|
- gtk_list_box_set_filter_func (self->note_list, (GtkListBoxFilterFunc) iridium_window_note_visible, self, NULL);
|
|
|
|
|
|
|
+ gtk_list_box_set_filter_func (self->note_list, (GtkListBoxFilterFunc) note_visible, self, NULL);
|
|
|
|
|
|
|
|
gtk_widget_show_all (GTK_WIDGET (self->tag_list));
|
|
gtk_widget_show_all (GTK_WIDGET (self->tag_list));
|
|
|
gtk_widget_show_all (GTK_WIDGET (self->note_list));
|
|
gtk_widget_show_all (GTK_WIDGET (self->note_list));
|