18 std::string mapKBAccel (
const std::string &src);
21 void setFilter (GtkEntry *entry,
const std::string &validChars);
24 void replace (std::string &str,
const char *mouth,
int mouth_len,
const char *food);
28 std::string truncate (
const std::string &str,
int length,
int pos);
31 std::string escapeMarkup (
const std::string &str);
34 bool endsWith (
const std::string &str,
const std::string &suffix);
37 void scrollWidget (GtkAdjustment *vadj,
bool top);
40 int getCharsWidth (GtkWidget *widget,
int chars_nb);
41 int getCharsHeight (GtkWidget *widget,
int chars_nb);
44 void setWidgetFont (GtkWidget *widget, PangoStyle style, PangoWeight weight,
double scale);
47 void setPaneRelPosition (GtkWidget *paned, gdouble rel);
51 GdkPixbuf *loadPixbuf (
const std::string &fileneme);
54 GdkPixbuf *setOpacity (
const GdkPixbuf *src,
int opacity,
bool touchAlpha);
57 GdkPixbuf *setGray (
const GdkPixbuf *src);
60 const char *mapStockIcon (
const std::string &label);
61 const char *setStockIcon (GtkWidget *button,
const std::string &label,
62 const char *fallbackIcon);
65 gboolean empty_row_is_separator_cb (
66 GtkTreeModel *model, GtkTreeIter *iter, gpointer text_col);
69 void shrinkWidget (GtkWidget *widget);
73 char *ygutils_mapKBAccel (
const char *src);
75 void ygutils_setWidgetFont (GtkWidget *widget, PangoStyle style, PangoWeight weight,
double scale);
76 void ygutils_setPaneRelPosition (GtkWidget *paned, gdouble rel);
78 void ygutils_setFilter (GtkEntry *entry,
const char *validChars);
80 void ygutils_scrollAdj (GtkAdjustment *vadj, gboolean top);
82 const char *ygutils_mapStockIcon (
const char *label);
83 const char *ygutils_setStockIcon (GtkWidget *button,
const char *label,
84 const char *fallbackIcon);
86 GdkPixbuf *ygutils_setOpacity (
const GdkPixbuf *src,
int opacity, gboolean useAlpha);
88 gchar *ygutils_headerize_help (
const char *help_text, gboolean *cut);
91 gchar *ygutils_convert_to_xhtml (
const char *instr);