Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
conecto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
nimrod
conecto
Commits
10914283
Commit
10914283
authored
6 years ago
by
gyan000
Browse files
Options
Downloads
Patches
Plain Diff
Do not display unpaired device in dock quick list.
parent
e748846f
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
src/EOSConnect/EOSConnect.vala
+10
-3
10 additions, 3 deletions
src/EOSConnect/EOSConnect.vala
src/EOSConnect/MainWindow.vala
+2
-1
2 additions, 1 deletion
src/EOSConnect/MainWindow.vala
with
12 additions
and
4 deletions
src/EOSConnect/EOSConnect.vala
+
10
−
3
View file @
10914283
...
...
@@ -73,7 +73,7 @@ namespace EOSConnect {
});
init_sms_store
.
begin
(()
=>
{
init_sms_history_
window
.
begin
();
init_sms_history_
tab
.
begin
();
});
...
...
@@ -115,11 +115,14 @@ namespace EOSConnect {
SMSStore
.
instance
(
main_settings
);
}
private
async
void
init_sms_history_
window
()
{
private
async
void
init_sms_history_
tab
()
{
SimpleAction
simple_action
=
new
SimpleAction
(
"telephony-open-sms-window-reply"
,
null
);
simple_action
.
activate
.
connect
(()
=>
{
sms_history_view
.
open_sms_window_reply
();
// sms_history_view.open_sms_window_reply ();
// sms_history_view.show_all ();
main_window
.
main_stack
.
set_visible_child_name
(
"sms_history_view"
);
warning
(
"par ka"
);
});
this
.
add_action
(
simple_action
);
...
...
@@ -158,6 +161,10 @@ namespace EOSConnect {
foreach
(
var
device_entry
in
devices_map
.
entries
)
{
bool
to_add
=
true
;
if
(
device_entry
.
value
.
is_paired
==
false
)
{
to_add
=
false
;
}
foreach
(
var
device_menuitem
in
launcher_entry
.
quicklist
.
get_children
())
{
if
(((
DeviceMenuitem
)
device_menuitem
).
id
==
device_entry
.
value
.
device_num
)
{
...
...
This diff is collapsed.
Click to expand it.
src/EOSConnect/MainWindow.vala
+
2
−
1
View file @
10914283
...
...
@@ -28,6 +28,7 @@ namespace EOSConnect {
public
GLib
.
Settings
main_settings
{
get
;
construct
;
}
public
SMSHistory
sms_history_view
{
get
;
construct
;
}
public
Gtk
.
Stack
main_stack
{
get
;
construct
;
}
private
Views
.
DevicesView
devices_view
;
// private Gtk.InfoBar infobar_error;
...
...
@@ -79,7 +80,7 @@ namespace EOSConnect {
devices_view
=
new
Views
.
DevicesView
(
this
);
var
main_settings_view
=
new
Views
.
MainSettingsView
(
this
,
main_settings
);
var
main_stack
=
new
Gtk
.
Stack
();
main_stack
=
new
Gtk
.
Stack
();
main_stack
.
expand
=
true
;
main_stack
.
transition_type
=
Gtk
.
StackTransitionType
.
SLIDE_LEFT_RIGHT
;
main_stack
.
add_titled
(
devices_view
,
"devices_view"
,
_
(
"Devices"
));
...
...
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