diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-06-07 19:14:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-06-07 19:14:31 +0000 |
commit | 3b349d9c2cda0d9fd39ed52be44a5adaaf0470bd (patch) | |
tree | 70019f5afa8316f2c29cceafef9630e1669c1cf4 | |
parent | 1dcd6d941005c55cc4735fb493c3287776d1a2ab (diff) | |
download | gnunet-gtk-3b349d9c2cda0d9fd39ed52be44a5adaaf0470bd.tar.gz gnunet-gtk-3b349d9c2cda0d9fd39ed52be44a5adaaf0470bd.zip |
fixing gtk assertion errors
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | gnunet-gtk.glade | 8 | ||||
-rw-r--r-- | src/common/logging.c | 6 | ||||
-rw-r--r-- | src/core/main.c | 1 | ||||
-rw-r--r-- | src/include/gnunetgtk_common.h | 3 | ||||
-rw-r--r-- | src/plugins/fs/search.c | 2 |
6 files changed, 18 insertions, 4 deletions
@@ -4,8 +4,6 @@ Annotations: | |||
4 | RC == Release Critical | 4 | RC == Release Critical |
5 | 5 | ||
6 | 0.8.0 (new core features): | 6 | 0.8.0 (new core features): |
7 | - much more testing!!! | ||
8 | + find & fix GTK assertion errors | ||
9 | - chat improvements: | 7 | - chat improvements: |
10 | * allow leaving chat rooms | 8 | * allow leaving chat rooms |
11 | * allow sending / joining by pressing ENTER | 9 | * allow sending / joining by pressing ENTER |
diff --git a/gnunet-gtk.glade b/gnunet-gtk.glade index 9d67109e..ea5ba5ce 100644 --- a/gnunet-gtk.glade +++ b/gnunet-gtk.glade | |||
@@ -3,6 +3,10 @@ | |||
3 | <!--*- mode: xml -*--> | 3 | <!--*- mode: xml -*--> |
4 | <glade-interface> | 4 | <glade-interface> |
5 | <widget class="GtkWindow" id="mainWindow"> | 5 | <widget class="GtkWindow" id="mainWindow"> |
6 | <property name="can_focus">True</property> | ||
7 | <property name="has_focus">True</property> | ||
8 | <property name="can_default">True</property> | ||
9 | <property name="has_default">True</property> | ||
6 | <property name="title" translatable="yes">GNUnet, GNU's Peer-to-Peer Network</property> | 10 | <property name="title" translatable="yes">GNUnet, GNU's Peer-to-Peer Network</property> |
7 | <property name="default_width">700</property> | 11 | <property name="default_width">700</property> |
8 | <property name="default_height">500</property> | 12 | <property name="default_height">500</property> |
@@ -2155,6 +2159,7 @@ This release adds context-menus (right-click) which allow copying the URI of sea | |||
2155 | <widget class="GtkButton" id="on_chat_room_name_button"> | 2159 | <widget class="GtkButton" id="on_chat_room_name_button"> |
2156 | <property name="visible">True</property> | 2160 | <property name="visible">True</property> |
2157 | <property name="can_focus">True</property> | 2161 | <property name="can_focus">True</property> |
2162 | <property name="can_default">True</property> | ||
2158 | <property name="has_default">True</property> | 2163 | <property name="has_default">True</property> |
2159 | <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> | 2164 | <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> |
2160 | <property name="response_id">0</property> | 2165 | <property name="response_id">0</property> |
@@ -4204,9 +4209,11 @@ Alex Jones <alexrjones@ntlworld.com></property> | |||
4204 | <property name="width_request">780</property> | 4209 | <property name="width_request">780</property> |
4205 | <property name="height_request">300</property> | 4210 | <property name="height_request">300</property> |
4206 | <property name="border_width">5</property> | 4211 | <property name="border_width">5</property> |
4212 | <property name="type">GTK_WINDOW_POPUP</property> | ||
4207 | <property name="title" translatable="yes">Messages</property> | 4213 | <property name="title" translatable="yes">Messages</property> |
4208 | <property name="window_position">GTK_WIN_POS_CENTER</property> | 4214 | <property name="window_position">GTK_WIN_POS_CENTER</property> |
4209 | <property name="icon_name">gtk-dialog-info</property> | 4215 | <property name="icon_name">gtk-dialog-info</property> |
4216 | <property name="type_hint">GDK_WINDOW_TYPE_HINT_NOTIFICATION</property> | ||
4210 | <property name="focus_on_map">False</property> | 4217 | <property name="focus_on_map">False</property> |
4211 | <child> | 4218 | <child> |
4212 | <widget class="GtkVBox" id="vbox16"> | 4219 | <widget class="GtkVBox" id="vbox16"> |
@@ -4626,6 +4633,7 @@ Alex Jones <alexrjones@ntlworld.com></property> | |||
4626 | <packing> | 4633 | <packing> |
4627 | <property name="expand">False</property> | 4634 | <property name="expand">False</property> |
4628 | <property name="fill">False</property> | 4635 | <property name="fill">False</property> |
4636 | <property name="pack_type">GTK_PACK_END</property> | ||
4629 | <property name="position">5</property> | 4637 | <property name="position">5</property> |
4630 | </packing> | 4638 | </packing> |
4631 | </child> | 4639 | </child> |
diff --git a/src/common/logging.c b/src/common/logging.c index 9384f9ad..1777e45d 100644 --- a/src/common/logging.c +++ b/src/common/logging.c | |||
@@ -103,6 +103,12 @@ doInfoMessage (void *args) | |||
103 | return NULL; | 103 | return NULL; |
104 | } | 104 | } |
105 | 105 | ||
106 | void | ||
107 | GNUNET_GTK_hide_info_window() | ||
108 | { | ||
109 | gtk_widget_hide (infoWindow); | ||
110 | } | ||
111 | |||
106 | /** | 112 | /** |
107 | * Appends a message to the info window | 113 | * Appends a message to the info window |
108 | * | 114 | * |
diff --git a/src/core/main.c b/src/core/main.c index 7715fa30..5eedb1e8 100644 --- a/src/core/main.c +++ b/src/core/main.c | |||
@@ -140,6 +140,7 @@ main (int argc, char *const *argv) | |||
140 | dataDir = GNUNET_get_installation_path (GNUNET_IPK_DATADIR); | 140 | dataDir = GNUNET_get_installation_path (GNUNET_IPK_DATADIR); |
141 | gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), dataDir); | 141 | gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), dataDir); |
142 | GNUNET_free (dataDir); | 142 | GNUNET_free (dataDir); |
143 | GNUNET_GTK_hide_info_window(); | ||
143 | gtk_window_maximize (GTK_WINDOW (root)); | 144 | gtk_window_maximize (GTK_WINDOW (root)); |
144 | gtk_widget_show (root); | 145 | gtk_widget_show (root); |
145 | gtk_window_present (GTK_WINDOW (root)); | 146 | gtk_window_present (GTK_WINDOW (root)); |
diff --git a/src/include/gnunetgtk_common.h b/src/include/gnunetgtk_common.h index b98d132a..d95f8cec 100644 --- a/src/include/gnunetgtk_common.h +++ b/src/include/gnunetgtk_common.h | |||
@@ -90,6 +90,9 @@ void GNUNET_GTK_show_info_message (int doPopup, const char *format, ...); | |||
90 | */ | 90 | */ |
91 | void GNUNET_GTK_add_log_entry (const char *txt, ...); | 91 | void GNUNET_GTK_add_log_entry (const char *txt, ...); |
92 | 92 | ||
93 | void | ||
94 | GNUNET_GTK_hide_info_window(void); | ||
95 | |||
93 | struct GNUNET_GE_Context *GNUNET_GTK_create_gtk_logger (GNUNET_GE_KIND mask); | 96 | struct GNUNET_GE_Context *GNUNET_GTK_create_gtk_logger (GNUNET_GE_KIND mask); |
94 | 97 | ||
95 | #define GNUNET_GTK_NOTIFY_LEVEL_LOW 0 | 98 | #define GNUNET_GTK_NOTIFY_LEVEL_LOW 0 |
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index df56d8ed..26e3844a 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -993,8 +993,6 @@ fs_search_aborted (SearchList * list) | |||
993 | gtk_widget_show (glade_xml_get_widget (list->searchXML, | 993 | gtk_widget_show (glade_xml_get_widget (list->searchXML, |
994 | "searchResumeButton")); | 994 | "searchResumeButton")); |
995 | gtk_widget_show (glade_xml_get_widget (list->searchXML, | 995 | gtk_widget_show (glade_xml_get_widget (list->searchXML, |
996 | "searchAbortButton")); | ||
997 | gtk_widget_show (glade_xml_get_widget (list->searchXML, | ||
998 | "searchPauseButton")); | 996 | "searchPauseButton")); |
999 | } | 997 | } |
1000 | 998 | ||