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
3eb5de5a
Commit
3eb5de5a
authored
17 years ago
by
Pierre-Luc Beaudoin
Browse files
Options
Downloads
Patches
Plain Diff
Clean up
parent
8ab1a022
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-gtk/src/calltree.c
+0
-2
0 additions, 2 deletions
sflphone-gtk/src/calltree.c
sflphone-gtk/src/mainwindow.c
+13
-18
13 additions, 18 deletions
sflphone-gtk/src/mainwindow.c
with
13 additions
and
20 deletions
sflphone-gtk/src/calltree.c
+
0
−
2
View file @
3eb5de5a
...
@@ -249,8 +249,6 @@ create_call_tree (){
...
@@ -249,8 +249,6 @@ create_call_tree (){
/* Action button */
/* Action button */
hbox
=
gtk_hbox_new
(
FALSE
,
5
);
hbox
=
gtk_hbox_new
(
FALSE
,
5
);
gtk_button_box_set_spacing
(
hbox
,
5
);
gtk_button_box_set_layout
(
GTK_BUTTON_BOX
(
hbox
),
GTK_BUTTONBOX_START
);
callButton
=
gtk_button_new
();
callButton
=
gtk_button_new
();
gtk_widget_set_state
(
GTK_WIDGET
(
callButton
),
GTK_STATE_INSENSITIVE
);
gtk_widget_set_state
(
GTK_WIDGET
(
callButton
),
GTK_STATE_INSENSITIVE
);
...
...
This diff is collapsed.
Click to expand it.
sflphone-gtk/src/mainwindow.c
+
13
−
18
View file @
3eb5de5a
...
@@ -96,7 +96,8 @@ on_key_released (GtkWidget *widget,
...
@@ -96,7 +96,8 @@ on_key_released (GtkWidget *widget,
event
->
state
&
GDK_SHIFT_MASK
||
event
->
state
&
GDK_SHIFT_MASK
||
event
->
state
&
GDK_MOD1_MASK
||
event
->
state
&
GDK_MOD1_MASK
||
event
->
keyval
==
65361
||
// left arrow
event
->
keyval
==
65361
||
// left arrow
event
->
keyval
==
65363
// right arrow
event
->
keyval
==
65363
||
// right arrow
event
->
keyval
==
32
// space
)
)
return
FALSE
;
return
FALSE
;
sflphone_keypad
(
event
->
keyval
,
event
->
string
);
sflphone_keypad
(
event
->
keyval
,
event
->
string
);
...
@@ -106,7 +107,7 @@ on_key_released (GtkWidget *widget,
...
@@ -106,7 +107,7 @@ on_key_released (GtkWidget *widget,
void
void
create_main_window
()
create_main_window
()
{
{
GtkWidget
*
button
;
GtkWidget
*
widget
;
GtkWidget
*
vbox
;
GtkWidget
*
vbox
;
window
=
gtk_window_new
(
GTK_WINDOW_TOPLEVEL
);
window
=
gtk_window_new
(
GTK_WINDOW_TOPLEVEL
);
...
@@ -119,7 +120,6 @@ create_main_window ()
...
@@ -119,7 +120,6 @@ create_main_window ()
/* Connect the destroy event of the window with our on_destroy function
/* Connect the destroy event of the window with our on_destroy function
* When the window is about to be destroyed we get a notificaiton and
* When the window is about to be destroyed we get a notificaiton and
* stop the main GTK loop
* stop the main GTK loop
* TODO: Disconnect from dbus
*/
*/
g_signal_connect
(
G_OBJECT
(
window
),
"delete-event"
,
g_signal_connect
(
G_OBJECT
(
window
),
"delete-event"
,
G_CALLBACK
(
on_delete
),
NULL
);
G_CALLBACK
(
on_delete
),
NULL
);
...
@@ -130,32 +130,27 @@ create_main_window ()
...
@@ -130,32 +130,27 @@ create_main_window ()
accelGroup
=
gtk_accel_group_new
();
accelGroup
=
gtk_accel_group_new
();
gtk_window_add_accel_group
(
GTK_WINDOW
(
window
),
accelGroup
);
gtk_window_add_accel_group
(
GTK_WINDOW
(
window
),
accelGroup
);
/* Create a new hbox with the appropriate homogeneous
* and spacing settings */
vbox
=
gtk_vbox_new
(
FALSE
/*homogeneous*/
,
0
/*spacing*/
);
vbox
=
gtk_vbox_new
(
FALSE
/*homogeneous*/
,
0
/*spacing*/
);
subvbox
=
gtk_vbox_new
(
FALSE
/*homogeneous*/
,
5
/*spacing*/
);
subvbox
=
gtk_vbox_new
(
FALSE
/*homogeneous*/
,
5
/*spacing*/
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
subvbox
),
5
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
subvbox
),
5
);
button
=
create_menus
();
widget
=
create_menus
();
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
button
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
widget
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
subvbox
,
TRUE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
subvbox
,
TRUE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
/* Call label */
button
=
create_screen
();
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
button
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
widget
=
create_screen
();
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
widget
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
create_call_tree
(),
TRUE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
create_call_tree
(),
TRUE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
button
=
create_slider
(
"speaker"
);
widget
=
create_slider
(
"speaker"
);
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
button
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
widget
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
button
=
create_slider
(
"mic"
);
widget
=
create_slider
(
"mic"
);
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
button
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
subvbox
),
widget
,
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
/* Status bar */
/* Status bar */
widget
=
gtk_statusbar_new
();
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
gtk_statusbar_new
(),
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_box_pack_start
(
GTK_BOX
(
vbox
),
gtk_statusbar_new
(),
FALSE
/*expand*/
,
TRUE
/*fill*/
,
0
/*padding*/
);
gtk_container_add
(
GTK_CONTAINER
(
window
),
vbox
);
gtk_container_add
(
GTK_CONTAINER
(
window
),
vbox
);
/* make sure that everything, window and label, are visible */
/* make sure that everything, window and label, are visible */
...
...
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