Mercurial > geeqie.yaz
comparison src/window.c @ 1175:2518a4a73d89
Rename wmsubclass and name to role, which corresponds better to the purpose of the parameter as it ends to be passed to gtk_window_set_role().
author | zas_ |
---|---|
date | Sun, 23 Nov 2008 16:16:09 +0000 |
parents | 0bea79d87065 |
children | dfa378900ec9 |
comparison
equal
deleted
inserted
replaced
1174:0bea79d87065 | 1175:2518a4a73d89 |
---|---|
15 #include "misc.h" | 15 #include "misc.h" |
16 #include "pixbuf_util.h" | 16 #include "pixbuf_util.h" |
17 #include "ui_fileops.h" | 17 #include "ui_fileops.h" |
18 #include "ui_help.h" | 18 #include "ui_help.h" |
19 | 19 |
20 GtkWidget *window_new(GtkWindowType type, const gchar *name, const gchar *icon, | 20 GtkWidget *window_new(GtkWindowType type, const gchar *role, const gchar *icon, |
21 const gchar *icon_file, const gchar *subtitle) | 21 const gchar *icon_file, const gchar *subtitle) |
22 { | 22 { |
23 gchar *title; | 23 gchar *title; |
24 GtkWidget *window; | 24 GtkWidget *window; |
25 | 25 |
37 | 37 |
38 gtk_window_set_title(GTK_WINDOW(window), title); | 38 gtk_window_set_title(GTK_WINDOW(window), title); |
39 g_free(title); | 39 g_free(title); |
40 | 40 |
41 window_set_icon(window, icon, icon_file); | 41 window_set_icon(window, icon, icon_file); |
42 gtk_window_set_role(GTK_WINDOW(window), name); | 42 gtk_window_set_role(GTK_WINDOW(window), role); |
43 | 43 |
44 return window; | 44 return window; |
45 } | 45 } |
46 | 46 |
47 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file) | 47 void window_set_icon(GtkWidget *window, const gchar *icon, const gchar *file) |