Code cleanup
This commit is contained in:
parent
b06b0821e2
commit
b40ceb6b47
100
po/fr.po
100
po/fr.po
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Phone 0.0.0\n"
|
"Project-Id-Version: Phone 0.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2012-01-01 14:31+0100\n"
|
"POT-Creation-Date: 2012-01-03 09:42+0100\n"
|
||||||
"PO-Revision-Date: 2010-04-24 02:07+0200\n"
|
"PO-Revision-Date: 2010-04-24 02:07+0200\n"
|
||||||
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
|
||||||
"Language-Team: DeforaOS development (French) <devel-fr@lists.defora.org>\n"
|
"Language-Team: DeforaOS development (French) <devel-fr@lists.defora.org>\n"
|
||||||
@ -47,11 +47,11 @@ msgstr "Brouillons"
|
|||||||
msgid "Trash"
|
msgid "Trash"
|
||||||
msgstr "Corbeille"
|
msgstr "Corbeille"
|
||||||
|
|
||||||
#: ../src/phone.c:512 ../src/phone.c:2638
|
#: ../src/phone.c:512 ../src/phone.c:2631
|
||||||
msgid "System preferences"
|
msgid "System preferences"
|
||||||
msgstr "Préférences système"
|
msgstr "Préférences système"
|
||||||
|
|
||||||
#: ../src/phone.c:523 ../src/phone.c:2061
|
#: ../src/phone.c:523 ../src/phone.c:2054
|
||||||
msgid "Plug-ins"
|
msgid "Plug-ins"
|
||||||
msgstr "Greffons"
|
msgstr "Greffons"
|
||||||
|
|
||||||
@ -141,8 +141,8 @@ msgstr "Ignorer"
|
|||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr "Contacts"
|
msgstr "Contacts"
|
||||||
|
|
||||||
#: ../src/phone.c:1691 ../src/phone.c:1805 ../src/phone.c:1841
|
#: ../src/phone.c:1691 ../src/phone.c:1805 ../src/phone.c:1848
|
||||||
#: ../src/phone.c:1956 ../src/phone.c:2314
|
#: ../src/phone.c:1949 ../src/phone.c:2307
|
||||||
msgid "Call"
|
msgid "Call"
|
||||||
msgstr "Appeler"
|
msgstr "Appeler"
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ msgstr "Appeler"
|
|||||||
msgid "Write"
|
msgid "Write"
|
||||||
msgstr "Écrire"
|
msgstr "Écrire"
|
||||||
|
|
||||||
#: ../src/phone.c:1739 ../src/phone.c:2092 ../src/phone.c:2425
|
#: ../src/phone.c:1739 ../src/phone.c:2085 ../src/phone.c:2418
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr "Nom"
|
msgstr "Nom"
|
||||||
|
|
||||||
@ -162,182 +162,182 @@ msgstr "Composer"
|
|||||||
msgid "Hang up"
|
msgid "Hang up"
|
||||||
msgstr "Raccrocher"
|
msgstr "Raccrocher"
|
||||||
|
|
||||||
#: ../src/phone.c:1835
|
#: ../src/phone.c:1842
|
||||||
msgid "Phone logs"
|
msgid "Phone logs"
|
||||||
msgstr "Journal d'appels"
|
msgstr "Journal d'appels"
|
||||||
|
|
||||||
#: ../src/phone.c:1847
|
#: ../src/phone.c:1853
|
||||||
msgid "Message"
|
msgid "Message"
|
||||||
msgstr "Message"
|
msgstr "Message"
|
||||||
|
|
||||||
#: ../src/phone.c:1878
|
#: ../src/phone.c:1880
|
||||||
msgid "Direction"
|
msgid "Direction"
|
||||||
msgstr "Direction"
|
msgstr "Direction"
|
||||||
|
|
||||||
#: ../src/phone.c:1883 ../src/phone.c:2002
|
#: ../src/phone.c:1885 ../src/phone.c:1995
|
||||||
msgid "To/From"
|
msgid "To/From"
|
||||||
msgstr "Vers/De"
|
msgstr "Vers/De"
|
||||||
|
|
||||||
#: ../src/phone.c:1889 ../src/phone.c:2010
|
#: ../src/phone.c:1889 ../src/phone.c:2003
|
||||||
msgid "Date"
|
msgid "Date"
|
||||||
msgstr "Date"
|
msgstr "Date"
|
||||||
|
|
||||||
#: ../src/phone.c:1950
|
#: ../src/phone.c:1943
|
||||||
msgid "Messages"
|
msgid "Messages"
|
||||||
msgstr "Messages"
|
msgstr "Messages"
|
||||||
|
|
||||||
#: ../src/phone.c:1961
|
#: ../src/phone.c:1954
|
||||||
msgid "New message"
|
msgid "New message"
|
||||||
msgstr "Nouveau message"
|
msgstr "Nouveau message"
|
||||||
|
|
||||||
#: ../src/phone.c:1967 ../src/phone.c:2320
|
#: ../src/phone.c:1960 ../src/phone.c:2313
|
||||||
msgid "Reply"
|
msgid "Reply"
|
||||||
msgstr "Répondre"
|
msgstr "Répondre"
|
||||||
|
|
||||||
#: ../src/phone.c:2080
|
#: ../src/phone.c:2073
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr "Activé"
|
msgstr "Activé"
|
||||||
|
|
||||||
#: ../src/phone.c:2308
|
#: ../src/phone.c:2301
|
||||||
msgid "Read message"
|
msgid "Read message"
|
||||||
msgstr "Lire le message"
|
msgstr "Lire le message"
|
||||||
|
|
||||||
#: ../src/phone.c:2326
|
#: ../src/phone.c:2319
|
||||||
msgid "Forward"
|
msgid "Forward"
|
||||||
msgstr "Transmettre"
|
msgstr "Transmettre"
|
||||||
|
|
||||||
#: ../src/phone.c:2400
|
#: ../src/phone.c:2393
|
||||||
msgid "Telephony settings"
|
msgid "Telephony settings"
|
||||||
msgstr "Paramètres de téléphonie"
|
msgstr "Paramètres de téléphonie"
|
||||||
|
|
||||||
#: ../src/phone.c:2477
|
#: ../src/phone.c:2470
|
||||||
msgid "missed calls"
|
msgid "missed calls"
|
||||||
msgstr "appels manqués"
|
msgstr "appels manqués"
|
||||||
|
|
||||||
#: ../src/phone.c:2477
|
#: ../src/phone.c:2470
|
||||||
msgid "missed call"
|
msgid "missed call"
|
||||||
msgstr "appel manqué"
|
msgstr "appel manqué"
|
||||||
|
|
||||||
#: ../src/phone.c:2486
|
#: ../src/phone.c:2479
|
||||||
msgid "new messages"
|
msgid "new messages"
|
||||||
msgstr "nouveaux messages"
|
msgstr "nouveaux messages"
|
||||||
|
|
||||||
#: ../src/phone.c:2487
|
#: ../src/phone.c:2480
|
||||||
msgid "new message"
|
msgid "new message"
|
||||||
msgstr "nouveau message"
|
msgstr "nouveau message"
|
||||||
|
|
||||||
#: ../src/phone.c:2505 ../src/phone.c:3462 ../src/phone.c:3466
|
#: ../src/phone.c:2498 ../src/phone.c:3455 ../src/phone.c:3459
|
||||||
msgid "Information"
|
msgid "Information"
|
||||||
msgstr "Information"
|
msgstr "Information"
|
||||||
|
|
||||||
#: ../src/phone.c:2515
|
#: ../src/phone.c:2508
|
||||||
msgid "Status"
|
msgid "Status"
|
||||||
msgstr "État"
|
msgstr "État"
|
||||||
|
|
||||||
#: ../src/phone.c:2539
|
#: ../src/phone.c:2532
|
||||||
msgid "_View"
|
msgid "_View"
|
||||||
msgstr "_Vue"
|
msgstr "_Vue"
|
||||||
|
|
||||||
#: ../src/phone.c:2558
|
#: ../src/phone.c:2551
|
||||||
msgid "_Read"
|
msgid "_Read"
|
||||||
msgstr "_Lire"
|
msgstr "_Lire"
|
||||||
|
|
||||||
#: ../src/phone.c:2698
|
#: ../src/phone.c:2691
|
||||||
msgid "Open file..."
|
msgid "Open file..."
|
||||||
msgstr "Ouvrir fichier..."
|
msgstr "Ouvrir fichier..."
|
||||||
|
|
||||||
#: ../src/phone.c:2881
|
#: ../src/phone.c:2874
|
||||||
msgid "Write message"
|
msgid "Write message"
|
||||||
msgstr "Écrire un message"
|
msgstr "Écrire un message"
|
||||||
|
|
||||||
#: ../src/phone.c:2887
|
#: ../src/phone.c:2880
|
||||||
msgid "Send"
|
msgid "Send"
|
||||||
msgstr "Envoyer"
|
msgstr "Envoyer"
|
||||||
|
|
||||||
#: ../src/phone.c:2893
|
#: ../src/phone.c:2886
|
||||||
msgid "Attach"
|
msgid "Attach"
|
||||||
msgstr "Joindre"
|
msgstr "Joindre"
|
||||||
|
|
||||||
#: ../src/phone.c:3009
|
#: ../src/phone.c:3002
|
||||||
msgid "Attach file..."
|
msgid "Attach file..."
|
||||||
msgstr "Joindre un fichier..."
|
msgstr "Joindre un fichier..."
|
||||||
|
|
||||||
#: ../src/phone.c:3081
|
#: ../src/phone.c:3074
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d message%s, %d/%d characters"
|
msgid "%d message%s, %d/%d characters"
|
||||||
msgstr "%d message%s, %d/%d caractères"
|
msgstr "%d message%s, %d/%d caractères"
|
||||||
|
|
||||||
#: ../src/phone.c:3082
|
#: ../src/phone.c:3075
|
||||||
msgid "s"
|
msgid "s"
|
||||||
msgstr "s"
|
msgstr "s"
|
||||||
|
|
||||||
#: ../src/phone.c:3146
|
#: ../src/phone.c:3139
|
||||||
msgid "Sending message..."
|
msgid "Sending message..."
|
||||||
msgstr "Envoi du message..."
|
msgstr "Envoi du message..."
|
||||||
|
|
||||||
#: ../src/phone.c:3181
|
#: ../src/phone.c:3174
|
||||||
msgid "Outgoing"
|
msgid "Outgoing"
|
||||||
msgstr "Sortant"
|
msgstr "Sortant"
|
||||||
|
|
||||||
#: ../src/phone.c:3367
|
#: ../src/phone.c:3360
|
||||||
msgid "Operation in progress..."
|
msgid "Operation in progress..."
|
||||||
msgstr "Opération en cours..."
|
msgstr "Opération en cours..."
|
||||||
|
|
||||||
#: ../src/phone.c:3407 ../src/phone.c:3411
|
#: ../src/phone.c:3400 ../src/phone.c:3404
|
||||||
msgid "Question"
|
msgid "Question"
|
||||||
msgstr "Question"
|
msgstr "Question"
|
||||||
|
|
||||||
#: ../src/phone.c:3431 ../src/phone.c:3435
|
#: ../src/phone.c:3424 ../src/phone.c:3428
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Erreur"
|
msgstr "Erreur"
|
||||||
|
|
||||||
#: ../src/phone.c:3664
|
#: ../src/phone.c:3657
|
||||||
msgid "Name: "
|
msgid "Name: "
|
||||||
msgstr "Nom: "
|
msgstr "Nom: "
|
||||||
|
|
||||||
#: ../src/phone.c:3673
|
#: ../src/phone.c:3666
|
||||||
msgid "Number: "
|
msgid "Number: "
|
||||||
msgstr "Numéro: "
|
msgstr "Numéro: "
|
||||||
|
|
||||||
#: ../src/phone.c:3689
|
#: ../src/phone.c:3682
|
||||||
msgid "New contact"
|
msgid "New contact"
|
||||||
msgstr "Nouveau contact"
|
msgstr "Nouveau contact"
|
||||||
|
|
||||||
#: ../src/phone.c:3691
|
#: ../src/phone.c:3684
|
||||||
msgid "Edit contact: "
|
msgid "Edit contact: "
|
||||||
msgstr "Modifier contact: "
|
msgstr "Modifier contact: "
|
||||||
|
|
||||||
#: ../src/phone.c:3718
|
#: ../src/phone.c:3711
|
||||||
msgid "The name cannot be empty"
|
msgid "The name cannot be empty"
|
||||||
msgstr "Le nom ne peut être vide"
|
msgstr "Le nom ne peut être vide"
|
||||||
|
|
||||||
#: ../src/phone.c:3723
|
#: ../src/phone.c:3716
|
||||||
msgid "The number cannot be empty"
|
msgid "The number cannot be empty"
|
||||||
msgstr "Le numéro ne peut être vide"
|
msgstr "Le numéro ne peut être vide"
|
||||||
|
|
||||||
#: ../src/phone.c:3857
|
#: ../src/phone.c:3850
|
||||||
msgid "Message sent"
|
msgid "Message sent"
|
||||||
msgstr "Message envoyé"
|
msgstr "Message envoyé"
|
||||||
|
|
||||||
#: ../src/phone.c:3887
|
#: ../src/phone.c:3880
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Wrong %s"
|
msgid "Wrong %s"
|
||||||
msgstr "Mauvais %s"
|
msgstr "Mauvais %s"
|
||||||
|
|
||||||
#: ../src/phone.c:3890
|
#: ../src/phone.c:3883
|
||||||
msgid "Authentication failed"
|
msgid "Authentication failed"
|
||||||
msgstr "Échec lors de l'authentification"
|
msgstr "Échec lors de l'authentification"
|
||||||
|
|
||||||
#: ../src/phone.c:3899
|
#: ../src/phone.c:3892
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s is valid"
|
msgid "%s is valid"
|
||||||
msgstr "%s valide"
|
msgstr "%s valide"
|
||||||
|
|
||||||
#: ../src/phone.c:3962
|
#: ../src/phone.c:3955
|
||||||
msgid "Raw data (not shown)"
|
msgid "Raw data (not shown)"
|
||||||
msgstr "Données brutes (non affichées)"
|
msgstr "Données brutes (non affichées)"
|
||||||
|
|
||||||
#: ../src/phone.c:3998
|
#: ../src/phone.c:3991
|
||||||
msgid "Message deleted"
|
msgid "Message deleted"
|
||||||
msgstr "Message effacé"
|
msgstr "Message effacé"
|
||||||
|
|
||||||
|
77
src/phone.c
77
src/phone.c
@ -1814,7 +1814,19 @@ static void _show_dialer_window(Phone * phone)
|
|||||||
|
|
||||||
|
|
||||||
/* phone_show_logs */
|
/* phone_show_logs */
|
||||||
|
static void _show_logs_window(Phone * phone);
|
||||||
|
|
||||||
void phone_show_logs(Phone * phone, gboolean show)
|
void phone_show_logs(Phone * phone, gboolean show)
|
||||||
|
{
|
||||||
|
if(phone->lo_window == NULL)
|
||||||
|
_show_logs_window(phone);
|
||||||
|
if(show)
|
||||||
|
gtk_window_present(GTK_WINDOW(phone->lo_window));
|
||||||
|
else
|
||||||
|
gtk_widget_hide(phone->lo_window);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void _show_logs_window(Phone * phone)
|
||||||
{
|
{
|
||||||
GtkWidget * vbox;
|
GtkWidget * vbox;
|
||||||
GtkWidget * widget;
|
GtkWidget * widget;
|
||||||
@ -1822,39 +1834,33 @@ void phone_show_logs(Phone * phone, gboolean show)
|
|||||||
GtkCellRenderer * renderer;
|
GtkCellRenderer * renderer;
|
||||||
GtkTreeViewColumn * column;
|
GtkTreeViewColumn * column;
|
||||||
|
|
||||||
if(phone->lo_window == NULL)
|
|
||||||
{
|
|
||||||
phone->lo_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
phone->lo_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_default_size(GTK_WINDOW(phone->lo_window), 200,
|
gtk_window_set_default_size(GTK_WINDOW(phone->lo_window), 200, 300);
|
||||||
300);
|
|
||||||
#if GTK_CHECK_VERSION(2, 6, 0)
|
#if GTK_CHECK_VERSION(2, 6, 0)
|
||||||
gtk_window_set_icon_name(GTK_WINDOW(phone->lo_window),
|
gtk_window_set_icon_name(GTK_WINDOW(phone->lo_window), "logviewer");
|
||||||
"logviewer");
|
|
||||||
#endif
|
#endif
|
||||||
gtk_window_set_title(GTK_WINDOW(phone->lo_window),
|
gtk_window_set_title(GTK_WINDOW(phone->lo_window), _("Phone logs"));
|
||||||
_("Phone logs"));
|
|
||||||
g_signal_connect(phone->lo_window, "delete-event", G_CALLBACK(
|
g_signal_connect(phone->lo_window, "delete-event", G_CALLBACK(
|
||||||
on_phone_closex), NULL);
|
on_phone_closex), NULL);
|
||||||
vbox = gtk_vbox_new(FALSE, 0);
|
vbox = gtk_vbox_new(FALSE, 0);
|
||||||
/* toolbar */
|
/* toolbar */
|
||||||
widget = gtk_toolbar_new();
|
widget = gtk_toolbar_new();
|
||||||
toolitem = gtk_tool_button_new(NULL, _("Call"));
|
toolitem = gtk_tool_button_new(NULL, _("Call"));
|
||||||
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(toolitem),
|
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(toolitem), "call-start");
|
||||||
"call-start");
|
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked", G_CALLBACK(
|
||||||
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
on_phone_logs_call), phone);
|
||||||
G_CALLBACK(on_phone_logs_call), phone);
|
|
||||||
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
toolitem = gtk_tool_button_new(NULL, _("Message"));
|
toolitem = gtk_tool_button_new(NULL, _("Message"));
|
||||||
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(toolitem),
|
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(toolitem),
|
||||||
"stock_mail-compose");
|
"stock_mail-compose");
|
||||||
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked", G_CALLBACK(
|
||||||
G_CALLBACK(on_phone_logs_write), phone);
|
on_phone_logs_write), phone);
|
||||||
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
toolitem = gtk_separator_tool_item_new();
|
toolitem = gtk_separator_tool_item_new();
|
||||||
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR);
|
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_CLEAR);
|
||||||
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked", G_CALLBACK(
|
||||||
G_CALLBACK(on_phone_logs_clear), phone);
|
on_phone_logs_clear), phone);
|
||||||
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, TRUE, 0);
|
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, TRUE, 0);
|
||||||
/* FIXME make it a notebook with different log categories */
|
/* FIXME make it a notebook with different log categories */
|
||||||
@ -1866,40 +1872,27 @@ void phone_show_logs(Phone * phone, gboolean show)
|
|||||||
GTK_SHADOW_ETCHED_IN);
|
GTK_SHADOW_ETCHED_IN);
|
||||||
phone->lo_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(
|
phone->lo_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(
|
||||||
phone->lo_store));
|
phone->lo_store));
|
||||||
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(phone->lo_view),
|
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(phone->lo_view), TRUE);
|
||||||
TRUE);
|
g_signal_connect_swapped(G_OBJECT(phone->lo_view), "row-activated",
|
||||||
g_signal_connect_swapped(G_OBJECT(phone->lo_view),
|
G_CALLBACK(on_phone_logs_activated), phone);
|
||||||
"row-activated", G_CALLBACK(
|
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(phone->lo_view), TRUE);
|
||||||
on_phone_logs_activated), phone);
|
|
||||||
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(phone->lo_view),
|
|
||||||
TRUE);
|
|
||||||
renderer = gtk_cell_renderer_text_new();
|
renderer = gtk_cell_renderer_text_new();
|
||||||
column = gtk_tree_view_column_new_with_attributes(
|
column = gtk_tree_view_column_new_with_attributes(_("Direction"),
|
||||||
_("Direction"), renderer, "text",
|
renderer, "text", PHONE_LOGS_COLUMN_CALL_TYPE_DISPLAY,
|
||||||
PHONE_LOGS_COLUMN_CALL_TYPE_DISPLAY, NULL);
|
NULL);
|
||||||
gtk_tree_view_append_column(GTK_TREE_VIEW(phone->lo_view),
|
gtk_tree_view_append_column(GTK_TREE_VIEW(phone->lo_view), column);
|
||||||
column);
|
|
||||||
renderer = gtk_cell_renderer_text_new();
|
renderer = gtk_cell_renderer_text_new();
|
||||||
column = gtk_tree_view_column_new_with_attributes(_("To/From"),
|
column = gtk_tree_view_column_new_with_attributes(_("To/From"),
|
||||||
renderer, "text",
|
renderer, "text", PHONE_LOGS_COLUMN_NUMBER, NULL);
|
||||||
PHONE_LOGS_COLUMN_NUMBER, NULL);
|
gtk_tree_view_append_column(GTK_TREE_VIEW(phone->lo_view), column);
|
||||||
gtk_tree_view_append_column(GTK_TREE_VIEW(phone->lo_view),
|
|
||||||
column);
|
|
||||||
renderer = gtk_cell_renderer_text_new();
|
renderer = gtk_cell_renderer_text_new();
|
||||||
column = gtk_tree_view_column_new_with_attributes(_("Date"),
|
column = gtk_tree_view_column_new_with_attributes(_("Date"), renderer,
|
||||||
renderer, "text",
|
"text", PHONE_LOGS_COLUMN_DATE_DISPLAY, NULL);
|
||||||
PHONE_LOGS_COLUMN_DATE_DISPLAY, NULL);
|
gtk_tree_view_append_column(GTK_TREE_VIEW(phone->lo_view), column);
|
||||||
gtk_tree_view_append_column(GTK_TREE_VIEW(phone->lo_view),
|
|
||||||
column);
|
|
||||||
gtk_container_add(GTK_CONTAINER(widget), phone->lo_view);
|
gtk_container_add(GTK_CONTAINER(widget), phone->lo_view);
|
||||||
gtk_box_pack_start(GTK_BOX(vbox), widget, TRUE, TRUE, 0);
|
gtk_box_pack_start(GTK_BOX(vbox), widget, TRUE, TRUE, 0);
|
||||||
gtk_container_add(GTK_CONTAINER(phone->lo_window), vbox);
|
gtk_container_add(GTK_CONTAINER(phone->lo_window), vbox);
|
||||||
gtk_widget_show_all(vbox);
|
gtk_widget_show_all(vbox);
|
||||||
}
|
|
||||||
if(show)
|
|
||||||
gtk_window_present(GTK_WINDOW(phone->lo_window));
|
|
||||||
else
|
|
||||||
gtk_widget_hide(phone->lo_window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user