You prefer this inlined.

This commit is contained in:
Simon Gomizelj 2012-06-03 23:39:19 -04:00
parent 63293797f3
commit 90bb50597a
1 changed files with 2 additions and 7 deletions

View File

@ -18,7 +18,7 @@
#endif #endif
enum overlay_mode { enum overlay_mode {
OVERLAY_HIDDEN, OVERLAY_HIDDEN = 0,
OVERLAY_SEARCH, OVERLAY_SEARCH,
OVERLAY_RSEARCH, OVERLAY_RSEARCH,
OVERLAY_COMPLETION OVERLAY_COMPLETION
@ -337,12 +337,7 @@ int main(int argc, char **argv) {
gtk_container_add(GTK_CONTAINER(overlay), vte); gtk_container_add(GTK_CONTAINER(overlay), vte);
gtk_container_add(GTK_CONTAINER(window), overlay); gtk_container_add(GTK_CONTAINER(window), overlay);
search_panel_info info = { search_panel_info info = {vte, entry, GTK_BIN(alignment), OVERLAY_HIDDEN};
.vte = vte,
.entry = entry,
.panel = GTK_BIN(alignment),
.mode = OVERLAY_HIDDEN,
};
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
g_signal_connect(vte, "child-exited", G_CALLBACK(gtk_main_quit), NULL); g_signal_connect(vte, "child-exited", G_CALLBACK(gtk_main_quit), NULL);