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
67430e52
Commit
67430e52
authored
Jul 19, 2012
by
Emmanuel Lepage Vallee
Browse files
[ #13691 ] Fix notebook
parent
ef82b39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
gnome/src/messaging/message_tab.c
View file @
67430e52
...
...
@@ -281,6 +281,8 @@ disable_messaging_tab(const gchar * id)
tab
=
g_hash_table_lookup
(
tabs
,
id
);
if
(
tab
!=
NULL
)
gtk_widget_hide
(
tab
->
entry
);
if
(
!
g_list_length
(
gtk_container_get_children
(
GTK_CONTAINER
(
get_tab_box
()))))
gtk_widget_hide
(
get_tab_box
());
}
void
...
...
@@ -361,8 +363,10 @@ create_messaging_tab_common(const gchar* call_id, const gchar *label)
/* Create the main layout */
GtkWidget
*
vbox
=
gtk_box_new
(
GTK_ORIENTATION_VERTICAL
,
0
);
GtkTextBuffer
*
text_buffer
=
gtk_text_buffer_new
(
NULL
);
gtk_text_buffer_create_tag
(
text_buffer
,
"b"
,
"weight"
,
PANGO_WEIGHT_BOLD
,
NULL
);
gtk_text_buffer_create_tag
(
text_buffer
,
"link"
,
"foreground"
,
"#0000FF"
,
"underline"
,
PANGO_UNDERLINE_SINGLE
);
if
(
text_buffer
)
{
gtk_text_buffer_create_tag
(
text_buffer
,
"b"
,
"weight"
,
PANGO_WEIGHT_BOLD
,
NULL
);
gtk_text_buffer_create_tag
(
text_buffer
,
"link"
,
"foreground"
,
"#0000FF"
,
"underline"
,
PANGO_UNDERLINE_SINGLE
,
NULL
);
}
/* Create the conversation history widget*/
GtkWidget
*
history_hbox
=
gtk_box_new
(
GTK_ORIENTATION_HORIZONTAL
,
2
);
...
...
@@ -472,11 +476,12 @@ create_messaging_tab(callable_obj_t* call)
message_tab
*
create_messaging_tab_conf
(
conference_obj_t
*
call
)
{
message_tab
*
self
=
create_messaging_tab_common
(
call
->
_confID
,
"Conference"
);
self
->
conf
=
call
;
self
->
call
=
NULL
;
disable_conference_calls
(
call
);
return
self
;
if
(
call
->
_confID
&&
strlen
(
call
->
_confID
))
{
message_tab
*
self
=
create_messaging_tab_common
(
call
->
_confID
,
"Conference"
);
self
->
conf
=
call
;
self
->
call
=
NULL
;
disable_conference_calls
(
call
);
return
self
;
}
return
NULL
;
}
\ No newline at end of file
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