[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-gtk] 02/03: get rid of jitter in rendering, as well
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-gtk] 02/03: get rid of jitter in rendering, as well as incomprehensible column |
Date: |
Tue, 26 Jun 2018 09:04:56 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet-gtk.
commit 9b4138411fb4ff121b2fdca2b7c2e004a884fe82
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Jun 26 08:53:44 2018 +0200
get rid of jitter in rendering, as well as incomprehensible column
---
contrib/gnunet_peerinfo_gtk_main_window.glade | 24 +++++-------------------
src/peerinfo/gnunet-peerinfo-gtk.c | 11 ++---------
2 files changed, 7 insertions(+), 28 deletions(-)
diff --git a/contrib/gnunet_peerinfo_gtk_main_window.glade
b/contrib/gnunet_peerinfo_gtk_main_window.glade
index c9bd805b..017f665e 100644
--- a/contrib/gnunet_peerinfo_gtk_main_window.glade
+++ b/contrib/gnunet_peerinfo_gtk_main_window.glade
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.18.3
+<!-- Generated with glade 3.22.1
Copyright (C)
@@ -134,6 +134,9 @@ along with gnunet-peerinfo-gtk. If not, see
<http://www.gnu.org/licenses/>.
<property name="icon_name">gnunet-gtk</property>
<signal name="delete-event" handler="GNUNET_PEERINFO_GTK_quit_cb"
after="yes" swapped="no"/>
<child>
+ <placeholder/>
+ </child>
+ <child>
<object class="GtkBox" id="GNUNET_PEERINFO_GTK_main_window_vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -248,11 +251,11 @@ along with gnunet-peerinfo-gtk. If not, see
<http://www.gnu.org/licenses/>.
</child>
<child>
<object class="GtkTreeViewColumn"
id="GNUNET_PEERINFO_GTK_main_window_validation_status_treeviewcolumn">
+ <property name="visible">False</property>
<property name="widget">validated_image</property>
<property name="reorderable">True</property>
<property name="sort_indicator">True</property>
<property name="sort_column_id">19</property>
- <property name="visible">false</property>
<child>
<object class="GtkCellRendererPixbuf"
id="GNUNET_PEERINFO_GTK_main_window_valdiation_led_cellrendererpixbuf"/>
<attributes>
@@ -378,23 +381,6 @@ along with gnunet-peerinfo-gtk. If not, see
<http://www.gnu.org/licenses/>.
</child>
</object>
</child>
- <child>
- <object class="GtkTreeViewColumn"
id="GNUNET_PEERINFO_GTK_main_window_neighbour_state_treeviewcolumn">
- <property name="sizing">autosize</property>
- <property name="title" translatable="yes">State</property>
- <property name="reorderable">True</property>
- <property name="sort_indicator">True</property>
- <property name="sort_column_id">16</property>
- <child>
- <object class="GtkCellRendererText"
id="GNUNET_PEERINFO_GTK_main_window_neighbour_state_cellrenderertext">
- <property name="width_chars">30</property>
- </object>
- <attributes>
- <attribute name="text">16</attribute>
- </attributes>
- </child>
- </object>
- </child>
</object>
</child>
</object>
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c
b/src/peerinfo/gnunet-peerinfo-gtk.c
index a5ae486a..c647eedf 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -35,6 +35,7 @@
#include <unique/unique.h>
#endif
+#define UPDATE_FREQUENCY GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 10)
/**
* Should we show peers that have no connections and
@@ -394,11 +395,6 @@ static GtkTreeViewColumn *tvc_ats_connectivity;
static GtkTreeViewColumn *tvc_plugin_connectivity;
/**
- * Tree view column for neighbour_state
- */
-static GtkTreeViewColumn *tvc_neighbour_state;
-
-/**
* The main tree view.
*/
static GtkTreeView *tv;
@@ -423,7 +419,7 @@ static void
do_update (void *cls)
{
(void) cls;
- update_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
+ update_task = GNUNET_SCHEDULER_add_delayed (UPDATE_FREQUENCY,
&do_update,
NULL);
gtk_widget_thaw_child_notify (GTK_WIDGET (tv));
@@ -1457,8 +1453,6 @@ query_tooltip_cb (GtkWidget *widget,
model_column = PEERINFO_MC_PEERINFO_ADDRESS_EXPIRATION;
else if (tvc_transport_connectivity == column)
model_column = PEERINFO_MC_NEIGHBOUR_CONNECTIVITY_TIMEOUT_AS_STRING;
- else if (tvc_neighbour_state == column)
- model_column = PEERINFO_MC_NEIGHBOUR_STATE_TIMEOUT_AS_STRING;
if (-1 == model_column)
return FALSE;
@@ -1554,7 +1548,6 @@ run (void *cts)
tvc_ats_connectivity = GTK_TREE_VIEW_COLUMN (get_object
("GNUNET_PEERINFO_GTK_main_window_ats_connectivity_treeviewcolumn"));
tvc_plugin_connectivity = GTK_TREE_VIEW_COLUMN (get_object
("GNUNET_PEERINFO_GTK_main_window_plugin_connectivity_treeviewcolumn"));
tvc_transport_connectivity = GTK_TREE_VIEW_COLUMN (get_object
("GNUNET_PEERINFO_GTK_main_window_transport_connectivity_treeviewcolumn"));
- tvc_neighbour_state = GTK_TREE_VIEW_COLUMN (get_object
("GNUNET_PEERINFO_GTK_main_window_neighbour_state_treeviewcolumn"));
/* setup main window */
main_window = GTK_WIDGET (get_object ("GNUNET_PEERINFO_GTK_main_window"));
main_window = GNUNET_GTK_plug_me ("GNUNET_PEERINFO_GTK_PLUG",
--
To stop receiving notification emails like this one, please contact
address@hidden