Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
dc9dca23
Commit
dc9dca23
authored
Mar 25, 2008
by
Emmanuel Milou
Browse files
Remove the progress bar
parent
20473a55
Changes
4
Hide whitespace changes
Inline
Side-by-side
sflphone-gtk/src/Makefile.am
View file @
dc9dca23
...
...
@@ -8,7 +8,6 @@ sflphone_gtk_SOURCES = \
mainwindow.c
\
calllist.c
\
dialpad.c
\
quit.c
\
menus.c
\
calltree.c
\
screen.c
\
...
...
@@ -25,7 +24,7 @@ sflphone_gtk_SOURCES = \
noinst_HEADERS
=
actions.h dbus.h mainwindow.h calllist.h dialpad.h codeclist.h
\
callmanager-glue.h configurationmanager-glue.h instance-glue.h menus.h calltree.h screen.h configwindow.h
\
accountlist.h accountwindow.h marshaller.h sliders.h statusicon.h
quit.h
accountlist.h accountwindow.h marshaller.h sliders.h statusicon.h
EXTRA_DIST
=
marshaller.list
sflphone_gtk_LDADD
=
$(DEPS_LIBS)
...
...
sflphone-gtk/src/actions.c
View file @
dc9dca23
...
...
@@ -70,7 +70,6 @@ sflphone_quit ()
dbus_clean
();
//call_list_clean(); TODO
//account_list_clean()
//display_progress_bar();
gtk_main_quit
();
}
return
quit
;
...
...
sflphone-gtk/src/quit.c
deleted
100644 → 0
View file @
20473a55
/*
* Copyright (C) 2008 Savoir-Faire Linux inc.
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include
"quit.h"
#define ITERATIONS 1700
void
update_progress_bar
(
GtkWidget
*
bar
)
{
gint
i
;
//gtk_grab_add( bar );
for
(
i
=
0
;
i
<
ITERATIONS
;
i
++
)
{
usleep
(
5000
);
if
(
i
>
700
&&
i
<
1000
)
gtk_progress_bar_set_text
(
(
GtkProgressBar
*
)
bar
,
"Saving configuration...."
);
if
(
i
>
1000
&&
i
<
1300
)
gtk_progress_bar_set_text
(
(
GtkProgressBar
*
)
bar
,
"Unload DTMF key"
);
if
(
i
>
1300
&&
i
<
1500
)
gtk_progress_bar_set_text
(
(
GtkProgressBar
*
)
bar
,
"Unload audio driver"
);
if
(
i
>
1500
)
gtk_progress_bar_set_text
(
(
GtkProgressBar
*
)
bar
,
"Unload audio codecs"
);
gtk_progress_bar_set_pulse_step
(
(
GtkProgressBar
*
)
bar
,
0
.
01
);
gtk_progress_bar_pulse
(
(
GtkProgressBar
*
)
bar
);
gtk_main_iteration
();
}
//gtk_grab_remove( bar );
}
GtkWidget
*
display_progress_bar
(
void
)
{
GtkWidget
*
top
;
GtkWidget
*
progressBar
;
GtkWidget
*
vbox
;
top
=
gtk_window_new
(
GTK_WINDOW_TOPLEVEL
);
//gtk_window_set_default_size( GTK_WINDOW( top ), 260, 20);
gtk_widget_set_size_request
(
top
,
250
,
20
);
gtk_window_set_policy
(
GTK_WINDOW
(
top
),
FALSE
,
FALSE
,
FALSE
);
gtk_window_set_position
(
GTK_WINDOW
(
top
)
,
GTK_WIN_POS_CENTER_ALWAYS
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
top
),
0
);
gtk_window_set_deletable
(
GTK_WINDOW
(
top
)
,
FALSE
);
vbox
=
gtk_vbox_new
(
TRUE
,
0
);
gtk_container_add
(
GTK_CONTAINER
(
top
),
vbox
);
progressBar
=
gtk_progress_bar_new
();
gtk_progress_bar_set_text
(
(
GtkProgressBar
*
)
progressBar
,
"Quiting...."
);
gtk_box_pack_start
(
GTK_BOX
(
vbox
)
,
progressBar
,
TRUE
,
TRUE
,
0
);
gtk_widget_show_all
(
top
);
update_progress_bar
(
progressBar
);
}
sflphone-gtk/src/quit.h
deleted
100644 → 0
View file @
20473a55
/*
* Copyright (C) 2008 Savoir-Faire Linux inc.
* Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __QUIT_H__
#define __QUIT_H__
#include
<gtk/gtk.h>
/** @file quit.h
* @brief Display a progress bar when quiting.
*/
GtkWidget
*
display_progress_bar
();
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment