path: root/vcl/unx/gtk
AgeCommit message (Collapse)AuthorFilesLines
2013-09-03Resolves: rhbz#993963 NULL m_pWindow on firefox deleted pluginCaolán McNamara1-1/+1
(cherry picked from commit 4a4ed52e57b540167c3ca45e6e762b9e21e874de) Conflicts: vcl/unx/gtk/window/gtksalframe.cxx Change-Id: Idb12b12e4313668bf3390a97551c688ee0dcde67 Reviewed-on: Reviewed-by: Michael Stahl <> Tested-by: Michael Stahl <>
2013-08-26rhbz#1000150: Do not call exit upon XIOErrorStephan Bergmann1-7/+5 done in _XIOError (libX11-1.6.0/src/XlibInt.c) after calling the XIOError handler function (either the one supplied with XSetIOErrorHandler or _XDefaultIOError), as that calls the atexit handlers, which can wreak havoc in unrelated threads that happen to be running in parallel, leading to arbitrary crashes. So avoid that by always calling _exit already from our XIOError handler. The old code was careful to /not/ call _exit when the XIOError happened on any thread but the main one, but I do not see the sense of that---after all, _XIOError will inevitably call exit afterwards, so this cannot be a way to "ignore" XIOErrors from special threads (that are set up say for the sole purpose of trying out "known-shaky" activities without affecting the stability of the whole process). And findings like comment 12 to <> "[abrt] libreoffice-core- ICEConnectionWorker thread still running during exit" ("it is very likely that this is not a normal exit from reaching the end of main, but rather some explicit call to exit from some error handling code") make it clear that we apparenly do suffer from such calls to _XIOError -> exit on non-main threads. I have no idea why vcl/unx/gtk has its own XIOErrorHdl that is substantially different from the vcl/unx/generic one, though. cherry picked from commit ffea65915b9cc6d4f3c01f829552702654a040f9, plus follow-up b240a1c188b58e3e717335339bfc3f5e20bb2bf4: rhbz#1000150: Do not call exit upon XIOError, take two The _XDefaultIOError handler (libX11-1.6.0/src/XlibInt.c) already calls exit (even though _XIOError calling _XDefaultIOError would call exit afterwards, too), so our XIOError handler must not call aOrigXIOErrorHandler. Change-Id: Ida7d407cf5f0fa4e719118cab5e725144ceb3a35 Reviewed-on: Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2013-07-11rhbz#980387 fix filter selection from file ext.David Tardon1-1/+21
... for filters that have more than one extension associated with them (e.g., JPEG). (cherry picked from commit 70376f610a7eb876739829e1f362bc94b21cb82f) Signed-off-by: David Tardon <> Conflicts: vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx Change-Id: Ic6b16d3b4aa17580404d02a9fb7b087b9aa52fc2 Reviewed-on: Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2013-07-08fdo#66335: fix fdo#44582 and fdo#63254 differentlyIvan Timofeev1-7/+1
This combines the following cherry picked commits: 1) fdo#66335: gtk: Revert hacks for RTL scrollbars returning false here in getNativeControlRegion results in a fallback to square buttons in vcl scrollbar code. But there is no problem in gtk+ backend in this case, let's fix the problem differently. This reverts commits 898a3e84807bccbb876e3f5583728f6d24e05e9a and e8e82bd2109b82ddd535cdac30303249c6b62942. (cherry picked from commit 48e1d9c7afe5c2a39d9a08d7a38f7c8ff39d8c84) 2) fdo#44582: fix scrollbars in RTL UI (cherry picked from commit e3a801e2454eed2e61202bbacca01fe3fcc20c1d) 3) fdo#63254: correct re-mirroring formula This patch fixes horizontal scrollbar in Calc when a sheet is RTL and UI is LTR. When a particular window (horizontal scrollbar in this case) is RTL and a whole UI is LTR this code used for mirroring and re-mirroring back coordinates. AFAICS mirroring is correct, but re-mirroring is not. The used formula comes from commit 69b684b12e42bf1396bdffca88ca880ac3c2e00b, and the same formula appears in the other variant of overloaded function "mirror": mirror(sal_uInt32, const SalPoint*, SalPoint*, const OutputDevice*, bool), but it does not affect the bug. (cherry picked from commit a08f579e3704fbd97590f9b050d250ae445725a7) Conflicts: vcl/source/control/scrbar.cxx Change-Id: I0ccaa8998fe87403b3606828eaf3f5bd1dbe6bb4 Reviewed-on: Reviewed-by: Bosdonnat Cedric <> Tested-by: Bosdonnat Cedric <> Reviewed-by: Abdulaziz A Alayed <> Tested-by: Abdulaziz A Alayed <> Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2013-06-20fdo#60565 - re-read font data on GtkSettings fontconfig-timestamp notify.Michael Meeks1-6/+31
Change-Id: If1c4d3a7754cc35208e40494828a799f94f26afc Reviewed-on: Reviewed-by: Noel Power <> Tested-by: Noel Power <> Reviewed-on:
2013-06-03fdo#56583 - avoid setting user time on unrealized windows.Michael Meeks1-2/+10
Change-Id: Iab776088b1d168295d636069e1a92ba948241653 Reviewed-on: Reviewed-by: Petr Mladek <> Tested-by: Petr Mladek <>
2013-05-28fdo#63254 UI:Horizontal scroll bar isn't displayed when RTL tabAbdulaziz A Alayed1-2/+3
opened with LTR UI. Change-Id: Iff6899539fe0b1788df7b09f91f850b91bcdb811 Reviewed-on: Reviewed-by: Stephan Bergmann <> Tested-by: Stephan Bergmann <> Signed-off-by: Petr Mladek <>
2013-05-13fdo#64311 - don't encourage the fpicker to give us URLs we can't handle.Michael Meeks2-0/+4
(cherry picked from commit 8659ca5c350b9b08fb5f343c68955cdd6d361c96) Signed-off-by: Fridrich Štrba <> Conflicts: config_host/ Change-Id: Ide7d833801e96a3375909238d036687082f34605 Reviewed-on: Reviewed-by: Michael Meeks <> Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2013-04-30fdo#62815 - tolerate crazy / out-of-bound ScreenNumbers for FullScreenMichael Meeks2-0/+23
Thus making the gtk+ backend more similar to the generic backend in this regard; also be more strict about invalid monitors -> empty screens. Change-Id: Ia4f2e1205cb1d309fb1bb01f9631167339a3478e Signed-off-by: Petr Mladek <>
2013-04-26Resolves: fdo#63802 return true if we have known empty contextCaolán McNamara1-19/+19
i.e. false for "we can't provide context", and true for "we can provide context, even if there isn't any" Still looks to me that there's a bug in the si-phonetic-dynamic im (or something in the stack) that assumes that returning false once means it will always return false and give up for ever fix indent while I'm at it also let si-phonetic-dynamic survive libreoffice losing focus and regain it cycle and still use surrounding text. It should be safe to report that we can provide surrounding text but there isn't any during the time window when there is no focus window, because the focus in event was received but it hasn't arrived yet because that happens on a postuserevent. (cherry picked from commit 21fb092398fb21256b0e546e7f38c5e6de4654f2) Change-Id: I0481c42208953f2a0618aaed7b0d9e9f3e7bda07 Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Miklos Vajna <>
2013-04-04fdo#58807 bring Beep() for basic backThomas Arnhold1-0/+5
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Reviewed-on: Reviewed-by: Thorsten Behrens <> Tested-by: Thorsten Behrens <> (cherry picked from commit 47664d3f2e12649d324b031ca6ffd5589fe3d197) Conflicts: vcl/inc/headless/svpframe.hxx Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: Tested-by: Thomas Arnhold <> Reviewed-by: Miklos Vajna <>
2013-03-16Fix buildFridrich Štrba1-0/+1
Change-Id: I2d203f8fb585b37524e63b94a6d1e15881a11882 Reviewed-on: Reviewed-by: Markus Mohrhard <> Tested-by: Markus Mohrhard <>
2013-03-15Related: rhbz#906137 g_module_symbol returned nothingCaolán McNamara1-6/+2
for gdk_screen_get_primary_monitor but osl_getAsciiFunctionSymbol does the right thing Change-Id: Ibf1a17724a9393d95c4fbe0d26aa82148eea33a9 Reviewed-on: Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2013-03-15Resolves: rhbz#906137 slide show inverts outputsCaolán McNamara1-4/+4
we go to some effort to determine the right value of ret and then throw it away and return 0 regression since 4a7e3482912c90b73d6e12c82bcd9ce31975e3f1 Change-Id: I652cfbe44fdab6560c1c8dc8fe25d6211b5357cb (cherry picked from commit 67aae198f80195e77bd62e7675a372312075b126) Reviewed-on: Reviewed-by: Michael Meeks <> Tested-by: Michael Meeks <>
2013-02-16Resolves: rhbz#910176 cannot select directory with gnome folder pickerCaolán McNamara1-2/+11
<< gtk documentation gtk_file_chooser_get_current_folder_uri () Gets the current folder of chooser as an URI. Note that this is the folder that the file chooser is currently displaying ... which is not the same as the currently-selected folder if the chooser is in GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER mode ... to get the currently-selected folder in that mode, use gtk_file_chooser_get_uri() as the usual way to get the selection. >> << offapi documentation XFolderPicker getDisplayDirectory: Returns the root directory that the FolderPicker is showing. getDirectory Returns the selected directory >> so getDisplayDirectory <-> gtk_file_chooser_get_current_folder_uri and getDirectory <-> gtk_file_chooser_get_uri Change-Id: Iaa5ab16a250cd59fe5e8bd02149298eef6d1dec2 (cherry picked from commit 914de32b27c7fe164b21f9247275ee3117c0864b) Reviewed-on: Reviewed-by: Björn Michaelsen <> Tested-by: Björn Michaelsen <>
2013-01-30fdo#44582 fixing horizontal scroll bar in sub windowsAbdulaziz A Alayed1-1/+6
Change-Id: Ifea57dec77c5b23771684a1e46267f8431478075 Reviewed-on: Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <> Reviewed-on: Tested-by: Lior Kaplan <> Reviewed-by: Miklos Vajna <>
2013-01-14export cleaned up dotted version in environment and GtkWindow user-data.Michael Meeks2-5/+5
Change-Id: If865127a9a5560f4b3636fb870699e2f3bac0e83 Signed-off-by: Noel Power <>
2012-12-03fdo#45651: fix drop down listbox text color with dark gtk themeIvan Timofeev1-0/+2
Change-Id: I9ba0b27924d1698bad2c34da75fff57f75a737f0
2012-11-30avoid circular dep between vcl and frameworkDavid Tardon1-4/+6
Change-Id: Ibcb547b2b911d382eafa1fd8a9adb2e8b6efbfe2
2012-11-29API CHANGE a11y unpublishing and add/removeListener rename.Thorsten Behrens2-3/+3
The a11y API has never really been picked up by tools vendors, let's not tie ourselves up here for no good reason. This unpublishes all css::accessibility, and dependend API. With that, we can change the rather unfortunately-named add/ removeEventListener to be add/removeAccessibleEventListener, thus not conflicting with the XComponent methods of the same name. Change-Id: I595598c3a8e46415f80b2780f333333174865fe4
2012-11-28get vcl building on RHEL-5Caolán McNamara1-0/+6
Change-Id: I01dc490d09fbe4bd0cce34b7e93afd36dd517f25
2012-11-28Remove useless method SetBackgroundBitmapMarcos Paulo de Souza1-46/+0
Thomas Arnhold asked me to take a look at the method SetBackgroundBitmap. In my XFCE, removing this method didn't chnage anything. So this needs more tests in Windows and other WM's. Change-Id: I3e10bea4eac114326ff981fb21ba0d292818b1da Signed-off-by: Marcos Paulo de Souza <>
2012-11-27fdo#46808: Missing adaptions to XFolderPicker2Stephan Bergmann3-11/+5
c988da288ec473a28f61ebb53aa3ff82bab11ef4 "fdo#46808, Adapt ui::dialogs::FolderPicker UNO service to new style" had left some FolderPicker implementations at XFolderPicker, so creating them caused DeploymentExceptions. Change-Id: I3463161f9bb87a69a2777c331eb5b93d487790b0
2012-11-22Use ENABLE_GMENU_INTEGRATION consistentlyStephan Bergmann1-3/+5
Change-Id: I576bfa41b0dce0cba8c92c123f8747cf619fcffb
2012-11-22add version string to GtkWindow's to help theme authors.Michael Meeks1-1/+8
Change-Id: I3b03dc67de563e5d87fb85c0566fc411e372c690
2012-11-22AllSettings with LanguageTagEike Rathke2-2/+3
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-21UnityMenu: ensure ENABLE_GMENU_INTEGRATION is actually ever setThorsten Behrens4-5/+12
Change-Id: I6b7dfd5dd80f45c216c9ec240a390b6434a12672
2012-11-21UnityMenu: don't build when ENABLE_GMENU_INTEGRATION is not onThorsten Behrens4-1/+18
Change-Id: Iba9e6c3d2483a20ed3ec33b85b4c5f78830fd2f6
2012-11-18gtk: don't make editboxes taller than neededIvan Timofeev1-1/+1
Change-Id: I248d6668d1e9c5ec834cd8268d853ec03a2f859b
2012-11-15glib / dbus version checks strangely ommitted from the merge.Michael Meeks1-4/+5
2012-11-15gtk-a11y: unwind re-enterancy / lifecycle hazard at least a little.Michael Meeks1-7/+14
2012-11-14hud_activated here surely should have been hud_activeCaolán McNamara1-1/+1
Change-Id: Id324a31295b0c6836a1e9516ac070d4042c5c3f2
2012-11-14update license header for Canonical contributionBjoern Michaelsen4-70/+18
Change-Id: I5bb1b92929686ced48415c4d0198fa3fa2f2f0e3
2012-11-14cleanup gmenu conditionals, remove redundant casts.Michael Meeks1-24/+12
Change-Id: I51ee0f6c8671c914626cf4332408b4e2b4918b47
2012-11-14misc dbus menu integration fixesMichael Meeks2-39/+26
Re-declare GMenuModel / GActionGroup if we don't have a recent enough gio. Fix a number of compile warnings. use the standard gnumake macros / linking for ENABLE_GIO & ENABLE_DBUS Initialize GDBusInterfaceVTable cleanly. Take the Solar Mutex on hud_activated. Change-Id: Ie0c1d6e75c4be857f0db1adad36418dd1693f63e
2012-11-14gbooleans are true if non-zero, bin == TRUE comparisons.Michael Meeks2-8/+8
Change-Id: Ieb6c73993b3ef3854d81fdeb81661d75f1fe954f
2012-11-14only enable unity integration with enabled dbus and gioBjoern Michaelsen2-5/+36
Change-Id: I418e3c57e7c201529020864b1f4677ec4c24e2c8
2012-11-14Removed AbstractMenu class and cleaned up useless code.Antonio Fernandez1-8/+0
Change-Id: I4094302b83342fd42bccad4966b51624215d71ff
2012-11-14Menu is fully updated when receiving a HUD activation event.Antonio Fernandez1-1/+8
Change-Id: I4d275bc01ac0baa265d22dcd849020e8f51fc447
2012-11-14Menu is now subscribed to HUD awareness protocol events.Antonio Fernandez1-5/+15
Change-Id: I0649ac50a93b3b6379642fac4d5d532d46251d72
2012-11-14Added missing files for HUD awareness support.Antonio Fernandez1-0/+126
Change-Id: If3544734e8c4a1c632a24976e9340ef84869d22a
2012-11-14Added files to implement HUD awareness protocol support.Antonio Fernandez1-0/+1
Change-Id: I1ce292811b0ac53c35b5a9026a1c1a4f4ef02cf4
2012-11-14Duplicated commands are now handled properly.Antonio Fernandez1-27/+24
Change-Id: I80dd2d05060dcad3c6375a4e1c7b2109e451169b
2012-11-14Added ImplUpdate method to provide recursive and non-recursive menu updating.Antonio Fernandez1-139/+17
Change-Id: Ifd4b3f0d68f4919a10f97d6681bfd0002fa48c7a
2012-11-14Some code refactoring.Antonio Fernandez2-21/+20
Change-Id: I47d9be121898ca66f73488be4b46cc16cc4013a9
2012-11-14Only activated submenus are generated when activating them. (Broken)Antonio Fernandez1-2/+138
Change-Id: I9548a2c8dfec114de3133d55ca00362793b71a6c
2012-11-14Fixed menu visibility and cleaned up some code.Antonio Fernandez4-151/+28
Change-Id: Ibda3c5d6f50d12041065f28ddd41eab57ae9560e
2012-11-14Chart menu works now.Antonio Fernandez4-93/+214
Change-Id: I95861a5af8b9c72c74840868d0530d5855b87785
2012-11-14Menus now work properly when opening an application from LO's main screen.Antonio Fernandez1-3/+6
Change-Id: Ib4947f5b48f508d66beab6952098c8d27e03ad21
2012-11-14Added a hack to make "Slide Show" menu item on "Slide Show" menu work.Antonio Fernandez1-11/+26
Change-Id: I6c3865227702325e7f1545be893eb05b19c2e09f