Commit Graph

17978 Commits

Author SHA1 Message Date
Robert Fewell
4a81e94b66 Files linked to dialog-tax-table.glade 2017-06-18 13:14:18 +01:00
Robert Fewell
85ceb3b989 Files linked to dialog-query-view.glade 2017-06-18 12:34:12 +01:00
Robert Fewell
36a65d3375 Files linked to dialog-reset-warnings.glade 2017-06-18 12:30:04 +01:00
Robert Fewell
eb860343bd Change file dialog-totd.glade 2017-06-18 12:29:30 +01:00
Robert Fewell
cb9d24bd01 Files linked to dialog-object-references.glade 2017-06-18 11:58:56 +01:00
Robert Fewell
fb2c5073ee Files linked to dialog-file-access.glade 2017-06-18 11:58:31 +01:00
Robert Fewell
6d68ae0a76 Files linked to dialog-commodity.glade 2017-06-18 11:58:06 +01:00
Robert Fewell
e66430f4da Files linked to dialog-book-close.glade 2017-06-18 11:30:44 +01:00
Robert Fewell
70e9b88719 Files linked to assistant-xml-encoding.glade 2017-06-18 11:30:19 +01:00
Robert Fewell
d8831e8725 Change dialog-account.glade 2017-06-18 11:03:14 +01:00
Robert Fewell
30f082d199 Files linked to dialog-account.glade 2017-06-18 11:02:05 +01:00
Robert Fewell
04cf3d93e2 Couple of corrections to previous commit. 2017-06-17 16:34:56 +01:00
Robert Fewell
05eb41fe8b Replace gtk_misc_set_alignment with own label alignment function
Replace gtk_misc_set_alignment after Gtk3+3.16 with gtk_label_set_xalign
 and yalign
2017-06-17 13:55:05 +01:00
Robert Fewell
d724128a3d Replace gtk_scrolled_window_add_with_viewport
Replace gtk_scrolled_window_add_with_viewport with gtk_container_add
2017-06-17 12:50:45 +01:00
Robert Fewell
08660a29ff Change dialog buttons from using GKT_STOCK_ labels
Remove GTK_STOCK_... from dialog buttons as it is depreciated and
replace with text labels.
2017-06-17 12:16:54 +01:00
Robert Fewell
ade9f71b9d Remove depreciated gtk_button_set_use_stock 2017-06-17 11:55:08 +01:00
Robert Fewell
090968f1f2 Replace deprecated widgets in goffice 2017-06-16 16:51:37 +01:00
Robert Fewell
d29bb5b8cd Correct corrupted line in gnc-account-sel.h 2017-06-16 16:50:45 +01:00
Robert Fewell
976a137069 Change register Gtk horizontal and vertical widgets
Change Gtk horizontal and vertical widgets to there equivalent with
orientation
2017-06-16 12:40:35 +01:00
Robert Fewell
b3c5b1cb5d Change all Gtk horizontal and vertical widgets
Change Gtk horizontal and vertical widgets to there equivalent with
orientation
2017-06-16 12:40:17 +01:00
Robert Fewell
9cefa509c7 Change register GtkHbox widgets
Change all GtkHBox widgets to GtkBox with orientation HORIZONTAL
2017-06-16 12:10:54 +01:00
Robert Fewell
409e43715a Change all the GtkHbox widgets
Change all GtkHBox widgets to GtkBox with orientation HORIZONTAL
2017-06-16 12:10:36 +01:00
Robert Fewell
5c2a70bcab Change all the GtkVBox widgets
Change all GtkVBox widgets to GtkBox with orientation VERTICAL
2017-06-16 11:33:41 +01:00
Robert Fewell
faecd7ffeb Fix the tab label width update function to reflect changes 2017-06-16 10:58:16 +01:00
Robert Fewell
a985541f77 Replaced some deprecated widgets with the gtk3 equivalent 2017-06-15 19:47:02 +01:00
Robert Fewell
4de57ba982 Fix Tab Labels
The tab labels do not keep to the width specified in the preferences,
use set_width_chars instead of set_max_width_chars.
2017-06-15 19:46:17 +01:00
Robert Fewell
78f28887a6 Replace some deprecated widgets in the register. 2017-06-15 19:45:39 +01:00
Robert Fewell
0abc3e32a1 There were critical errors in trace file.
Test for item being part of container first.
2017-06-15 19:43:49 +01:00
Robert Fewell
7f7ec67feb Replace deprecated widgets for GncDenseCal with gtk3 equivalents 2017-06-15 19:42:28 +01:00
Robert Fewell
c7f3994fe3 Composite functions not required for GncDenseCal 2017-06-15 19:41:48 +01:00
Robert Fewell
a6fd7f85d3 Set the background of the GncDenseCal Widget
The background of the GncDenseCal widget is not able to be set from the
default style. Set it white but allow it to be themed with css.
2017-06-15 19:40:20 +01:00
Robert Fewell
64deacf1e1 With Gtk3 it uses css to do the theming so change the file to load 2017-06-15 19:38:53 +01:00
Geert Janssens
dd9b2007b0 Gtk3: fix failing item-edit widget on sheets
There were several problems since the conversion to gtk3
* widget wasn't displayed at all - apparently this was because I had overriden the draw function of the gtklayout (sheet)
  -> fixed by adding a draw callback instead
