~mdoyen/homebank/5.2.x

« back to all changes in this revision

Viewing changes to src/ui-widgets.c

  • Committer: Maxime Doyen
  • Date: 2019-07-29 20:34:22 UTC
  • Revision ID: homebank@free.fr-20190729203422-hy3g4szjv3dbzmxu
5.2.7 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
}
188
188
 
189
189
 
190
 
void ui_gtk_entry_tag_name_append(GtkEntry *entry, gchar *tagname)
 
190
void hbtk_entry_tag_name_append(GtkEntry *entry, gchar *tagname)
191
191
{
192
192
GtkEntryBuffer *buffer;
193
193
const gchar *text;
196
196
        text = gtk_entry_get_text(entry);
197
197
        if( g_strstr_len(text, -1, tagname) == NULL )
198
198
        {
199
 
                DB( g_print(" gtkentry append tagname '%'\n", tagname) );
 
199
                DB( g_print(" gtkentry append tagname '%s'\n", tagname) );
200
200
                buffer = gtk_entry_get_buffer(GTK_ENTRY(entry));
201
201
                if(buffer)
202
202
                {
576
576
}
577
577
 
578
578
 
 
579
GtkWidget *
 
580
create_popover (GtkWidget       *parent,
 
581
                GtkWidget       *child,
 
582
                GtkPositionType  pos)
 
583
{
 
584
GtkWidget *popover;
 
585
 
 
586
        popover = gtk_popover_new (parent);
 
587
        gtk_popover_set_position (GTK_POPOVER (popover), pos);
 
588
        gtk_container_add (GTK_CONTAINER (popover), child);
 
589
        gtk_widget_show (child);
 
590
 
 
591
        gtk_widget_set_margin_start (child, SPACING_POPOVER);
 
592
        gtk_widget_set_margin_end (child, SPACING_POPOVER);
 
593
        gtk_widget_set_margin_top (child, SPACING_POPOVER);
 
594
        gtk_widget_set_margin_bottom (child, SPACING_POPOVER);
 
595
 
 
596
        return popover;
 
597
}
 
598
 
 
599
 
579
600
/* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
580
601
 
581
602