The program is written as C, and the GUI is created by GTK +. No problem with the algorithms or what, I'm just not sure if this is one thing.
I plan to wrap some GTK features, so I can save a lot of source code lines. For instance:
GtkWidget *gtkwrap_label_markup_new(const gchar *txt) { GtkWidget *label; g_assert(txt); label = gtk_label_new(NULL); gtk_label_set_markup(GTK_LABEL(label), txt); return label; }
I use text modified by pango many times, and this cover function has saved many lines of code. This may not be bad, but what if some other programmer one day reads my code, what will be the reaction? "... gtkwrap_label_markup_new? What ?!"
I just want to know if it is in the standard to wrap these functions. I do not want to look like an idiot, and I also do not want to learn some bad habits.;)
source share