Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
3e5a6600
Commit
3e5a6600
authored
Aug 01, 2015
by
François Grisez
Browse files
Move the definiton of the chat view in a dedicated UI file
parent
e6c50db1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
123 additions
and
116 deletions
+123
-116
gtk/CMakeLists.txt
gtk/CMakeLists.txt
+1
-0
gtk/Makefile.am
gtk/Makefile.am
+2
-1
gtk/chat.c
gtk/chat.c
+1
-1
gtk/chat_view.ui
gtk/chat_view.ui
+118
-0
gtk/main.ui
gtk/main.ui
+1
-114
No files found.
gtk/CMakeLists.txt
View file @
3e5a6600
...
...
@@ -39,6 +39,7 @@ set(UI_FILES
sip_account.ui
tunnel_config.ui
waiting.ui
chat_view.ui
)
set
(
PIXMAPS stock_people.png
)
...
...
gtk/Makefile.am
View file @
3e5a6600
...
...
@@ -15,7 +15,8 @@ UI_FILES= about.ui \
ldap.ui
\
config-uri.ui
\
provisioning-fetch.ui
\
audio_assistant.ui
audio_assistant.ui
\
chat_view.ui
PIXMAPS
=
\
stock_people.png
...
...
gtk/chat.c
View file @
3e5a6600
...
...
@@ -481,7 +481,7 @@ static gboolean copy_uri_into_clipboard_handler(GtkMenuItem *menuitem, gpointer
}
GtkWidget
*
linphone_gtk_init_chatroom
(
LinphoneChatRoom
*
cr
,
const
LinphoneAddress
*
with
){
GtkWidget
*
chat_view
=
linphone_gtk_create_widget
(
"main
"
,
"chatroom_frame"
);
GtkWidget
*
chat_view
=
linphone_gtk_create_widget
_2
(
"chat_view
"
,
"chatroom_frame"
);
GtkWidget
*
main_window
=
linphone_gtk_get_main_window
();
GtkNotebook
*
notebook
=
(
GtkNotebook
*
)
linphone_gtk_get_widget
(
main_window
,
"viewswitch"
);
GtkWidget
*
text
=
linphone_gtk_get_widget
(
chat_view
,
"textview"
);
...
...
gtk/chat_view.ui
0 → 100644
View file @
3e5a6600
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires
lib=
"gtk+"
version=
"2.18"
/>
<!-- interface-naming-policy project-wide -->
<object
class=
"GtkWindow"
id=
"dummy_chat_window"
>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkFrame"
id=
"chatroom_frame"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkVBox"
id=
"vbox4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hscrollbar_policy"
>
never
</property>
<child>
<object
class=
"GtkTextView"
id=
"textview"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"border_width"
>
4
</property>
<property
name=
"editable"
>
False
</property>
<property
name=
"wrap_mode"
>
word-char
</property>
<property
name=
"cursor_visible"
>
False
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkHBox"
id=
"hbox10"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkEntry"
id=
"text_entry"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"invisible_char_set"
>
True
</property>
<property
name=
"primary_icon_activatable"
>
False
</property>
<property
name=
"secondary_icon_activatable"
>
False
</property>
<property
name=
"primary_icon_sensitive"
>
True
</property>
<property
name=
"secondary_icon_sensitive"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"send"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<child>
<object
class=
"GtkHBox"
id=
"hbox11"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkImage"
id=
"send_picture"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"stock"
>
gtk-ok
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Send
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"padding"
>
7
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<child
type=
"label_item"
>
<placeholder/>
</child>
</object>
</child>
</object>
</interface>
gtk/main.ui
View file @
3e5a6600
...
...
@@ -96,119 +96,6 @@
</object>
</child>
</object>
<object
class=
"GtkWindow"
id=
"dummy_chat_window"
>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkFrame"
id=
"chatroom_frame"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkVBox"
id=
"vbox4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hscrollbar_policy"
>
never
</property>
<child>
<object
class=
"GtkTextView"
id=
"textview"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"border_width"
>
4
</property>
<property
name=
"editable"
>
False
</property>
<property
name=
"wrap_mode"
>
word-char
</property>
<property
name=
"cursor_visible"
>
False
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkHBox"
id=
"hbox10"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkEntry"
id=
"text_entry"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"has_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"primary_icon_activatable"
>
False
</property>
<property
name=
"secondary_icon_activatable"
>
False
</property>
<property
name=
"primary_icon_sensitive"
>
True
</property>
<property
name=
"secondary_icon_sensitive"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"send"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<child>
<object
class=
"GtkHBox"
id=
"hbox11"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkImage"
id=
"send_picture"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"stock"
>
gtk-ok
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Send
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"padding"
>
7
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<child
type=
"label_item"
>
<placeholder/>
</child>
</object>
</child>
</object>
<object
class=
"GtkWindow"
id=
"dummy_conf_window"
>
<property
name=
"can_focus"
>
False
</property>
<child>
...
...
@@ -1111,8 +998,8 @@ audio-volume-medium</property>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
4
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
4
</property>
</packing>
</child>
<child>
...
...
Write
Preview
Markdown
is supported
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