Better handling of smaller screen sizes

This commit is contained in:
Pierre Pronchery 2011-07-19 03:11:59 +00:00
parent fd8494e117
commit e7d37628c6
5 changed files with 95 additions and 86 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-19 04:54+0200\n"
"POT-Creation-Date: 2011-07-19 05:11+0200\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: English\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:700 ../src/browser.c:705 ../src/copy.c:674
#: ../src/copy.c:678 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1647 ../src/desktop.c:1652 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:291 ../src/properties.c:295
#: ../src/move.c:456 ../src/properties.c:300 ../src/properties.c:304
#: ../src/view.c:367 ../src/view.c:372
msgid "Error"
msgstr "Fehler"
@ -412,7 +412,7 @@ msgstr ""
msgid "Omitting directory"
msgstr ""
#: ../src/copy.c:590 ../src/properties.c:497
#: ../src/copy.c:590 ../src/properties.c:506
msgid "kB"
msgstr ""
@ -420,7 +420,7 @@ msgstr ""
msgid "0.0 kB/s"
msgstr ""
#: ../src/copy.c:615 ../src/properties.c:499
#: ../src/copy.c:615 ../src/properties.c:508
msgid "MB"
msgstr ""
@ -606,71 +606,71 @@ msgid ""
" -a\taction to call (default: \"open\")\n"
msgstr ""
#: ../src/properties.c:170
#: ../src/properties.c:176
msgid "Size:"
msgstr "Größe:"
#: ../src/properties.c:176 ../src/properties.c:224
#: ../src/properties.c:182 ../src/properties.c:230
msgid "Owner:"
msgstr ""
#: ../src/properties.c:182 ../src/properties.c:227
#: ../src/properties.c:188 ../src/properties.c:233
msgid "Group:"
msgstr "Gruppe:"
#: ../src/properties.c:188
#: ../src/properties.c:194
msgid "Accessed:"
msgstr ""
#: ../src/properties.c:194
#: ../src/properties.c:200
msgid "Modified:"
msgstr ""
#: ../src/properties.c:200
#: ../src/properties.c:206
msgid "Changed:"
msgstr ""
#: ../src/properties.c:206
#: ../src/properties.c:212
msgid "Permissions:"
msgstr ""
#: ../src/properties.c:230
#: ../src/properties.c:236
msgid "Others:"
msgstr ""
#: ../src/properties.c:408
#: ../src/properties.c:417
msgid "Unknown type"
msgstr ""
#: ../src/properties.c:427
#: ../src/properties.c:436
msgid "read"
msgstr ""
#: ../src/properties.c:431
#: ../src/properties.c:440
msgid "write"
msgstr ""
#: ../src/properties.c:435
#: ../src/properties.c:444
msgid "execute"
msgstr ""
#: ../src/properties.c:491
#: ../src/properties.c:500
msgid "bytes"
msgstr ""
#: ../src/properties.c:501
#: ../src/properties.c:510
msgid "GB"
msgstr ""
#: ../src/properties.c:505
#: ../src/properties.c:514
msgid "TB"
msgstr ""
#: ../src/properties.c:541
#: ../src/properties.c:550
msgid "Properties of "
msgstr "Eigenschaften von "
#: ../src/properties.c:627
#: ../src/properties.c:636
msgid "Usage: properties file...\n"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-19 04:54+0200\n"
"POT-Creation-Date: 2011-07-19 05:11+0200\n"
"PO-Revision-Date: 2010-03-30 01:04+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Spanish\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:700 ../src/browser.c:705 ../src/copy.c:674
#: ../src/copy.c:678 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1647 ../src/desktop.c:1652 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:291 ../src/properties.c:295
#: ../src/move.c:456 ../src/properties.c:300 ../src/properties.c:304
#: ../src/view.c:367 ../src/view.c:372
msgid "Error"
msgstr ""
@ -412,7 +412,7 @@ msgstr ""
msgid "Omitting directory"
msgstr ""
#: ../src/copy.c:590 ../src/properties.c:497
#: ../src/copy.c:590 ../src/properties.c:506
msgid "kB"
msgstr ""
@ -420,7 +420,7 @@ msgstr ""
msgid "0.0 kB/s"
msgstr ""
#: ../src/copy.c:615 ../src/properties.c:499
#: ../src/copy.c:615 ../src/properties.c:508
msgid "MB"
msgstr ""
@ -606,71 +606,71 @@ msgid ""
" -a\taction to call (default: \"open\")\n"
msgstr ""
#: ../src/properties.c:170
#: ../src/properties.c:176
msgid "Size:"
msgstr ""
#: ../src/properties.c:176 ../src/properties.c:224
#: ../src/properties.c:182 ../src/properties.c:230
msgid "Owner:"
msgstr ""
#: ../src/properties.c:182 ../src/properties.c:227
#: ../src/properties.c:188 ../src/properties.c:233
msgid "Group:"
msgstr ""
#: ../src/properties.c:188
#: ../src/properties.c:194
msgid "Accessed:"
msgstr ""
#: ../src/properties.c:194
#: ../src/properties.c:200
msgid "Modified:"
msgstr ""
#: ../src/properties.c:200
#: ../src/properties.c:206
msgid "Changed:"
msgstr ""
#: ../src/properties.c:206
#: ../src/properties.c:212
msgid "Permissions:"
msgstr ""
#: ../src/properties.c:230
#: ../src/properties.c:236
msgid "Others:"
msgstr ""
#: ../src/properties.c:408
#: ../src/properties.c:417
msgid "Unknown type"
msgstr ""
#: ../src/properties.c:427
#: ../src/properties.c:436
msgid "read"
msgstr ""
#: ../src/properties.c:431
#: ../src/properties.c:440
msgid "write"
msgstr ""
#: ../src/properties.c:435
#: ../src/properties.c:444
msgid "execute"
msgstr ""
#: ../src/properties.c:491
#: ../src/properties.c:500
msgid "bytes"
msgstr ""
#: ../src/properties.c:501
#: ../src/properties.c:510
msgid "GB"
msgstr ""
#: ../src/properties.c:505
#: ../src/properties.c:514
msgid "TB"
msgstr ""
#: ../src/properties.c:541
#: ../src/properties.c:550
msgid "Properties of "
msgstr "Propriedades con "
#: ../src/properties.c:627
#: ../src/properties.c:636
msgid "Usage: properties file...\n"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-19 04:54+0200\n"
"POT-Creation-Date: 2011-07-19 05:11+0200\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n"
@ -188,7 +188,7 @@ msgstr " Chemin : "
#: ../src/browser.c:700 ../src/browser.c:705 ../src/copy.c:674
#: ../src/copy.c:678 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1647 ../src/desktop.c:1652 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:291 ../src/properties.c:295
#: ../src/move.c:456 ../src/properties.c:300 ../src/properties.c:304
#: ../src/view.c:367 ../src/view.c:372
msgid "Error"
msgstr "Erreur"
@ -412,7 +412,7 @@ msgstr "Fichier %u sur %u"
msgid "Omitting directory"
msgstr "Omission du dossier"
#: ../src/copy.c:590 ../src/properties.c:497
#: ../src/copy.c:590 ../src/properties.c:506
msgid "kB"
msgstr "Kio"
@ -420,7 +420,7 @@ msgstr "Kio"
msgid "0.0 kB/s"
msgstr "0.0 Kio/s"
#: ../src/copy.c:615 ../src/properties.c:499
#: ../src/copy.c:615 ../src/properties.c:508
msgid "MB"
msgstr "Mio"
@ -640,71 +640,71 @@ msgstr ""
" -m\tType MIME à forcer (défaut: auto-détecté)\n"
" -a\taction à appeler (défaut: \"open\")\n"
#: ../src/properties.c:170
#: ../src/properties.c:176
msgid "Size:"
msgstr "Taille:"
#: ../src/properties.c:176 ../src/properties.c:224
#: ../src/properties.c:182 ../src/properties.c:230
msgid "Owner:"
msgstr "Propriétaire:"
#: ../src/properties.c:182 ../src/properties.c:227
#: ../src/properties.c:188 ../src/properties.c:233
msgid "Group:"
msgstr "Groupe:"
#: ../src/properties.c:188
#: ../src/properties.c:194
msgid "Accessed:"
msgstr "Accédé:"
#: ../src/properties.c:194
#: ../src/properties.c:200
msgid "Modified:"
msgstr "Modifié:"
#: ../src/properties.c:200
#: ../src/properties.c:206
msgid "Changed:"
msgstr "Changé:"
#: ../src/properties.c:206
#: ../src/properties.c:212
msgid "Permissions:"
msgstr "Permissions:"
#: ../src/properties.c:230
#: ../src/properties.c:236
msgid "Others:"
msgstr "Autres:"
#: ../src/properties.c:408
#: ../src/properties.c:417
msgid "Unknown type"
msgstr "Type de fichier inconnu"
#: ../src/properties.c:427
#: ../src/properties.c:436
msgid "read"
msgstr "lecture"
#: ../src/properties.c:431
#: ../src/properties.c:440
msgid "write"
msgstr "écriture"
#: ../src/properties.c:435
#: ../src/properties.c:444
msgid "execute"
msgstr "exécution"
#: ../src/properties.c:491
#: ../src/properties.c:500
msgid "bytes"
msgstr "octets"
#: ../src/properties.c:501
#: ../src/properties.c:510
msgid "GB"
msgstr "Gio"
#: ../src/properties.c:505
#: ../src/properties.c:514
msgid "TB"
msgstr "Tio"
#: ../src/properties.c:541
#: ../src/properties.c:550
msgid "Properties of "
msgstr "Propriétés de "
#: ../src/properties.c:627
#: ../src/properties.c:636
msgid "Usage: properties file...\n"
msgstr "Usage: properties fichier...\n"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-19 04:54+0200\n"
"POT-Creation-Date: 2011-07-19 05:11+0200\n"
"PO-Revision-Date: 2010-04-07 23:18+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Italian\n"
@ -188,7 +188,7 @@ msgstr ""
#: ../src/browser.c:700 ../src/browser.c:705 ../src/copy.c:674
#: ../src/copy.c:678 ../src/delete.c:421 ../src/delete.c:426
#: ../src/desktop.c:1647 ../src/desktop.c:1652 ../src/move.c:452
#: ../src/move.c:456 ../src/properties.c:291 ../src/properties.c:295
#: ../src/move.c:456 ../src/properties.c:300 ../src/properties.c:304
#: ../src/view.c:367 ../src/view.c:372
msgid "Error"
msgstr ""
@ -412,7 +412,7 @@ msgstr ""
msgid "Omitting directory"
msgstr ""
#: ../src/copy.c:590 ../src/properties.c:497
#: ../src/copy.c:590 ../src/properties.c:506
msgid "kB"
msgstr ""
@ -420,7 +420,7 @@ msgstr ""
msgid "0.0 kB/s"
msgstr ""
#: ../src/copy.c:615 ../src/properties.c:499
#: ../src/copy.c:615 ../src/properties.c:508
msgid "MB"
msgstr ""
@ -606,71 +606,71 @@ msgid ""
" -a\taction to call (default: \"open\")\n"
msgstr ""
#: ../src/properties.c:170
#: ../src/properties.c:176
msgid "Size:"
msgstr ""
#: ../src/properties.c:176 ../src/properties.c:224
#: ../src/properties.c:182 ../src/properties.c:230
msgid "Owner:"
msgstr ""
#: ../src/properties.c:182 ../src/properties.c:227
#: ../src/properties.c:188 ../src/properties.c:233
msgid "Group:"
msgstr ""
#: ../src/properties.c:188
#: ../src/properties.c:194
msgid "Accessed:"
msgstr ""
#: ../src/properties.c:194
#: ../src/properties.c:200
msgid "Modified:"
msgstr ""
#: ../src/properties.c:200
#: ../src/properties.c:206
msgid "Changed:"
msgstr ""
#: ../src/properties.c:206
#: ../src/properties.c:212
msgid "Permissions:"
msgstr ""
#: ../src/properties.c:230
#: ../src/properties.c:236
msgid "Others:"
msgstr ""
#: ../src/properties.c:408
#: ../src/properties.c:417
msgid "Unknown type"
msgstr ""
#: ../src/properties.c:427
#: ../src/properties.c:436
msgid "read"
msgstr ""
#: ../src/properties.c:431
#: ../src/properties.c:440
msgid "write"
msgstr ""
#: ../src/properties.c:435
#: ../src/properties.c:444
msgid "execute"
msgstr ""
#: ../src/properties.c:491
#: ../src/properties.c:500
msgid "bytes"
msgstr ""
#: ../src/properties.c:501
#: ../src/properties.c:510
msgid "GB"
msgstr ""
#: ../src/properties.c:505
#: ../src/properties.c:514
msgid "TB"
msgstr ""
#: ../src/properties.c:541
#: ../src/properties.c:550
msgid "Properties of "
msgstr ""
#: ../src/properties.c:627
#: ../src/properties.c:636
msgid "Usage: properties file...\n"
msgstr ""

