Allow the "panel-huge" size to be configured

This commit is contained in:
Pierre Pronchery 2012-09-27 18:26:43 +00:00
parent f82e379e53
commit 06baf20806
2 changed files with 7 additions and 3 deletions

View File

@ -140,14 +140,16 @@ static int _usage(void)
/* main */
int main(int argc, char * argv[])
{
GtkIconSize huge;
GtkIconSize iconsize;
GtkIconSize huge;
int timeout = 3;
int o;
char * p;
gtk_init(&argc, &argv);
huge = gtk_icon_size_register("panel-huge", 64, 64);
if((huge = gtk_icon_size_from_name("panel-huge"))
== GTK_ICON_SIZE_INVALID)
huge = gtk_icon_size_register("panel-huge", 64, 64);
iconsize = huge;
while((o = getopt(argc, argv, "LlSt:Xx")) != -1)
switch(o)

View File

@ -128,7 +128,9 @@ int main(int argc, char * argv[])
int o;
gtk_init(&argc, &argv);
huge = gtk_icon_size_register("panel-huge", 64, 64);
if((huge = gtk_icon_size_from_name("panel-huge"))
== GTK_ICON_SIZE_INVALID)
huge = gtk_icon_size_register("panel-huge", 64, 64);
while((o = getopt(argc, argv, "LlSXx")) != -1)
switch(o)
{