Commit Graph

65 Commits

Author SHA1 Message Date
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
Andrew Comminos
caa85e1906 Bug 1186661 - Draw drag and drop alpha pixmap correctly on GTK3. r=karlt 2015-07-28 07:13:00 -04:00
Andrew Comminos
482e0ca788 Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt 2015-07-28 06:28:00 -04:00
Carsten "Tomcat" Book
9f95ffe014 Backed out changeset ac04ab483fba (bug 1187649) for bustage on a CLOSED TREE 2015-07-28 13:05:48 +02:00
Andrew Comminos
0dbd6187d5 Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt 2015-07-27 11:21:00 +02:00
Mike Hommey
6a956c6f97 Bug 1187533 - Change how Gtk+2 plugin-container is started on Gtk+3 builds. r=billm
The current situation looks like this: Firefox launches the plugin-container
with two environment variables set:
  LD_LIBRARY_PATH=$FIREFOX_DIR:$LD_LIBRARY_PATH
  LD_PRELOAD=$FIREFOX_DIR/libmozgtk2.so:$LD_PRELOAD

libxul.so has a dependency on libmozgtk.so (without "2"), but libmozgtk2.so
has a SONAME of libmozgtk.so, so ld.so recognizes libmozgtk2.so as a
dependency of libxul.so, and uses it instead of the actual libmozgtk.so,
making the plugin-container use Gtk+2 instead of Gtk+3 to load Gtk+2 plugins.

Now, ASan sets things up in shared libraries such that they needs a symbol
from the executable binary. So in the case of plugin-container, the
plugin-container executable itself contains some ASan symbols such as
__asan_init_v3. libmozgtk2.so, OTOH, contains an undefined weak reference to
that symbol, like all other Firefox shared libraries.

Since libmozgtk2.so is LD_PRELOADed, it is loaded _before_ the
plugin-container executable, and __asan_init_v3 can't be resolved.

Disabling ASan for libmozgtk2.so would be a possibility, but the build system
doesn't really know how to do that, and filtering out -fsanitize=address
can be fragile.

The alternative possibility, implemented here, is to change the library
loading strategy, renaming libmozgtk2.so to gtk2/libmozgtk.so, and setting
the following environment variable when Firefox launches the plugin-container:
  LD_LIBRARY_PATH=$FIREFOX_DIR/gtk2:$FIREFOX_DIR:$LD_LIBRARY_PATH
2015-07-28 08:19:13 +09:00
Xidorn Quan
7ec583cc8f Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc
--HG--
extra : source : ae8bf45b7efcd297ad92039b5ea6985dbfa725e9
2015-07-24 09:45:00 +10:00
Mike Hommey
9ca903bc81 Bug 1063359 - Unconditionally use -Wl,--no-as-needed when building with GNU ld/gold. r=mshal 2015-07-24 06:49:49 +09:00
Andrew Comminos
ce4cdce4b8 Bug 1178799 - Filter X11 SelectionRequest events with an invalid requestor on GTK3. r=karlt
--HG--
extra : rebase_source : cd7370af74195ad1c7736c8148d537e3a47bd4d1
2015-07-13 08:58:00 -04:00
Andrew Comminos
3b68c90816 Bug 1180008 - Define gtk_window_get_window_type in mozgtk. r=karlt
--HG--
extra : rebase_source : a40f50fa12d8d86f62d77cd815c05616ac3136c3
2015-07-06 08:26:00 +02:00
Andrew Comminos
1b154e598d Bug 1176109 - Don't attach menu popups to menubars on GTK3. r=karlt
--HG--
extra : rebase_source : c4edc3f54caa32b7641cd5895732daa7755e7e28
2015-07-06 21:55:00 +02:00
Andrew Comminos
e47140908b Bug 983843 - Switch to GtkOffscreenWindow for drag source widget, fixing ghost tabs on some GTK versions. r=karlt
--HG--
extra : rebase_source : 278ba83eed30b1ff7d0824822a6ab6518f3313f7
2015-06-17 12:20:00 +02:00
Hubert Figuière
40a12f2005 Bug 1174374 - gdk_cursor_new() is deprecated in 3.16. Use gdk_cursor_new_for_display(). r=karlt
--HG--
extra : transplant_source : %DF%15%81%18%1A%93D%ADQ%BDO%3EN4%F7%3E%F9%8B%3C%0D
2015-06-12 22:38:20 -04:00
Jan Horak
1f0864644b Bug 1129873 - [GTK3] Implement wrapper to GtkAppChooserDialog to allow using native application chooser. r=karlt 2015-06-08 04:41:00 -04:00
Andrew Comminos
eb37553168 Bug 1166741 - Workaround for GTK3 bug where file choosers' delegate refcount is not incremented. r=karlt 2015-05-22 06:36:00 +02:00
Blake Kaplan
0fa6a41d07 Bug 1158791 - Try harder to avoid Gtk-Critical errors in xpcshell tests. r=karlt 2015-05-04 10:12:43 -07:00
Lee Salzman
936b4a2716 Bug 1158154 - Add gtk_window_set_auto_startup_notification to mozgtk stubs. r=nical 2015-04-24 16:09:46 +02:00