Commit Graph

81 Commits

Author SHA1 Message Date
Samael Wang
a4e6b1337a Bug 1350643 - Part 5.2: Use per-monitor gdkScaleFactor to set contentsScaleFactor & nsWindow::GetDesktopToDeviceScale if running in gtk/wayland. r=karlt
MozReview-Commit-ID: Grs4dUqvLew

--HG--
extra : rebase_source : a5524e08fea8fb3623a55c486b33e95c4212fa59
2017-06-16 11:13:59 +08:00
Samael Wang
44adcfaeea Bug 1350643 - Part 2: Use gdk functions to enumerate monitors instead of Xinerama. r=karlt
MozReview-Commit-ID: D9f65oZMBuV

--HG--
extra : rebase_source : e4dfa2ee593b9e06433569aaa8f3ec965fca5f2d
2017-06-06 17:57:54 +08:00
Martin Stransky
5f9fc84d1a Bug 1364355 - Implement UpdateOpaqueRegion() by gdk_window_set_opaque_region(), r=karlt
MozReview-Commit-ID: 50N99ZlvFUh

--HG--
extra : rebase_source : d095f93a858271c8a622f127724b06246e9f4bf9
2017-05-26 21:27:32 +02:00
Phil Ringnalda
c3d89ab945 Backed out 3 changesets (bug 1364355) for timeouts in test_panel_anchoradjust.xul
Backed out changeset 7cc2790574dc (bug 1364355)
Backed out changeset 2ee6598089a3 (bug 1364355)
Backed out changeset c4c2645ca8b7 (bug 1364355)

MozReview-Commit-ID: 5JEGvHeCWIv
2017-05-26 20:30:45 -07:00
Martin Stransky
eb881749c2 Bug 1364355 - Implement UpdateOpaqueRegion() by gdk_window_set_opaque_region(), r=karlt
MozReview-Commit-ID: 50N99ZlvFUh

--HG--
extra : rebase_source : 63bcdeaa5f7129a9f0d171d9826f33b8dc6bbe34
2017-05-26 21:27:32 +02:00
Karl Tomlinson
fb0c2feb3e bug 1319650 mimic gtk_style_context_save() in WidgetStyleCache with a new context r=stransky+263117
This makes balancing with gtk_style_context_restore()/ReleaseStyleContext()
unnecessary, and the style resolution cached in the style contexts is not
invalidated so frequently.

MozReview-Commit-ID: BKwyqoQsjv2

--HG--
extra : rebase_source : 4733d66f8265007555cc17568033ece09e6cb2dc
2016-12-02 12:39:23 +13:00
Sebastian Hengst
1e778d566b Backed out changeset 70d7c1534715 (bug 1319650) 2016-12-01 22:38:36 +01:00
Karl Tomlinson
ae355be799 bug 1319650 mimic gtk_style_context_save() in WidgetStyleCache with a new context r=stransky+263117
This makes balancing with gtk_style_context_restore()/ReleaseStyleContext()
unnecessary, and the style resolution cached in the style contexts is not
invalidated so frequently.

MozReview-Commit-ID: BKwyqoQsjv2

--HG--
extra : rebase_source : 44c82ff74e1e52046799659f3bfa37c7faafeb58
2016-11-23 16:41:57 +13:00
Lee Salzman
e697b24685 Bug 1271100 - work around race in system Cairo's XShm usage. r=karlt
MozReview-Commit-ID: VGee6ungCz
2016-11-29 23:01:13 -05:00
Phil Ringnalda
2160edf69f Backed out changeset eb4be9ed211e (bug 1319650) for reftest and chrome bustage
CLOSED TREE
2016-11-24 19:30:48 -08:00
Karl Tomlinson
777838332c bug 1319650 mimic gtk_style_context_save() in WidgetStyleCache with a new context r=stransky+263117
This makes balancing with gtk_style_context_restore()/ReleaseStyleContext()
unnecessary, and the style resolution cached in the style contexts is not
invalidated so frequently.

MozReview-Commit-ID: BKwyqoQsjv2

