Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
b5e5f1cc
Commit
b5e5f1cc
authored
17 years ago
by
Pierre-Luc Beaudoin
Browse files
Options
Downloads
Patches
Plain Diff
Forgotten changes
parent
3e0b0875
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-gtk/src/calltree.c
+14
-14
14 additions, 14 deletions
sflphone-gtk/src/calltree.c
sflphone-gtk/src/sliders.c
+2
-2
2 additions, 2 deletions
sflphone-gtk/src/sliders.c
with
16 additions
and
16 deletions
sflphone-gtk/src/calltree.c
+
14
−
14
View file @
b5e5f1cc
...
...
@@ -255,7 +255,7 @@ create_call_tree (){
callButton
=
gtk_button_new
();
gtk_widget_set_state
(
GTK_WIDGET
(
callButton
),
GTK_STATE_INSENSITIVE
);
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/call.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/call.svg"
);
gtk_button_set_image
(
GTK_BUTTON
(
callButton
),
image
);
//gtk_button_set_image_position( button, GTK_POS_TOP);
gtk_box_pack_start
(
GTK_BOX
(
hbox
),
callButton
,
FALSE
/*expand*/
,
FALSE
/*fill*/
,
0
/*padding*/
);
...
...
@@ -266,14 +266,14 @@ create_call_tree (){
gtk_widget_hide
(
hangupButton
);
gtk_widget_set_state
(
GTK_WIDGET
(
hangupButton
),
GTK_STATE_INSENSITIVE
);
gtk_box_pack_start
(
GTK_BOX
(
hbox
),
hangupButton
,
FALSE
/*expand*/
,
FALSE
/*fill*/
,
0
/*padding*/
);
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/hang_up.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/hang_up.svg"
);
gtk_button_set_image
(
GTK_BUTTON
(
hangupButton
),
image
);
//gtk_button_set_image_position( button, GTK_POS_TOP);
g_signal_connect
(
G_OBJECT
(
hangupButton
),
"clicked"
,
G_CALLBACK
(
hang_up
),
NULL
);
unholdButton
=
gtk_button_new
();
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/unhold.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/unhold.svg"
);
gtk_button_set_image
(
GTK_BUTTON
(
unholdButton
),
image
);
gtk_widget_set_state
(
GTK_WIDGET
(
unholdButton
),
GTK_STATE_INSENSITIVE
);
gtk_box_pack_end
(
GTK_BOX
(
hbox
),
unholdButton
,
FALSE
/*expand*/
,
FALSE
/*fill*/
,
0
/*padding*/
);
...
...
@@ -281,7 +281,7 @@ create_call_tree (){
G_CALLBACK
(
unhold
),
NULL
);
holdButton
=
gtk_button_new
();
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/hold.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/hold.svg"
);
gtk_button_set_image
(
GTK_BUTTON
(
holdButton
),
image
);
gtk_widget_set_state
(
GTK_WIDGET
(
holdButton
),
GTK_STATE_INSENSITIVE
);
gtk_box_pack_end
(
GTK_BOX
(
hbox
),
holdButton
,
FALSE
/*expand*/
,
FALSE
/*fill*/
,
0
/*padding*/
);
...
...
@@ -289,7 +289,7 @@ create_call_tree (){
G_CALLBACK
(
hold
),
NULL
);
transfertButton
=
gtk_button_new
();
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/transfert.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/transfert.svg"
);
gtk_button_set_image
(
GTK_BUTTON
(
transfertButton
),
image
);
gtk_widget_set_state
(
GTK_WIDGET
(
transfertButton
),
GTK_STATE_INSENSITIVE
);
gtk_box_pack_end
(
GTK_BOX
(
hbox
),
transfertButton
,
FALSE
/*expand*/
,
FALSE
/*fill*/
,
0
/*padding*/
);
...
...
@@ -367,22 +367,22 @@ update_call_tree (call_t * c)
switch
(
c
->
state
)
{
case
CALL_STATE_HOLD
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/hold.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/hold.svg"
,
NULL
);
break
;
case
CALL_STATE_RINGING
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/ring.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/ring.svg"
,
NULL
);
break
;
case
CALL_STATE_CURRENT
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/current.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/current.svg"
,
NULL
);
break
;
case
CALL_STATE_DIALING
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/dial.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/dial.svg"
,
NULL
);
break
;
case
CALL_STATE_FAILURE
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/fail.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/fail.svg"
,
NULL
);
break
;
case
CALL_STATE_BUSY
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/busy.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/busy.svg"
,
NULL
);
break
;
default:
g_error
(
"Should not happen!"
);
...
...
@@ -431,13 +431,13 @@ update_call_tree_add (call_t * c)
switch
(
c
->
state
)
{
case
CALL_STATE_INCOMING
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/ring.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/ring.svg"
,
NULL
);
break
;
case
CALL_STATE_DIALING
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/dial.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/dial.svg"
,
NULL
);
break
;
case
CALL_STATE_RINGING
:
pixbuf
=
gdk_pixbuf_new_from_file
(
PIXMAP
S_DIR
"/ring.svg"
,
NULL
);
pixbuf
=
gdk_pixbuf_new_from_file
(
ICON
S_DIR
"/ring.svg"
,
NULL
);
break
;
default:
g_error
(
"Should not happen!"
);
...
...
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/sliders.c
+
2
−
2
View file @
b5e5f1cc
...
...
@@ -127,7 +127,7 @@ create_slider(const gchar * device)
{
movedConnId
=
&
speakerMovedConnId
;
toggledConnId
=
&
speakerToggledConnId
;
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/speaker.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/speaker.svg"
);
//icon_theme = gtk_icon_theme_get_default ();
//pixbuf = gtk_icon_theme_load_icon (icon_theme,
// "audio-volume-muted", /* icon name */
...
...
@@ -140,7 +140,7 @@ create_slider(const gchar * device)
{
movedConnId
=
&
micMovedConnId
;
toggledConnId
=
&
micToggledConnId
;
image
=
gtk_image_new_from_file
(
PIXMAP
S_DIR
"/mic.svg"
);
image
=
gtk_image_new_from_file
(
ICON
S_DIR
"/mic.svg"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment