Fixed access to uninitialized widget
This commit is contained in:
parent
5fd8dec78b
commit
ac7d81029c
26
po/de.po
26
po/de.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Browser 0.1.4\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-07-22 01:30+0200\n"
|
||||
"POT-Creation-Date: 2011-07-24 17:10+0200\n"
|
||||
"PO-Revision-Date: 2010-03-29 23:28+0200\n"
|
||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||
"Language-Team: English\n"
|
||||
|
@ -618,43 +618,43 @@ msgid ""
|
|||
" -a\taction to call (default: \"open\")\n"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:180
|
||||
#: ../src/properties.c:181
|
||||
msgid "Size:"
|
||||
msgstr "Größe:"
|
||||
|
||||
#: ../src/properties.c:186 ../src/properties.c:242
|
||||
#: ../src/properties.c:187 ../src/properties.c:243
|
||||
msgid "Owner:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:192 ../src/properties.c:245
|
||||
#: ../src/properties.c:193 ../src/properties.c:246
|
||||
msgid "Group:"
|
||||
msgstr "Gruppe:"
|
||||
|
||||
#: ../src/properties.c:198
|
||||
#: ../src/properties.c:199
|
||||
msgid "Accessed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:204
|
||||
#: ../src/properties.c:205
|
||||
msgid "Modified:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:210
|
||||
#: ../src/properties.c:211
|
||||
msgid "Changed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:217
|
||||
#: ../src/properties.c:218
|
||||
msgid "Read:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:220
|
||||
#: ../src/properties.c:221
|
||||
msgid "Write:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:223
|
||||
#: ../src/properties.c:224
|
||||
msgid "Execute:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:248
|
||||
#: ../src/properties.c:249
|
||||
msgid "Others:"
|
||||
msgstr ""
|
||||
|
||||
|
@ -662,11 +662,11 @@ msgstr ""
|
|||
msgid "Unknown type"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:601
|
||||
#: ../src/properties.c:602
|
||||
msgid "Properties of "
|
||||
msgstr "Eigenschaften von "
|
||||
|
||||
#: ../src/properties.c:687
|
||||
#: ../src/properties.c:688
|
||||
msgid "Usage: properties file...\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
26
po/es.po
26
po/es.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Browser 0.1.4\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-07-22 01:30+0200\n"
|
||||
"POT-Creation-Date: 2011-07-24 17:10+0200\n"
|
||||
"PO-Revision-Date: 2010-03-30 01:04+0200\n"
|
||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||
"Language-Team: Spanish\n"
|
||||
|
@ -618,43 +618,43 @@ msgid ""
|
|||
" -a\taction to call (default: \"open\")\n"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:180
|
||||
#: ../src/properties.c:181
|
||||
msgid "Size:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:186 ../src/properties.c:242
|
||||
#: ../src/properties.c:187 ../src/properties.c:243
|
||||
msgid "Owner:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:192 ../src/properties.c:245
|
||||
#: ../src/properties.c:193 ../src/properties.c:246
|
||||
msgid "Group:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:198
|
||||
#: ../src/properties.c:199
|
||||
msgid "Accessed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:204
|
||||
#: ../src/properties.c:205
|
||||
msgid "Modified:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:210
|
||||
#: ../src/properties.c:211
|
||||
msgid "Changed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:217
|
||||
#: ../src/properties.c:218
|
||||
msgid "Read:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:220
|
||||
#: ../src/properties.c:221
|
||||
msgid "Write:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:223
|
||||
#: ../src/properties.c:224
|
||||
msgid "Execute:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:248
|
||||
#: ../src/properties.c:249
|
||||
msgid "Others:"
|
||||
msgstr ""
|
||||
|
||||
|
@ -662,11 +662,11 @@ msgstr ""
|
|||
msgid "Unknown type"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:601
|
||||
#: ../src/properties.c:602
|
||||
msgid "Properties of "
|
||||
msgstr "Propriedades con "
|
||||
|
||||
#: ../src/properties.c:687
|
||||
#: ../src/properties.c:688
|
||||
msgid "Usage: properties file...\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
26
po/fr.po
26
po/fr.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Browser 0.1.4\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-07-22 01:30+0200\n"
|
||||
"POT-Creation-Date: 2011-07-24 17:10+0200\n"
|
||||
"PO-Revision-Date: 2010-03-29 23:28+0200\n"
|
||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||
"Language-Team: French\n"
|
||||
|
@ -652,43 +652,43 @@ msgstr ""
|
|||
" -m\tType MIME à forcer (défaut: auto-détecté)\n"
|
||||
" -a\taction à appeler (défaut: \"open\")\n"
|
||||
|
||||
#: ../src/properties.c:180
|
||||
#: ../src/properties.c:181
|
||||
msgid "Size:"
|
||||
msgstr "Taille:"
|
||||
|
||||
#: ../src/properties.c:186 ../src/properties.c:242
|
||||
#: ../src/properties.c:187 ../src/properties.c:243
|
||||
msgid "Owner:"
|
||||
msgstr "Propriétaire:"
|
||||
|
||||
#: ../src/properties.c:192 ../src/properties.c:245
|
||||
#: ../src/properties.c:193 ../src/properties.c:246
|
||||
msgid "Group:"
|
||||
msgstr "Groupe:"
|
||||
|
||||
#: ../src/properties.c:198
|
||||
#: ../src/properties.c:199
|
||||
msgid "Accessed:"
|
||||
msgstr "Accédé:"
|
||||
|
||||
#: ../src/properties.c:204
|
||||
#: ../src/properties.c:205
|
||||
msgid "Modified:"
|
||||
msgstr "Modifié:"
|
||||
|
||||
#: ../src/properties.c:210
|
||||
#: ../src/properties.c:211
|
||||
msgid "Changed:"
|
||||
msgstr "Changé:"
|
||||
|
||||
#: ../src/properties.c:217
|
||||
#: ../src/properties.c:218
|
||||
msgid "Read:"
|
||||
msgstr "Lecture :"
|
||||
|
||||
#: ../src/properties.c:220
|
||||
#: ../src/properties.c:221
|
||||
msgid "Write:"
|
||||
msgstr "Écriture :"
|
||||
|
||||
#: ../src/properties.c:223
|
||||
#: ../src/properties.c:224
|
||||
msgid "Execute:"
|
||||
msgstr "Exécution :"
|
||||
|
||||
#: ../src/properties.c:248
|
||||
#: ../src/properties.c:249
|
||||
msgid "Others:"
|
||||
msgstr "Autres:"
|
||||
|
||||
|
@ -696,11 +696,11 @@ msgstr "Autres:"
|
|||
msgid "Unknown type"
|
||||
msgstr "Type de fichier inconnu"
|
||||
|
||||
#: ../src/properties.c:601
|
||||
#: ../src/properties.c:602
|
||||
msgid "Properties of "
|
||||
msgstr "Propriétés de "
|
||||
|
||||
#: ../src/properties.c:687
|
||||
#: ../src/properties.c:688
|
||||
msgid "Usage: properties file...\n"
|
||||
msgstr "Usage: properties fichier...\n"
|
||||
|
||||
|
|
26
po/it.po
26
po/it.po
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Browser 0.1.4\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-07-22 01:30+0200\n"
|
||||
"POT-Creation-Date: 2011-07-24 17:10+0200\n"
|
||||
"PO-Revision-Date: 2010-04-07 23:18+0200\n"
|
||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||
"Language-Team: Italian\n"
|
||||
|
@ -618,43 +618,43 @@ msgid ""
|
|||
" -a\taction to call (default: \"open\")\n"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:180
|
||||
#: ../src/properties.c:181
|
||||
msgid "Size:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:186 ../src/properties.c:242
|
||||
#: ../src/properties.c:187 ../src/properties.c:243
|
||||
msgid "Owner:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:192 ../src/properties.c:245
|
||||
#: ../src/properties.c:193 ../src/properties.c:246
|
||||
msgid "Group:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:198
|
||||
#: ../src/properties.c:199
|
||||
msgid "Accessed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:204
|
||||
#: ../src/properties.c:205
|
||||
msgid "Modified:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:210
|
||||
#: ../src/properties.c:211
|
||||
msgid "Changed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:217
|
||||
#: ../src/properties.c:218
|
||||
msgid "Read:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:220
|
||||
#: ../src/properties.c:221
|
||||
msgid "Write:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:223
|
||||
#: ../src/properties.c:224
|
||||
msgid "Execute:"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:248
|
||||
#: ../src/properties.c:249
|
||||
msgid "Others:"
|
||||
msgstr ""
|
||||
|
||||
|
@ -662,11 +662,11 @@ msgstr ""
|
|||
msgid "Unknown type"
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:601
|
||||
#: ../src/properties.c:602
|
||||
msgid "Properties of "
|
||||
msgstr ""
|
||||
|
||||
#: ../src/properties.c:687
|
||||
#: ../src/properties.c:688
|
||||
msgid "Usage: properties file...\n"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -154,6 +154,7 @@ static Properties * _properties_new(char const * filename, Mime * mime)
|
|||
properties->theme = gtk_icon_theme_get_default();
|
||||
properties->window = NULL;
|
||||
properties->group = NULL;
|
||||
properties->apply = NULL;
|
||||
properties->view = gtk_scrolled_window_new(NULL, NULL);
|
||||
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(properties->view),
|
||||
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
|
||||
|
@ -261,10 +262,9 @@ static Properties * _properties_new(char const * filename, Mime * mime)
|
|||
_properties_on_refresh), properties);
|
||||
gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
|
||||
properties->apply = gtk_button_new_from_stock(GTK_STOCK_APPLY);
|
||||
widget = properties->apply;
|
||||
g_signal_connect_swapped(G_OBJECT(widget), "clicked", G_CALLBACK(
|
||||
_properties_on_apply), properties);
|
||||
gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 0);
|
||||
g_signal_connect_swapped(G_OBJECT(properties->apply), "clicked",
|
||||
G_CALLBACK(_properties_on_apply), properties);
|
||||
gtk_box_pack_start(GTK_BOX(hbox), properties->apply, FALSE, TRUE, 0);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);
|
||||
#endif
|
||||
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(
|
||||
|
@ -577,7 +577,8 @@ static void _refresh_time(GtkWidget * widget, time_t t)
|
|||
|
||||
static void _refresh_apply(GtkWidget * widget, gboolean sensitive)
|
||||
{
|
||||
gtk_widget_set_sensitive(widget, sensitive);
|
||||
if(widget != NULL)
|
||||
gtk_widget_set_sensitive(widget, sensitive);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user