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
aa8340a9
"README.md" did not exist on "aadb2a64cfc21e088b275a0b19126068222b5f1d"
Commit
aa8340a9
authored
14 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
[#3621] Update Instant messaging action
parent
50ecdddd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sflphone-client-gnome/pixmaps/Makefile.am
+2
-1
2 additions, 1 deletion
sflphone-client-gnome/pixmaps/Makefile.am
sflphone-client-gnome/src/ui.xml
+1
-0
1 addition, 0 deletions
sflphone-client-gnome/src/ui.xml
sflphone-client-gnome/src/uimanager.c
+17
-4
17 additions, 4 deletions
sflphone-client-gnome/src/uimanager.c
with
20 additions
and
5 deletions
sflphone-client-gnome/pixmaps/Makefile.am
+
2
−
1
View file @
aa8340a9
...
@@ -41,7 +41,8 @@ buttons_DATA = current.svg \
...
@@ -41,7 +41,8 @@ buttons_DATA = current.svg \
lock_error.svg
\
lock_error.svg
\
lock_off.svg
\
lock_off.svg
\
lock_unconfirmed.svg
\
lock_unconfirmed.svg
\
phone.svg
phone.svg
\
im.svg
buttonsdir
=
$(
datadir
)
/sflphone
buttonsdir
=
$(
datadir
)
/sflphone
EXTRA_DIST
=
$(
buttons_DATA
)
$(
icon_DATA
)
EXTRA_DIST
=
$(
buttons_DATA
)
$(
icon_DATA
)
This diff is collapsed.
Click to expand it.
sflphone-client-gnome/src/ui.xml
+
1
−
0
View file @
aa8340a9
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
<toolitem
name=
"OnHoldToolbar"
action=
"OnHold"
/>
<toolitem
name=
"OnHoldToolbar"
action=
"OnHold"
/>
<toolitem
name=
"OffHoldToolbar"
action=
"OffHold"
/>
<toolitem
name=
"OffHoldToolbar"
action=
"OffHold"
/>
<toolitem
name=
"TransferToolbar"
action=
"Transfer"
/>
<toolitem
name=
"TransferToolbar"
action=
"Transfer"
/>
<toolitem
name=
"InstantMessagingToolbar"
action=
"InstantMessaging"
/>
<toolitem
name=
"RecordToolbar"
action=
"Record"
/>
<toolitem
name=
"RecordToolbar"
action=
"Record"
/>
<separator/>
<separator/>
<toolitem
name=
"VoicemailToolbar"
action=
"Voicemail"
/>
<toolitem
name=
"VoicemailToolbar"
action=
"Voicemail"
/>
...
...
This diff is collapsed.
Click to expand it.
sflphone-client-gnome/src/uimanager.c
+
17
−
4
View file @
aa8340a9
...
@@ -63,6 +63,8 @@ GtkAction * recordAction;
...
@@ -63,6 +63,8 @@ GtkAction * recordAction;
GtkWidget
*
recordWidget
;
GtkWidget
*
recordWidget
;
GtkAction
*
voicemailAction
;
GtkAction
*
voicemailAction
;
GtkWidget
*
voicemailToolbar
;
GtkWidget
*
voicemailToolbar
;
GtkWidget
*
imToolbar
;
GtkAction
*
imAction
;
GtkWidget
*
editable_num
;
GtkWidget
*
editable_num
;
GtkDialog
*
edit_dialog
;
GtkDialog
*
edit_dialog
;
...
@@ -87,6 +89,7 @@ update_actions()
...
@@ -87,6 +89,7 @@ update_actions()
gtk_action_set_sensitive
(
GTK_ACTION
(
newCallAction
),
TRUE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
newCallAction
),
TRUE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
pickUpAction
),
FALSE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
pickUpAction
),
FALSE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
hangUpAction
),
FALSE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
hangUpAction
),
FALSE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
imAction
),
FALSE
);
g_object_ref
(
hangUpWidget
);
g_object_ref
(
hangUpWidget
);
g_object_ref
(
recordWidget
);
g_object_ref
(
recordWidget
);
...
@@ -96,6 +99,7 @@ update_actions()
...
@@ -96,6 +99,7 @@ update_actions()
g_object_ref
(
historyButton
);
g_object_ref
(
historyButton
);
g_object_ref
(
transferToolbar
);
g_object_ref
(
transferToolbar
);
g_object_ref
(
voicemailToolbar
);
g_object_ref
(
voicemailToolbar
);
g_object_ref
(
imToolbar
);
if
(
is_inserted
(
GTK_WIDGET
(
hangUpWidget
),
GTK_WIDGET
(
toolbar
)))
if
(
is_inserted
(
GTK_WIDGET
(
hangUpWidget
),
GTK_WIDGET
(
toolbar
)))
{
{
...
@@ -129,6 +133,12 @@ update_actions()
...
@@ -129,6 +133,12 @@ update_actions()
GTK_WIDGET
(
voicemailToolbar
));
GTK_WIDGET
(
voicemailToolbar
));
}
}
if
(
is_inserted
(
GTK_WIDGET
(
imToolbar
),
GTK_WIDGET
(
toolbar
)))
{
gtk_container_remove
(
GTK_CONTAINER
(
toolbar
),
GTK_WIDGET
(
imToolbar
));
}
gtk_widget_set_sensitive
(
GTK_WIDGET
(
holdMenu
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
holdMenu
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
holdToolbar
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
holdToolbar
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
offHoldToolbar
),
FALSE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
offHoldToolbar
),
FALSE
);
...
@@ -170,10 +180,6 @@ update_actions()
...
@@ -170,10 +180,6 @@ update_actions()
}
}
}
}
// g_signal_handler_block (GTK_OBJECT (recordWidget), recordButtonConnId);
// gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (recordWidget), FALSE);
// g_signal_handler_unblock ( GTK_OBJECT (recordWidget), recordButtonConnId);
callable_obj_t
*
selectedCall
=
calltab_get_selected_call
(
active_calltree
);
callable_obj_t
*
selectedCall
=
calltab_get_selected_call
(
active_calltree
);
conference_obj_t
*
selectedConf
=
calltab_get_selected_conf
(
active_calltree
);
conference_obj_t
*
selectedConf
=
calltab_get_selected_conf
(
active_calltree
);
...
@@ -238,12 +244,15 @@ update_actions()
...
@@ -238,12 +244,15 @@ update_actions()
gtk_widget_set_sensitive
(
GTK_WIDGET
(
holdToolbar
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
holdToolbar
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
transferToolbar
),
TRUE
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
transferToolbar
),
TRUE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
recordAction
),
TRUE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
recordAction
),
TRUE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
imAction
),
TRUE
);
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
GTK_TOOL_ITEM
(
holdToolbar
),
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
GTK_TOOL_ITEM
(
holdToolbar
),
2
);
2
);
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
GTK_TOOL_ITEM
(
transferToolbar
),
3
);
GTK_TOOL_ITEM
(
transferToolbar
),
3
);
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
GTK_TOOL_ITEM
(
recordWidget
),
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
GTK_TOOL_ITEM
(
recordWidget
),
4
);
4
);
gtk_toolbar_insert
(
GTK_TOOLBAR
(
toolbar
),
GTK_TOOL_ITEM
(
imToolbar
),
5
);
gtk_signal_handler_block
(
GTK_OBJECT
(
transferToolbar
),
transfertButtonConnId
);
gtk_signal_handler_block
(
GTK_OBJECT
(
transferToolbar
),
transfertButtonConnId
);
gtk_toggle_tool_button_set_active
(
gtk_toggle_tool_button_set_active
(
GTK_TOGGLE_TOOL_BUTTON
(
transferToolbar
),
FALSE
);
GTK_TOGGLE_TOOL_BUTTON
(
transferToolbar
),
FALSE
);
...
@@ -1513,6 +1522,7 @@ create_menus(GtkUIManager *ui_manager, GtkWidget **widget)
...
@@ -1513,6 +1522,7 @@ create_menus(GtkUIManager *ui_manager, GtkWidget **widget)
hangUpAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/CallMenu/HangUp"
);
hangUpAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/CallMenu/HangUp"
);
holdMenu
=
gtk_ui_manager_get_widget
(
ui_manager
,
"/MenuBar/CallMenu/OnHoldMenu"
);
holdMenu
=
gtk_ui_manager_get_widget
(
ui_manager
,
"/MenuBar/CallMenu/OnHoldMenu"
);
recordAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/CallMenu/Record"
);
recordAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/CallMenu/Record"
);
imAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/CallMenu/InstantMessaging"
);
copyAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/EditMenu/Copy"
);
copyAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/EditMenu/Copy"
);
pasteAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/EditMenu/Paste"
);
pasteAction
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/EditMenu/Paste"
);
volumeToggle
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/ViewMenu/VolumeControls"
);
volumeToggle
=
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/ViewMenu/VolumeControls"
);
...
@@ -1526,6 +1536,7 @@ create_menus(GtkUIManager *ui_manager, GtkWidget **widget)
...
@@ -1526,6 +1536,7 @@ create_menus(GtkUIManager *ui_manager, GtkWidget **widget)
// Disable it right now
// Disable it right now
gtk_action_set_sensitive
(
GTK_ACTION
(
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/ViewMenu/Toolbar"
)),
FALSE
);
gtk_action_set_sensitive
(
GTK_ACTION
(
gtk_ui_manager_get_action
(
ui_manager
,
"/MenuBar/ViewMenu/Toolbar"
)),
FALSE
);
/* Add the loading icon at the right of the toolbar. It is used for addressbook searches. */
waitingLayer
=
create_waiting_icon
();
waitingLayer
=
create_waiting_icon
();
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
menu_bar
),
waitingLayer
);
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
menu_bar
),
waitingLayer
);
...
@@ -1555,6 +1566,8 @@ create_toolbar_actions(GtkUIManager *ui_manager, GtkWidget **widget)
...
@@ -1555,6 +1566,8 @@ create_toolbar_actions(GtkUIManager *ui_manager, GtkWidget **widget)
"/ToolbarActions/HangUpToolbar"
);
"/ToolbarActions/HangUpToolbar"
);
recordWidget
=
gtk_ui_manager_get_widget
(
ui_manager
,
recordWidget
=
gtk_ui_manager_get_widget
(
ui_manager
,
"/ToolbarActions/RecordToolbar"
);
"/ToolbarActions/RecordToolbar"
);
imToolbar
=
gtk_ui_manager_get_widget
(
ui_manager
,
"/ToolbarActions/InstantMessagingToolbar"
);
historyButton
=
gtk_ui_manager_get_widget
(
ui_manager
,
historyButton
=
gtk_ui_manager_get_widget
(
ui_manager
,
"/ToolbarActions/HistoryToolbar"
);
"/ToolbarActions/HistoryToolbar"
);
contactButton
=
gtk_ui_manager_get_widget
(
ui_manager
,
contactButton
=
gtk_ui_manager_get_widget
(
ui_manager
,
...
...
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