ocarina: Add a GtkEntry for filtering
This commit is contained in:
parent
8ae21bfe58
commit
1c5b230434
|
@ -1,12 +1,21 @@
|
|||
|
||||
#include <ocarina/header.h>
|
||||
#include "header.h"
|
||||
|
||||
static GtkWidget *header = NULL;
|
||||
|
||||
static void make_header()
|
||||
{
|
||||
header = gtk_label_new("Header goes here");
|
||||
gtk_widget_show(header);
|
||||
GtkWidget *sep = gtk_hseparator_new();
|
||||
GtkWidget *content = gtk_hbox_new(FALSE, 0);
|
||||
|
||||
box_pack_start(content, get_entry(), TRUE, TRUE, 0);
|
||||
|
||||
header = gtk_vbox_new(FALSE, 0);
|
||||
box_pack_start(header, content, FALSE, FALSE, 0);
|
||||
box_pack_start(header, sep, FALSE, FALSE, 0);
|
||||
|
||||
gtk_widget_show_all(header);
|
||||
}
|
||||
|
||||
GtkWidget *get_header()
|
||||
|
|
Loading…
Reference in New Issue