Anders Broman
7dcd23257d
Get rid of gdk_draw_layout().
...
svn path=/trunk/; revision=38325
2011-08-03 18:49:35 +00:00
Anders Broman
65bca7c0ed
Code cleanup.
...
svn path=/trunk/; revision=38292
2011-07-31 20:20:05 +00:00
Anders Broman
a4d4f61e3f
Use cairo for drawing.
...
svn path=/trunk/; revision=38240
2011-07-28 14:25:09 +00:00
Anders Broman
794ebd24ad
Replace gdk_draw_rectangle() with cairo equivalents
...
svn path=/trunk/; revision=38234
2011-07-28 09:21:43 +00:00
Anders Broman
8bfbe39e67
Replace the remaining gdk_draw_pixmap().
...
svn path=/trunk/; revision=38229
2011-07-27 20:25:31 +00:00
Jörg Mayer
a05b6c6efe
Part 2 of the cleanup. fix some compile errors in previous patch.
...
svn path=/trunk/; revision=38217
2011-07-26 19:44:06 +00:00
Jörg Mayer
68845aa779
Replace access to ...->allocation by gtk_widget_get_allocation +
...
using the return val - part 1
Maybe the call needs to be done more often.
Replace GTK_WIDGET_STATE by gtk_widget_get_state
svn path=/trunk/; revision=38215
2011-07-26 19:01:01 +00:00
Anders Broman
1b7fd8c356
Use Cairo for drawing, step 2.
...
svn path=/trunk/; revision=38212
2011-07-26 15:19:12 +00:00
Anders Broman
16cd1e355c
Use Cairo for drawing, step 1.
...
svn path=/trunk/; revision=38211
2011-07-26 11:21:14 +00:00
Jörg Mayer
bb7650f70d
Fix almost all accesses to ->window
...
svn path=/trunk/; revision=38151
2011-07-21 20:12:08 +00:00
Jörg Mayer
99e0c43d35
Replace references to style by gtk_widget_get_style (according to
...
http://developer.gnome.org/gtk/2.24/GtkWidget.html#gtk-widget-get-style
this doesn't require a minimum version)
svn path=/trunk/; revision=38139
2011-07-21 00:16:05 +00:00
Anders Broman
6814cd03ee
Replace deprecated gdk_pixmap_unref() with g_object_unref().
...
Update checkAPIs.
svn path=/trunk/; revision=38013
2011-07-14 08:11:16 +00:00
Jörg Mayer
11f131b303
Fix some compiler errors with -DGTK_DISABLE_DEPRECATED
...
svn path=/trunk/; revision=38006
2011-07-14 00:04:37 +00:00
Anders Broman
cb98a2b2c2
Fix more tooltips fixes.
...
svn path=/trunk/; revision=37996
2011-07-13 08:48:13 +00:00
Bill Meier
d75988bacc
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;
...
Also: whitespace cleanup in some cases.
svn path=/trunk/; revision=37601
2011-06-07 22:50:49 +00:00
Bill Meier
e9326d7152
Don't assign to an unused variable;
...
#include <stdlib.h> not req'd
svn path=/trunk/; revision=37168
2011-05-15 21:09:04 +00:00
Bill Meier
6a5644b497
Replace some 'if(...){exit(10);}' by g_asserts;
...
Fix some event callback functon signatures;
Change the "destroy" callback function (quit()) to return void: It's not an event callback.
Do some whitespace cleanup.
svn path=/trunk/; revision=37166
2011-05-15 19:01:38 +00:00
Bill Meier
538dd47d5d
Fix various gcc -Wshadow warnings.
...
svn path=/trunk/; revision=31731
2010-01-29 19:09:01 +00:00
Anders Broman
485fc6805b
Change window_new() to dlg_window_new() and destroy the window with the top level window.
...
svn path=/trunk/; revision=28810
2009-06-22 15:22:37 +00:00
Bill Meier
27024a1d5a
As suggested by Jakub Zawadzki: actually use sizeof(...) rather than a numeric constant in various places;
...
svn path=/trunk/; revision=27800
2009-03-19 17:49:11 +00:00
Bill Meier
d3fc3b6c3e
Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
...
gtk_button_box_set_spacing() ==> gtk_box_set_spacing()
svn path=/trunk/; revision=25673
2008-07-08 02:43:40 +00:00
Bill Meier
56206e0002
Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
...
gtk_container_border_width() ==> gtk_container_set_border_width()
gtk_container_children() ==> gtk_container_get_children()
gtk_entry_new_with_max_length() ==> gtk_entry_new(); gtk_entry_set_max_length()
gtk_menu_append() ==> gtk_menu_shell_append()
gtk_menu_prepend() ==> gtk_menu_shell_prepend()
gtk_notebook_set_page() ==> gtk_notebook_set_current_page()
gtk_paned_gutter_size() ==> gtk_paned_set_gutter_size()
gtk_radio_button_group() ==> gtk_radio_button_get_group()
gtk_signal_connect() ==> g_signal_connect()
gtk_signal_disconnect() ==> g_signal_handler_disconnect()
gtk_signal_emit_by_name() ==> g_signal_emit_by_name()
gtk_signal_handler_block_by_data() ==> g_signal_handlers_block_matched()
gtk_signal_handler_block_by_func() ==> g_signal_handlers_block_by_func()
gtk_signal_handler_unblock_by_data() ==> g_signal-handlers_unblock_matched()
gtk_signal_handler_unblock_by_func() ==> g_signal-handlers_unblock_by_func()
gtk_spin_button_get_value_as_float() ==> gtk_spin_button_get_value()
gtk_toggle_button_set_state() ==> gtk_toggle_button_set_active()
svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Ulf Lamping
644a474c95
sort #includes by directories
...
svn path=/trunk/; revision=24969
2008-04-13 03:32:24 +00:00
Ulf Lamping
d4ccf577a8
where it's not necessary, remove #include "compat_macros.h"
...
svn path=/trunk/; revision=24922
2008-04-12 01:02:59 +00:00
Ulf Lamping
8e58ec7085
last round to replace SIGNAL_CONNECT with g_signal_connect
...
svn path=/trunk/; revision=24918
2008-04-11 23:16:06 +00:00
Ulf Lamping
c6d13dc2c8
replace WIDGET_SET_SIZE with gtk_widget_set_size_request
...
svn path=/trunk/; revision=24910
2008-04-11 20:31:05 +00:00
Ulf Lamping
ae5f841083
replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's gtk_button_new_from_stock
...
svn path=/trunk/; revision=24904
2008-04-11 18:58:19 +00:00
Bill Meier
77b615b79f
OBJECT_..._DATA --> g_object_..._data
...
svn path=/trunk/; revision=24896
2008-04-11 16:55:44 +00:00
Michael Tüxen
52518e3e9e
Cleanup whitespaces.
...
svn path=/trunk/; revision=24831
2008-04-07 05:53:02 +00:00
Ulf Lamping
3b7fe5fc6c
remove GTK1 code
...
svn path=/trunk/; revision=24823
2008-04-07 00:42:04 +00:00
Michael Tüxen
4306c7037d
Include epan/strutil.h for gtk-1.2 builds.
...
svn path=/trunk/; revision=24513
2008-03-01 10:23:57 +00:00
Stig Bjørlykke
7deec480ff
Next attempt to cleanup some string functions, including:
...
strncpy -> g_strlcpy, strncat -> g_strlcat
svn path=/trunk/; revision=24504
2008-02-29 13:33:37 +00:00
Stig Bjørlykke
10a8f59e03
Rewrote some prohibited APIs in gtk/ (sprintf, strcpy, strcat).
...
If we get some truncated strings we probably overwrote some buffers...
svn path=/trunk/; revision=24239
2008-02-01 01:07:58 +00:00
Michael Tüxen
ab125d0d43
From Irene Ruengeler: Fix TSN handling in graphs.
...
svn path=/trunk/; revision=21894
2007-05-22 21:16:30 +00:00
Michael Tüxen
18c6fbb379
From Irene Ruengeler: Fix a bug regading the handling of ABORT chunks.
...
svn path=/trunk/; revision=21495
2007-04-22 10:25:26 +00:00
Ulf Lamping
407d0aeab0
fix all warnings in gtk dir & set the "treat all warnings as errors" MSVC flag
...
svn path=/trunk/; revision=21080
2007-03-21 03:26:26 +00:00
Michael Tüxen
7e8098c520
A fix from Irene Ruengeler to keep assocs selected when
...
setting/applying filters.
Remove some warnings.
svn path=/trunk/; revision=20759
2007-02-09 21:05:43 +00:00
Michael Tüxen
7bc853b62b
Fixes the handling of long term captures from a simulation tool.
...
svn path=/trunk/; revision=18267
2006-05-31 15:26:41 +00:00
Ronnie Sahlberg
89f022b12b
name change
...
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Michael Tüxen
3df55b78f6
From Irene: Fix problems with off screen drawings
...
Make rectangle clickable.
svn path=/trunk/; revision=17778
2006-03-30 22:17:42 +00:00
Gerald Combs
172556500d
Remove MIN and MAX defines, which GLib provides.
...
svn path=/trunk/; revision=17551
2006-03-09 16:00:33 +00:00
Anders Broman
3aa3b4d8b3
Replace round() with floor(), I don't know if it's the right thing to do but at least it compiles on Windows again.
...
svn path=/trunk/; revision=17094
2006-01-24 20:20:33 +00:00
Michael Tüxen
d3a9893196
From Irene: Add support for showing TSN and time in the graphical analysis.
...
svn path=/trunk/; revision=17082
2006-01-23 11:56:49 +00:00
Jörg Mayer
dba7a99e1d
warning: C++ style comments are not allowed in ISO C90
...
svn path=/trunk/; revision=16853
2005-12-18 23:22:47 +00:00
Michael Tüxen
fd7caa4b84
Bug fixes from Irene.
...
svn path=/trunk/; revision=16639
2005-12-01 15:15:42 +00:00
Guy Harris
a0e68da918
Add a "register_dfilter_stat()", to register stats that take a display
...
filter as an argument on the command line and have a dialog box to enter
the display filter through the GUI. Use it for all stats using
"gtk_tap_dfilter_dlg_cb()".
Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E"
for the benefit of the declaration of "register_dfilter_stat()" in the
top-level "tap_dfilter_dlg.h". Rename the "stat_menu.h" in the gtk
directory to "gtk_stat_menu.h", so as not to have two headers with the
same name.
Get rid of headers not declaring any functions not being used in the
module.
svn path=/trunk/; revision=15493
2005-08-21 09:48:27 +00:00
Jörg Mayer
0edcc8920e
- Declare some functions static
...
- Add plugins_dlg.h
- Include .h files in their respective .c files
- Include .h and remove extern declarations in .c files
- set eol-style and keywords on gui_utils.[hc]
svn path=/trunk/; revision=15471
2005-08-20 14:02:00 +00:00
Ulf Lamping
eafbbbcabb
renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical named ui_util.h in / dir
...
svn path=/trunk/; revision=15465
2005-08-20 12:09:48 +00:00
Guy Harris
b2807e2ab6
Move the APIs for registering and processing "-z" command-line arguments
...
and "Statistics" menu items into "stat.h" and "stat.c", to separate them
from the core tapping APIs. A tap could conceivably not register as a
"-z" command-line argument or "Statistics" menu item, and a stat could
conceivably not be implemented as a tap, and dissectors that implement
tapping points don't need the UI-related stuff from "stat.h", they just
want the tap-related stuff in <epan/tap.h>.
svn path=/trunk/; revision=15427
2005-08-19 09:29:41 +00:00
Michael Tüxen
5e89412e0c
Fix a bug in counting DATA chunks.
...
svn path=/trunk/; revision=14264
2005-05-02 14:04:25 +00:00