--HG--
extra : rebase_source : 2091fc84a9ecb8b55e7d3e36e72cbd03ea826ac8
2016-11-23 16:41:57 +13:00
Karl Tomlinson
dae2522336 bug 1319355 remove unused MOZ_GTK_IMAGEMENUITEM r=stransky+263117
Unused since e7680c5fead3.

MozReview-Commit-ID: DYgeoJDxna9

--HG--
extra : rebase_source : 711a050a98594df315a63c7ffb3606b81e11f53b
2016-11-22 09:17:34 +13:00
Karl Tomlinson
d867015f02 bug 1319355 remove unused gtk_widget_path_append_for_widget stub r=stransky+263117
No longer required after 1693f10ca33e

MozReview-Commit-ID: ErlBjxO0cbl

--HG--
extra : rebase_source : 49a676fbfa3e5e018aeb5de5e08a541bd51856b7
2016-11-18 11:14:21 +13:00
Karl Tomlinson
42b8d039df bug 1319353 CreateCSSNode: Copy classes from the parent style context to its corresponding node in the path r=stransky+263117
This is necessary for GTK to match CSS rules against classes on ancestor nodes
of style contexts constructed from paths.

It can be tested with the following in ~/.config/gtk-3.0/gtk.css

tooltip.background label {padding: 100px;}

MozReview-Commit-ID: EUQ9ndeSl1Z

--HG--
extra : rebase_source : 95c267c5495791a40e755aacf14a80c750fbedd2
2016-11-16 16:55:13 +13:00
Karl Tomlinson
58fe36c651 bug 1315668 CreateStyleForWidget: store classes on context instead of path r=stransky+263117
CreateStyleForWidget() then provides the same behavior with
g_style_context_save() as contexts from widget root style nodes.

MozReview-Commit-ID: 6lRCp3XOoRr

--HG--
extra : rebase_source : ad161eef11e0dc70c8a487c204f109eceac3b1c4
2016-11-15 15:29:06 +13:00
Enes Goktas
032c476db6 Bug 1302855 - Fold browsercomps into xul; r=bsmedberg
MozReview-Commit-ID: 8oaVngXFfh3

--HG--
extra : rebase_source : 2f5e770d04bd3f75778f242e3866b141df5bbff4
2016-09-27 19:54:37 -07:00
Martin Stransky
0bbcee935c Bug 1289763 - Move gImageMenuItemWidget/gCheckMenuItemWidget to WidgetCache, r=acomminos 2016-07-28 03:54:00 +02:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Oliver Henshaw
e76445cfb6 Bug 694570 - (3/4) - Stop using libgnome and libgnomeui on Linux. r=acomminos
(Based on original patch by Chris Coulson.)

Replace session management through libgnome with direct use of libSM and
libICE. This allows xsmp session restore on gtk2 and gtk3 builds.

Changes in behaviour:
- It now only sends the "session-save" notification when the save style
is SmSaveLocal or SmSaveBoth. Saving internal state with a save style of
SmSaveGlobal is actually incorrect. This means that Firefox now
distinguishes between a normal session exit and a session exit with
session saving enabled.
- As "quit-application-requested" might pop up a dialog, it only does
  this if the interact style is not SmInteractStyleNone
- "quit-application-requested" is only sent after sending
  SmcInteractRequest and receiving an interact message.
- It defers closing the connection to the session manager until
  the destructor, i.e after the "web-workers-shutdown" async shutdown
  phase completes. This means that firefox shouldn't be killed too early
  and lose data (*).

* It still might be killed prematurely if it takes too long to quit and
  the session manager decides to timeout, but that's another story.
2016-06-20 08:13:00 +02:00
Karl Tomlinson
8c5debe5af Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : rebase_source : 425a04503441f3edfd4ebbd71a21921013690426
2016-06-07 18:06:04 +12:00
Martin Stransky
a7a4d14c62 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.

MozReview-Commit-ID: 3xhYDliL4iw

