1. 10 Mar, 2015 8 kayıt (commit)
    • Matthew Brush's avatar
      Replace dynamic exports with codegen for GtkBuilder callbacks · 1d64d521
      Matthew Brush yazdı
      This prevents having to export those callbacks and put them in the
      global namespace. Also, use inline shell script in Makefile.am instead
      of a Python script which should be more portable (by default) and gets
      rid of the helper script.
      1d64d521
    • Matthew Brush's avatar
      Improve Autotools build system for libgeany · eb36500a
      Matthew Brush yazdı
      Checks if the compiler supports -fvisibility and the linker supports
      -dynamic-list arguments and use them instead of hardcoding. The new
      geany-lib.m4 also accomodates future use of Libtool versioning.
      eb36500a
    • Matthew Brush's avatar
      Move Geany's core into a library (libgeany) · d33758da
      Matthew Brush yazdı
      This will allow plugins to link against the core when accessing API
      functions, now that the macro/struct/funcptr stuff is gone.
      
      Also convert the helper libraries into Libtool helper libraries as
      linking a shared library against static libraries is (apparently) not
      portable.
      d33758da
    • Matthew Brush's avatar
      Remove struct/macro/funcptr linkage control for plugin API · 860df276
      Matthew Brush yazdı
      Add rest of headers needed for declarations of all public API
      functions. Add HAVE_PLUGINS define to geanyplugins.h since some headers
      need this and it should always be valid for this header.
      geanyfunctions.h left for source-level backwards compatibility for
      plugins which might `#include` this header directly. I don't know why
      they do it, but some Geany-Plugins do this.
      860df276
    • Matthew Brush's avatar
      Remove redundant GEANY_EXPORT_SYMBOL usage in callbacks.h · 1e630e6f
      Matthew Brush yazdı
      It only needs to be specified in one place for each function.
      1e630e6f
    • Matthew Brush's avatar
      Change to GEANY_EXPORT_SYMBOL for callback functions · 056e7cb4
      Matthew Brush yazdı
      This allows them to be dynamically exported when -fvisibility=hidden
      is applied.
      
      TODO: remove the CFLAGS hack in configure.ac
      056e7cb4
    • Matthew Brush's avatar
      Mark all plugin API functions to have "default" (public) visibility · 2f086707
      Matthew Brush yazdı
      Adds a new header `pluginexport.h` to put the macros in, could be
      moved into an existing header (support.h?) by I didn't want to drag
      a bunch of existing stuff into the source files for this one macro.
      
      TagManager has relative include, this could be fixed by changing the
      include directories for it if it's a problem. Mark the Scintilla
      functions exported by re-declaring them in sciwrappers.c with the
      attribute to avoid changing upstream Scintilla code.
      2f086707
    • Matthew Brush's avatar
      Explicitly list symbols to dynamically export · a40ab0a4
      Matthew Brush yazdı
      Uses a Python script to generate a listing used by the linker to
      determine which symbols to dynamically export. This provides finer
      grained control of which symbols are dynamically exported, limiting
      only to the ones needed for GtkBuilder signal connections.
      
      The build system integration could probably be done a little cleaner.
      a40ab0a4
  2. 08 Mar, 2015 3 kayıt (commit)
  3. 06 Mar, 2015 3 kayıt (commit)
  4. 05 Mar, 2015 1 kayıt (commit)
    • Jiří Techet's avatar
      Disable "rules hint" for the Documents tab · 8d19ea4c
      Jiří Techet yazdı
      The "rules hint" property is used to tell the theme for which TreeView
      even/odd rows should have a different color. This is typically used for
      long rows or rows which need to be visually separated for some reason.
      
      Currently the Documents sidebar view uses it which doesn't make much
      sense because the row is short and neither of the other tabs in the sidebar
      use it.
      8d19ea4c
  5. 04 Mar, 2015 20 kayıt (commit)
    • Colomban Wendling's avatar
      Merge branch 'techee/leaks' · e1c35d2d
      Colomban Wendling yazdı
      Merges PR #417.
      e1c35d2d
    • Frank Lanitz's avatar
      Update of German translation · a40acf52
      Frank Lanitz yazdı
      a40acf52
    • Colomban Wendling's avatar
      Explicitly initialize some variables for which we use the default value · 709cbd51
      Colomban Wendling yazdı
      This does not change anything in practice because static variables are
      initialized implicitly as we need them anyway, but this makes things
      clearer and more explicit.
      709cbd51
    • Colomban Wendling's avatar
      Merge pull request #418 from b4n/spell-windows-windows · e0116ccd
      Colomban Wendling yazdı
      Spell "Windows" as "Windows", not "Win".
      e0116ccd
    • Colomban Wendling's avatar
    • Colomban Wendling's avatar
      Merge pull request #431 from techee/absolute_prjname · 96e2635a
      Colomban Wendling yazdı
      Always use absolute path when opening projects from command-line
      96e2635a
    • Jiří Techet's avatar
      Always use absolute path when opening projects from command-line · 51ce1018
      Jiří Techet yazdı
      At the moment when geany project is loaded from commandline using
      e.g. "geany myproject.geany", the relative path is used by geany
      so e.g. Project->Recent Projects shows the relative path instead of
      the absolute one (also if the project is already in the list with an absolute
      path, additional entry with relative path is created).
      
      Use main_get_argv_filename(), which is already used for ordinary files,
      also for opening .geany files.
      51ce1018
    • Colomban Wendling's avatar
      Merge pull request #419 from techee/osx-integration · 05e19be0
      Colomban Wendling yazdı
      OS X integration
      05e19be0
    • Colomban Wendling's avatar
      Merge pull request #426 from techee/run_script_tmp · b032f2e2
      Colomban Wendling yazdı
      Create geany_run_script.sh in the temporary directory instead of the
      working directory.
      b032f2e2
    • Nick Treleaven's avatar
      Merge pull request #430 from techee/fix_warning · 185d4fff
      Nick Treleaven yazdı
      Fix compiler warning
      185d4fff
    • Jiří Techet's avatar
      Fix compiler warning · 9df204ab
      Jiří Techet yazdı
      9df204ab
    • Jiří Techet's avatar
      7fa8b3a6
    • Jiří Techet's avatar
      Don't use single menu for "New with template" shared by toolbar and menubar · a9912c3c
      Jiří Techet yazdı
      The current implementation uses single menu for the toolbar and
      menubar and reparents it when file menu is shown/hidden.
      Connectiong "show"/"hide" signals doesn't work for menu items
      on OS X (and I suppose Ubuntu either) so the template submenu is
      never shown in the File menu.
      
      The easiest fix seems to be having two identical menus the same
      way we have them for recent files.
      a9912c3c
    • Jiří Techet's avatar
      Check disk status when Geany enters foreground · 3031ac7e
      Jiří Techet yazdı
      Since we have a simple way to check Geany has entered foreground
      on OS X, use it to check the current document's disk status.
      3031ac7e
    • Jiří Techet's avatar
      Don't use expose-event/draw signals of the menu · 2e1dc7ae
      Jiří Techet yazdı
      The expose-event/draw signals were used to reenable the menu
      after it has been disabled when VTE overrides the given keybinding.
      This doesn't work on OS X where GtkMenuBar isn't displayed
      (there may be a similar problem with the global menubar on
      Ubuntu).
      
      The reason why these signals were used was probably slight
      flickering of the menubar when using ordinary g_idle_add() to
      reenable the menu (the dimmed menu gets drawn after which
      it gets reenabled and redrawn non-dimmed). It is however possible
      to use idle function with higher than redraw priority in which case
      the menu is enabled before the redraw so the dimmed menu
      isn't drawn at all.
      
      Fixes https://sourceforge.net/p/geany/bugs/1081/
      2e1dc7ae
    • Jiří Techet's avatar
      Add right-click launcher icon entry creating a new window · 232d4dac
      Jiří Techet yazdı
      Normal clicking the launcher icon just brings the application to
      the foreground so there must be a way users can create a new
      instance of Geany.
      
      Add an entry "New Window" to the context menu which is shown
      when right-clicking the Geany icon in the launcher (most applications
      have the "New Window" entry there).
      
      In addition, fix "Open in new window" when using app bundle.
      
      Since both of these functionalities create a new Geany instance,
      factor-out the instance creation code into a new utility function
      and use it in both cases.
      232d4dac
    • Jiří Techet's avatar
      React to various useful gtk-mac-integration signals · 56288576
      Jiří Techet yazdı
      NSApplicationBlockTermination signal is emitted when clicking
      the Quit menu to check whether the application permits
      quitting - react accordingly.
      
      ---
      
      NSApplicationOpenFile signal is emitted when
      
      * file is dragged on the application icon
      * application is selected from "Open with" menu after right-clicking
      the file
      * when double-clicking a file for which the application is default
      editor/viewer
      * when file is opened from command-line
      
      When the application isn't running, it is first started and then this
      signal is emitted.
      
      Use the signal to open files. In addition, when the opened file
      has the ".geany" suffix, open it (but only if the project isn't already
      open). The project has to be opened in idle function because blocking
      the signal handler for a long time by the project-close confirmation
      dialog causes problems.
      56288576
    • Jiří Techet's avatar
      Use global menubar on OS X · ada45952
      Jiří Techet yazdı
      We have to disable quartz accelerator handling because otherwise
      accelerators are performed also from other windows than the main
      Geany editor (e.g. Ctrl+V with find dialog open performs the keybinding
      Ctrl+V and inserts the text to the editor).
      
      OS X applications have an extra menu entry to the left of the File menu -
      an "application menu". This menu usually contains About, Preferences,
      Quit. Many users, however, may be used to Geany from other platforms
      and expect Preferences to be under the Edit menu so leave them there.
      Quit and About are rarely used and the application menu is the place where
      they are supposed to be - move these entries from other Geany menus there
      and hide them in the affected menus (the quit entry is inserted automatically,
      we just need to hide it from File).
      
      Also tell OS X the Help menu is dedicated to help (we get search in
      menu entries by name for free thanks to this).
      
      The global menu should refresh automatically based on user actions.
      Unfortunately this is not the case when gtk_menu_reorder_child()
      is used because it does not emit any signals so the gtk-mac-integration
      library doesn't see this call. Refresh the menu manually after calling
      this function.
      ada45952
    • Jiří Techet's avatar
      Use gtk-mac-integration so app bundle can be created on OS X · 18d517bd
      Jiří Techet yazdı
      This patch adds the gtk-mac-integration library and uses it to
      adjust various paths in Geany to point it inside the app bundle
      if Geany runs from inside the bundle.
      
      It adds the utils_resource_dir() utility function to return
      correct directories for various kinds of resources for all supported
      operating systems. Using this function the patch adjusts all Geany
      resource, plugin, icon, doc, and locale paths.
      18d517bd
    • Jiří Techet's avatar
      Create geany_run_script.sh in the temporary directory instead of the working directory · 7b5df86b
      Jiří Techet yazdı
      Under some conditions, geany_run_script.sh is not deleted and we
      have no means to detect this in Geany (e.g. when the terminal emulator
      is started correctly but it fails to execute the script for some reason).
      In this case it is better to keep the garbage in /tmp than the working
      directory. Apart from that, it eliminates potential transfer of the run script
      over a NFS and eliminates the visibility of the script in working directory
      on Windows.
      
      Apart from that this patch fixes some locale/utf8 conversion problems
      and other subtle problems with the previous implementation.
      7b5df86b
  6. 03 Mar, 2015 4 kayıt (commit)
  7. 28 Şub, 2015 1 kayıt (commit)