Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated spec files for the new library version.
[doldaconnect.git]
/
clients
/
gnome-trans-applet
/
dolcon-trans-applet.c
diff --git
a/clients/gnome-trans-applet/dolcon-trans-applet.c
b/clients/gnome-trans-applet/dolcon-trans-applet.c
index
dc94932
..
6b4a6e9
100644
(file)
--- a/
clients/gnome-trans-applet/dolcon-trans-applet.c
+++ b/
clients/gnome-trans-applet/dolcon-trans-applet.c
@@
-59,7
+59,7
@@
static void cancel_transfer(BonoboUIComponent *uic, struct appletdata *data, con
static BonoboUIVerb ctxtmenuverbs[] =
{
BONOBO_UI_VERB("dca_pref", run_pref_dialog),
static BonoboUIVerb ctxtmenuverbs[] =
{
BONOBO_UI_VERB("dca_pref", run_pref_dialog),
- BONOBO_UI_VERB("dca_cancel", cancel_transfer),
+ BONOBO_UI_VERB("dca_cancel",
(void (*)(BonoboUIComponent*, gpointer, const char *))
cancel_transfer),
BONOBO_UI_VERB_END
};
BONOBO_UI_VERB_END
};
@@
-75,8
+75,10
@@
static gboolean updatetip(struct appletdata *data)
time_t now;
char buf[256];
time_t now;
char buf[256];
- if(data->curdisplay == NULL)
+ if(data->curdisplay == NULL) {
+ gtk_tooltips_set_tip(data->tips, GTK_WIDGET(data->applet), _("No transfer selected"), NULL);
return(TRUE);
return(TRUE);
+ }
now = time(NULL);
if(data->curdisplay->cmptime == 0)
{
now = time(NULL);
if(data->curdisplay->cmptime == 0)
{
@@
-124,7
+126,7
@@
static void update(struct appletdata *data)
} else {
if((data->curdisplay->pos > 0) && (data->curdisplay->size > 0))
{
} else {
if((data->curdisplay->pos > 0) && (data->curdisplay->size > 0))
{
- sprintf(buf, "%'
i/%'i", data->curdisplay->pos,
data->curdisplay->size);
+ sprintf(buf, "%'
ji/%'ji", (intmax_t)data->curdisplay->pos, (intmax_t)
data->curdisplay->size);
gtk_progress_bar_set_fraction(data->pbar, (double)data->curdisplay->pos / (double)data->curdisplay->size);
gtk_progress_bar_set_text(data->pbar, buf);
} else {
gtk_progress_bar_set_fraction(data->pbar, (double)data->curdisplay->pos / (double)data->curdisplay->size);
gtk_progress_bar_set_text(data->pbar, buf);
} else {