--HG--
extra : rebase_source : 690e765e9cde78d0b83b9127ccc6e58fc86d415d
2016-06-07 06:22:00 +02:00
Carsten "Tomcat" Book
976efc5585 Backed out changeset a7334430aef0 (bug 1271523) for valgrind leak
--HG--
extra : rebase_source : 7f597cdb9d4d55f5fa8fc629de657ce95d88788a
2016-06-08 13:46:26 +02:00
Carsten "Tomcat" Book
10d020481e Backed out changeset af36af25ecf4 (bug 1250704)
--HG--
extra : rebase_source : 7e7ad4291b89b8f95ec395c766b7ab4114ca7a49
2016-06-08 13:46:11 +02:00
Karl Tomlinson
1cf78cca84 Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : transplant_source : %19U%DC%0E%14J%BFW%C1%B9-%863%1A%1D%F7%C7%11D%BC
2016-06-07 18:06:04 +12:00
Martin Stransky
34f103fe45 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.
2016-06-07 06:22:00 +02:00
Andrew Comminos
84b261df39 Bug 1277306 - Fallback to a cairo image surface when SHM and XRender are unavailable when drawing to a GDK window. r=lsalzman
MozReview-Commit-ID: 4VPrplGM8uK

--HG--
extra : rebase_source : f072e7b20b5d9a6b5f39ba6c68c4596c0b6ae87b
2016-06-01 14:52:36 -04:00
Karl Tomlinson
49d29c5bf9 bug 1272194 explicitly invalidate after change style contexts belonging to widgets r=stransky+263117
This fixes menu item rendering during hover.

MozReview-Commit-ID: CEa6aorqBZM

--HG--
extra : rebase_source : 19b1d4f26541b8b5a435252552352592791c080d
2016-05-17 18:15:12 +12:00
Karl Tomlinson
a7b88b8021 bug 1272194 don't create a label for menu items r=stransky+263117
The label dates back to GTK2 code and is not currently used.
Removing will allow sharing code with menubar item creation.

MozReview-Commit-ID: LI5t4agot1z

--HG--
extra : rebase_source : f64170f5be3084f45a3221e7c557c5a80c835043
2016-05-17 11:02:25 +12:00
Martin Stransky
14a55c9a93 bug 1234158 add support for GTK 3.20 scrollbars r=karlt
--HG--
extra : transplant_source : %84N%24%B8%1D%80%EE%133%96%B3Y%0B%5D%29%26%18%24%B3%60
extra : histedit_source : 6e54e39b3c2649e4efebb864db2d5ce5d8b7b330
2016-05-09 11:08:26 +12:00
Martin Stransky
a6587e930c Bug 1259433 - remove gtk_widget_style_get() from gtk3drawing, r=karlt a=kwierso
MozReview-Commit-ID: 13VFxv518qc
2016-03-31 14:21:15 -07:00
Karl Tomlinson
bc64779561 bug 1211892 read -unico-border-gradient of early Unico versions for ThreeDHighlight and ThreeDShadow r=acomminos
MozReview-Commit-ID: KWfQqT5MIjT

--HG--
extra : rebase_source : d480fe8538530aafd0b68da9b947f215af119bd1
2016-03-18 22:49:46 +13:00
Karl Tomlinson
2e53e8b7fb bug 1205199 keep the socket alive as long as the plug window r=acomminos
--HG--
extra : rebase_source : 773c5918bbc4b0d032e833e1e0ce7399a5d06c5b
2016-02-10 18:24:40 +13:00
Xidorn Quan
4bbc84cc04 Bug 1189622 part 3 - Return failure if fullscreen support is not available for the X11 desktop. r=karlt
--HG--
extra : source : 26b74750e3c4ff26bc8e467a7d2db6699864d319
extra : amend_source : beb5649f71ff14f68b2073a761159857242ce178
2016-01-12 15:18:47 +11:00
Karl Tomlinson
42c19dece3 bug 1227008 use GtkPaperSize in GtkPageSetup directly, instead of maintaining a separate copy r=acomminos
Fixes a leak in nsPrintSettingsGTK::SetGtkPrintSettings() and
missed paper size copy in operator= (bug 965991).

GtkPageSetup always has a GtkPaperSize [1], which is returned from
gtk_page_setup_get_paper_size() as indicated in the docs [2]:
"Return value: the paper size" without "or NULL".

