Skip to content

Instantly share code, notes, and snippets.

@tsloughter
Created May 26, 2011 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsloughter/993828 to your computer and use it in GitHub Desktop.
Save tsloughter/993828 to your computer and use it in GitHub Desktop.
/* These all just call the generic function since they're all basically the same
* anyway. Unfortunately, they can't just be macros, since we need to be able to
* create a pointer to them for callbacks. */
static gboolean goto_tab_1 (tilda_window *tw) { return goto_tab_generic (tw, 1); }
static gboolean goto_tab_2 (tilda_window *tw) { return goto_tab_generic (tw, 2); }
static gboolean goto_tab_3 (tilda_window *tw) { return goto_tab_generic (tw, 3); }
static gboolean goto_tab_4 (tilda_window *tw) { return goto_tab_generic (tw, 4); }
static gboolean goto_tab_5 (tilda_window *tw) { return goto_tab_generic (tw, 5); }
static gboolean goto_tab_6 (tilda_window *tw) { return goto_tab_generic (tw, 6); }
static gboolean goto_tab_7 (tilda_window *tw) { return goto_tab_generic (tw, 7); }
static gboolean goto_tab_8 (tilda_window *tw) { return goto_tab_generic (tw, 8); }
static gboolean goto_tab_9 (tilda_window *tw) { return goto_tab_generic (tw, 9); }
static gboolean goto_tab_10 (tilda_window *tw) { return goto_tab_generic (tw, 10); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment