Fix up the stdin list dialog stuff. Updated to actually include the
2003-05-06 Glynn Foster <glynn.foster@sun.com> * src/tree.c: Fix up the stdin list dialog stuff. * NEWS: Updated to actually include the updated translations as well.
This commit is contained in:
parent
f4601c0a0c
commit
d5549deab3
@ -1,3 +1,9 @@
|
||||
2003-05-06 Glynn Foster <glynn.foster@sun.com>
|
||||
|
||||
* src/tree.c: Fix up the stdin list dialog stuff.
|
||||
* NEWS: Updated to actually include the updated
|
||||
translations as well.
|
||||
|
||||
2003-05-06 Danilo Šegan <dsegan@gmx.net>
|
||||
|
||||
* configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
|
||||
|
10
NEWS
10
NEWS
@ -19,8 +19,16 @@ Zenity 1.1
|
||||
- Duarte Loreto [pt]
|
||||
- Zbigniew Chyla [pl]
|
||||
- Evandro Fernandes Giovanini [pt_BR]
|
||||
- Alessio Frusciante [it]
|
||||
- Alessio Frusciante, Stefano Canepa [it]
|
||||
- Jordi Mallach [ca]
|
||||
- Duarte Loreto [pt]
|
||||
- Zbigniew Chyla [pl]
|
||||
- Kostas Papadimas [el]
|
||||
- Abel Cheung [zh_TW]
|
||||
- Francisco Javier Fernandez, Pablo Gonzalo del Campo [es]
|
||||
- Vincent van Adrighem [nl]
|
||||
- Ole Laursen [da]
|
||||
- Christian Rose [sv]
|
||||
|
||||
Zenity 1.0
|
||||
==========
|
||||
|
@ -3,6 +3,10 @@
|
||||
* sr.po, sr@Latn.po: Added Serbian translation by
|
||||
http://Prevod.org/.
|
||||
|
||||
2003-05-05 Glynn Foster <glynn.foster@sun.com>
|
||||
|
||||
* 1.1 version marker
|
||||
|
||||
2003-05-05 KAMAGASAKO Masatoshi <emerald@gnome.gr.jp>
|
||||
|
||||
* ja.po: Updated Japanese translation.
|
||||
@ -125,6 +129,10 @@
|
||||
|
||||
* cs.po: Added Czech translation.
|
||||
|
||||
2003-02-21 Glynn Foster <glynn.foster@sun.com>
|
||||
|
||||
* 1.0 version marker
|
||||
|
||||
2003-02-19 Vincent van Adrighem <V.vanAdrighem@dirck.mine.nu>
|
||||
|
||||
* nl.po: Dutch translation updated.
|
||||
|
13
src/tree.c
13
src/tree.c
@ -28,7 +28,7 @@
|
||||
#include "zenity.h"
|
||||
#include "util.h"
|
||||
|
||||
#define MAX_ELEMENTS_BEFORE_SCROLLING 8
|
||||
#define MAX_ELEMENTS_BEFORE_SCROLLING 5
|
||||
|
||||
static GladeXML *glade_dialog;
|
||||
static GSList *selected;
|
||||
@ -88,6 +88,7 @@ zenity_tree_handle_stdin (GIOChannel *channel,
|
||||
static gint n_columns;
|
||||
static gboolean editable;
|
||||
static gboolean toggles;
|
||||
static gboolean first_time = FALSE;
|
||||
|
||||
tree_view = GTK_TREE_VIEW (data);
|
||||
n_columns = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (tree_view), "n_columns"));
|
||||
@ -96,6 +97,11 @@ zenity_tree_handle_stdin (GIOChannel *channel,
|
||||
|
||||
model = gtk_tree_view_get_model (tree_view);
|
||||
|
||||
if (!first_time) {
|
||||
first_time = TRUE;
|
||||
gtk_list_store_append (GTK_LIST_STORE (model), &iter);
|
||||
}
|
||||
|
||||
if ((condition == G_IO_IN) || (condition == G_IO_IN + G_IO_HUP)) {
|
||||
GString *string;
|
||||
GError *error = NULL;
|
||||
@ -132,9 +138,9 @@ zenity_tree_handle_stdin (GIOChannel *channel,
|
||||
}
|
||||
|
||||
if (toggles && column_count == 0) {
|
||||
if (strcmp (string->str, "TRUE") == 0)
|
||||
if (strcmp (zenity_util_strip_newline (string->str), "TRUE") == 0)
|
||||
gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, TRUE, -1);
|
||||
else
|
||||
else
|
||||
gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, FALSE, -1);
|
||||
}
|
||||
else {
|
||||
@ -142,7 +148,6 @@ zenity_tree_handle_stdin (GIOChannel *channel,
|
||||
}
|
||||
|
||||
if (editable) {
|
||||
g_print ("Shouldn't be going here");
|
||||
gtk_list_store_set (GTK_LIST_STORE (model), &iter, n_columns, TRUE, -1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user