* several gtk warnings about allocating sizes to widgets without using *get_preferred_width/height
  -> fixed by adding the itemedit dropdowns to the layout only when they are requested
* the arrow button didn't want to resize small enough
  -> fixed by adding a custom style to drops the button's internal padding
* there were several sizing issues which ironically got fixed dropping much of the custom sizing code
2017-04-14 19:23:19 +02:00
Geert Janssens
24ed305c18 Gtk3: fix register redrawing when the window is scrolled
The new drawing interface in gtk3 uses a different coordinate system.
Some calculations had to be adjusted to this.
2017-04-14 19:22:29 +02:00
Geert Janssens
3a76cb91f1 Gtk3: Fix register not being drawn - item_edit still missing
While the data is displayed the widget to edit the active cell isn't yet.
2017-04-14 19:21:35 +02:00
Geert Janssens
e5d2ab8dc5 Fix build with webkitgtk >= 2.8 2017-04-14 19:21:35 +02:00
John Ralls
d632abaa96 Get links working. 2017-04-14 19:21:35 +02:00
John Ralls
bb0376240d Get WebKit2Gtk basics compiling and working.
Copy and register links don't work.
2017-04-14 19:21:35 +02:00
John Ralls
15ef317968 Revert "Fix query period in test-account-get-trans-type-splits-interval."
This reverts commit e66dd12aa9. Because
the test only seems to fail crossing a DST boundary.
2017-04-14 19:21:34 +02:00
John Ralls
bf86524884 Correct gnc-html-webkit.c indentation. 2017-04-14 19:21:34 +02:00
Geert Janssens
8f66cf4286 Gtk3: Replace obsolete functions
gtk_statusbar_set_has_resize_grip
gdk_drawable_get_screen
gdk_device_get_core_pointer

There is no replacement for it in gtk3 and it's probably
not needed any more either.
2017-04-14 19:21:34 +02:00
Geert Janssens
e40acf5915 Temporarily disable deprecation warnings 2017-04-14 19:21:34 +02:00
John Ralls
89021dde39 Remove if-0-ed out code from gnc-html-webkit.c 2017-04-14 19:21:34 +02:00
Geert Janssens
87a0cb7360 Gtk3: fix direct access issue for entry widget in cell renderer mode
The old code directly accessed a member variable of GtkEntry. This
direct access is no longer possible, but there is no public function
to get/set this variable. There is a private one  used by
GtkComboBox internally) but it's not exported so it can't be used either.

As an interim solution I peeked at how hesiod handled it in his earlier
(unmerged) gtk3 branch. He replaced this private access with setting
gtk_widget_set_visible, something I wouldn't have considered in this
situation. The issue is in the register2 code, so for now it's not
too important. We can investigate this more when the register rewrite
is picked up again.
2017-04-14 19:21:34 +02:00
Geert Janssens
e26480ccbb Gtk3: Convert GdkColor into GdkRGBA
Only gnc-dense-cal.[ch] is left untouched because it's use
of color is tightly coupled to the use of GtkStyle. This
latter needs conversion as well, but would be too much to
add in one commit.

Additionally the register code uses GtkStyle to extract
colors. This has been partially converted to using GdkRGBA
with the inconvenient side effect that depending on how
a color is retrieved it has to be freed with gdk_rgba_free
or not. This may be cleaned up later.
2017-04-14 19:21:34 +02:00
Geert Janssens
f07ad114c4 Gtk3: replace expose_event size_request functions
expose_event has been replaced with draw
size_request has become get_preferred_width and get_preferred_height
2017-04-14 19:21:34 +02:00
Geert Janssens
2ca938bd67 Gtk3: Fix the remaining gtk direct access violations
These could not be fixed in Gtk2 because the accessor functions were only added as of Gtk3.
2017-04-14 19:21:34 +02:00
Geert Janssens
42264efd1b Gtk3: adapt to changed callback function signature 2017-04-14 19:21:34 +02:00
Geert Janssens
3065005f05 Gtk3: use CSS style instead of old GtkStyle interface 2017-04-14 19:21:20 +02:00
Geert Janssens
b9abc0b5ba Gtk3: Fix cursor handling 2017-03-31 14:04:31 +02:00