View File

@ -134,6 +134,7 @@ static int _properties(Mime * mime, int filec, char * const filev[])
static Properties * _properties_new(char const * filename, Mime * mime)
{
Properties * properties;
GtkWidget * vbox;
GtkWidget * table;
GtkWidget * hbox;
GtkWidget * widget;
@ -149,7 +150,12 @@ static Properties * _properties_new(char const * filename, Mime * mime)
properties->theme = gtk_icon_theme_get_default();
properties->window = NULL;
properties->group = NULL;
properties->view = gtk_vbox_new(FALSE, 4);
properties->view = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(properties->view),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(
properties->view), GTK_SHADOW_NONE);
vbox = gtk_vbox_new(FALSE, 4);
table = gtk_table_new(12, 2, FALSE);
gtk_container_set_border_width(GTK_CONTAINER(table), 4);
gtk_table_set_row_spacings(GTK_TABLE(table), 4);
@ -233,7 +239,10 @@ static Properties * _properties_new(char const * filename, Mime * mime)
pango_font_description_free(bold);
if(filename != NULL)
_properties_set_filename(properties, filename);
gtk_box_pack_start(GTK_BOX(properties->view), table, FALSE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, TRUE, 0);
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(
properties->view), vbox);
gtk_widget_set_size_request(properties->view, 300, 300);
gtk_widget_show_all(properties->view);
return properties;
}