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
4a28aa58
Commit
4a28aa58
authored
13 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#6041: Fix instant messaging unhandled case warning
parent
82c308a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-client-gnome/src/widget/imwidget.c
+11
-6
11 additions, 6 deletions
sflphone-client-gnome/src/widget/imwidget.c
with
11 additions
and
6 deletions
sflphone-client-gnome/src/widget/imwidget.c
+
11
−
6
View file @
4a28aa58
...
...
@@ -63,12 +63,18 @@ on_frame_loading_done (GObject *gobject UNUSED, GParamSpec *pspec UNUSED, gpoint
g_free
(
im
->
first_message_from
);
im
->
first_message
=
NULL
;
im
->
first_message_from
=
NULL
;
DEBUG
(
"JavaScrip loading frame finished"
);
DEBUG
(
"
InstantMessaging:
JavaScrip loading frame finished"
);
break
;
case
WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT
:
// case WEBKIT_LOAD_FAILED: // only available in webkit-1.0-2
break
;
}
case
WEBKIT_LOAD_FAILED
:
DEBUG
(
"InstantMessaging: Webkit load failed"
);
break
;
default:
ERROR
(
"InstantMessaging: Error: Not a valid case in switch"
);
break
;
}
}
}
...
...
@@ -79,10 +85,9 @@ escape_single_quotes (const gchar *message)
gchar
**
ptr_token
;
gchar
*
string
=
""
;
DEBUG
(
"message: %s"
,
message
);
DEBUG
(
"
InstantMessaging:
message: %s"
,
message
);
if
(
(
ptr_token
=
g_strsplit
(
message
,
"'"
,
0
)))
{
DEBUG
(
"SPLITTING"
);
string
=
g_strjoinv
(
"
\\
'"
,
ptr_token
);
}
...
...
@@ -136,7 +141,7 @@ web_view_nav_requested_cb (
gchar
*
cmd
=
g_strdup_printf
(
"x-www-browser %s"
,
uri
);
if
(
system
(
cmd
)
==
-
1
)
ERROR
(
"Error executing command %s"
,
cmd
);
ERROR
(
"
InstantMessaging:
Error
:
executing command %s"
,
cmd
);
webkit_web_policy_decision_ignore
(
policy_decision
);
g_free
(
cmd
);
...
...
@@ -351,7 +356,7 @@ im_widget_display (IMWidget **im, const gchar *message, const gchar *id, const g
// *call = tmp;
/* Update the widget with some useful call information: ie the call ID */
imwidget
->
call_id
=
id
;
imwidget
->
call_id
=
(
gchar
*
)
id
;
/* Create the GtkInfoBar, used to display call information, and status of the IM widget */
im_widget_infobar
(
imwidget
);
...
...
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