[1] https://git.gnome.org/browse/gtk+/tree/gtk/gtkpagesetup.c?h=2.18.0#n68
[2] https://git.gnome.org/browse/gtk+/tree/gtk/gtkpagesetup.c?h=2.18.0#n164

--HG--
extra : rebase_source : c554c9cb2c30380301fb4286efb9b52497c10d9d
2015-11-25 11:07:21 +13:00
Andrew Comminos
df747d18d1 Bug 1218008 - Fix progress bar rendering on the Ambiance GTK3 theme. r=karlt 2015-10-29 15:35:49 -07:00
Makoto Kato
26c8790fb2 Bug 978679. Implement touch events for GTK3. r=karlt
--HG--
extra : commitid : 7Sm7XcTb8Do
extra : rebase_source : c10ad90f03b90eb34349edc80be110b90cc2a663
2015-04-30 08:29:34 +12:00
Carsten "Tomcat" Book
81454198ef Backed out changeset 2f909d41108b (bug 978679) for bustage on a CLOSED TREE 2015-10-19 13:22:55 +02:00
Makato Kato
5a68a1b8d5 Bug 978679 - Implement touch events for GTK3. r=karlt
--HG--
extra : commitid : 2tbZZf41zmN
extra : rebase_source : d861252c9bf78b6ffd68dd2c7f14fbf4ef5afdf1
2015-10-19 23:04:52 +13:00
Andrew Comminos
24d5f445ce Bug 1176929 - Disable Ctrl-K in GtkEntry unless custom key bindings are
set on GTK3. r=karlt
2015-10-09 09:22:37 -07:00
Andrew Comminos
ca64242190 Bug 1206516 - Use temporary widget to construct style context for GtkInfoBar. r=karlt 2015-09-29 19:32:00 +02:00
Martin Stransky
952a7c1bfd Bug 1195002 - draw to MozContainer window to allow GTK to draw decorations, r=karlt 2015-09-24 04:50:00 +02:00
Wes Kocher
407f41a2b0 Backed out changeset 1f327c67db57 (bug 1195002) for likely breaking ASAN/mulet tests CLOSED TREE 2015-09-23 09:28:51 -07:00
Martin Stransky
6e2baa8bd8 Bug 1195002 - "titlebar overlaps chrome UI on Linux Elementary OS Freya / with GTK_CSD (Gtk3)". r=karlt 2015-09-23 00:58:00 +02:00
Andrew Comminos
e5e5f9d99f Bug 1170342 - Disable XInput2 by default on GTK3. r=karlt 2015-09-22 22:25:22 -07:00
Petr Jašíček
ff26d1d901 Bug 1198256 - Replace deprecated GtkColorSelectionDialog with GtkColorChooserDialog in Gtk3. r=karlt 2015-09-01 04:09:00 -04:00
Brian Birtles
2a6e6986a9 Bug 1026803 part 8 - Add ability for CurrentX11TimeGetter to perform an asynchronous request of the current time; r=karlt
--HG--
extra : rebase_source : 0f0fa181535e5c0f132cbefc9bc6d3ae2bb69c50
2015-08-12 10:35:38 +09:00
Brian Birtles
1f60d5ca37 Bug 1026803 part 4 - Convert GTK native event times to timestamps; r=karlt
This patch adds a helper class to widgets/gtk/nsWindow.cpp similar to the one in
widgets/windows/nsWindow.cpp and uses it to convert native event times to
mozilla::TimeStamp objects on events returned by this class.

This is similar to the operations performed for Windows native event times that
were added in bug 77992.

--HG--
extra : rebase_source : a6c4769e7da88bb4644edf8954c923a88e1c04fd
2015-08-11 16:40:34 +09:00
Andrew Comminos
bf63f14959 Bug 1187203 - Implement GtkInfoBar appearance style on GTK3. r=karlt 2015-08-21 16:38:15 -04:00
Xidorn Quan
f63a930fb6 Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc
--HG--
extra : source : b3015229dd6997970ce2634b6fcf393f2f702e85
2015-08-13 08:53:53 +10:00
Gabor Krizsanits
8996db91c1 Bug 863512 - Fixing xul dnd panels for linux. r=enndeakin 2015-08-05 13:19:44 +02:00