4 Commits

Author SHA1 Message Date
Nic
cc493b9b9b Add C tags to the taglist plugin (#188)
Added tags for:
 - Including stdio.h
 - `include` statements
 - The `main` function
 - Comments and multi-line comments
 - `printf` statements
2018-02-19 11:52:10 +00:00
Leigh Scott
4c813f2c7f Fix Py*DeprecationWarning (#202) 2018-02-03 10:26:28 +00:00
Leigh Scott
50b01551ac Fix clang compile issue (#209) 2018-01-30 10:09:43 +00:00
Clement Lefebvre
d5ccae34be Add CI configuration 2018-01-23 10:37:51 +00:00
4 changed files with 112 additions and 2 deletions

70
.circleci/config.yml Normal file
View File

@@ -0,0 +1,70 @@
version: 2.0
shared: &shared
steps:
- checkout
- run:
name: Prepare environment
command: apt-get update
- run:
name: Install dependencies
command: |
wget https://github.com/linuxmint/xapps/releases/download/master.${CIRCLE_JOB}/packages.tar.gz -O xapps.tar.gz
ls *.tar.gz | xargs -i tar zxvf {}
apt install --yes --allow-downgrades ./packages/*.deb
rm -rf packages
- run:
name: Build project
command: mint-build -i
- run:
name: Prepare packages
command: |
if [ -z $CI_PULL_REQUEST ]; then
mkdir /packages
mv /root/*.deb /packages/
git log > /packages/git.log
cd /
tar zcvf packages.tar.gz packages
fi
- run:
name: Deploy packages to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
apt-get install --yes unzip
unzip ghr_v0.5.4_linux_amd64.zip
TAG="master".$CIRCLE_JOB
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /packages.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /packages.tar.gz
fi
jobs:
"mint18":
<<: *shared
docker:
- image: linuxmintd/mint18-amd64
"mint19":
<<: *shared
docker:
- image: linuxmintd/mint19-amd64
"lmde3":
<<: *shared
docker:
- image: linuxmintd/lmde3-amd64
workflows:
version: 2
build:
jobs:
- "mint18"
- "mint19"
- "lmde3"

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<TagList xmlns="http://xed.sourceforge.net/some-location">
<TagGroup _name="C - Tags" sort="true">
<Tag name="STDIO">
<Begin>#include &lt;stdio.h&gt;</Begin>
</Tag>
<Tag name="include">
<Begin>#include </Begin>
</Tag>
<Tag name="main">
<Begin>int main() {
</Begin>
<End>
}</End>
</Tag>
<Tag name="Comment">
<Begin>/* </Begin>
<End> */</End>
</Tag>
<Tag name="Multi-Line Comment">
<Begin>/*
* </Begin>
<End>
*/</End>
</Tag>
<Tag name="printf">
<Begin>printf("</Begin>
<End>");</End>
</Tag>
</TagGroup>
</TagList>

View File

@@ -34,7 +34,7 @@ MENU_PATH = "/MenuBar/ViewMenu/ViewOps_1"
class TextSizePlugin(GObject.Object, Xed.WindowActivatable): class TextSizePlugin(GObject.Object, Xed.WindowActivatable):
__gtype_name__ = "TextSizePlugin" __gtype_name__ = "TextSizePlugin"
window = GObject.property(type=Xed.Window) window = GObject.Property(type=Xed.Window)
def __init__(self): def __init__(self):
GObject.Object.__init__(self) GObject.Object.__init__(self)
@@ -119,7 +119,7 @@ class TextSizePlugin(GObject.Object, Xed.WindowActivatable):
manager = self.window.get_ui_manager() manager = self.window.get_ui_manager()
# Create a new action group # Create a new action group
self._action_group = Gtk.ActionGroup("XedTextSizePluginActions") self._action_group = Gtk.ActionGroup(name="XedTextSizePluginActions")
self._action_group.add_actions([("LargerTextAction", None, _("_Larger Text"), self._action_group.add_actions([("LargerTextAction", None, _("_Larger Text"),
"<Ctrl>equal", None, "<Ctrl>equal", None,
self.on_larger_text_activate), self.on_larger_text_activate),

View File

@@ -904,6 +904,8 @@ xed_utils_is_valid_location (GFile *location)
return is_valid; return is_valid;
} }
static GtkWidget *handle_builder_error (const gchar *message, ...) G_GNUC_PRINTF (1, 2);
static GtkWidget * static GtkWidget *
handle_builder_error (const gchar *message, handle_builder_error (const gchar *message,
...) ...)