make icon an option in config.h
This commit is contained in:
parent
7d40d65adf
commit
b0abd5abd8
1
config.h
1
config.h
|
@ -6,6 +6,7 @@
|
||||||
#define URGENT_ON_BEEP
|
#define URGENT_ON_BEEP
|
||||||
#define DYNAMIC_TITLE
|
#define DYNAMIC_TITLE
|
||||||
#define CLICKABLE_URL
|
#define CLICKABLE_URL
|
||||||
|
//#define ICON_NAME "terminal"
|
||||||
|
|
||||||
#ifdef CLICKABLE_URL
|
#ifdef CLICKABLE_URL
|
||||||
static const char *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*";
|
static const char *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*";
|
||||||
|
|
|
@ -166,10 +166,13 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||||
/*gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);*/
|
/*gtk_window_set_default_size(GTK_WINDOW(window), 400, 400);*/
|
||||||
GdkPixbuf *icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "terminal", 48, 0, NULL);
|
|
||||||
|
#ifdef ICON_NAME
|
||||||
|
GdkPixbuf *icon = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), ICON_NAME, 48, 0, NULL);
|
||||||
if (icon) {
|
if (icon) {
|
||||||
gtk_window_set_icon(GTK_WINDOW(window), icon);
|
gtk_window_set_icon(GTK_WINDOW(window), icon);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
GtkWidget *vte = vte_terminal_new();
|
GtkWidget *vte = vte_terminal_new();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue