diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-terms/gnome-terminal |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-terms/gnome-terminal')
-rw-r--r-- | x11-terms/gnome-terminal/Manifest | 9 | ||||
-rw-r--r-- | x11-terms/gnome-terminal/files/gnome-terminal-3.22.0-transparency.patch | 463 | ||||
-rw-r--r-- | x11-terms/gnome-terminal/gnome-terminal-3.22.2.ebuild | 73 | ||||
-rw-r--r-- | x11-terms/gnome-terminal/gnome-terminal-3.24.2.ebuild | 82 | ||||
-rw-r--r-- | x11-terms/gnome-terminal/metadata.xml | 12 |
5 files changed, 639 insertions, 0 deletions
diff --git a/x11-terms/gnome-terminal/Manifest b/x11-terms/gnome-terminal/Manifest new file mode 100644 index 000000000000..3a9b0ddf2338 --- /dev/null +++ b/x11-terms/gnome-terminal/Manifest @@ -0,0 +1,9 @@ +AUX gnome-terminal-3.22.0-transparency.patch 21283 SHA256 70aa720e948aebd24d548f1abe7561820befac61c30bc0fbfd887b900d690431 SHA512 b4c92b2c660aa365657d84d3c485dd930870200f6cc8a4ce629a9a6cf818b783f8646390989fefcb99098e5b211d3cf406b855b0f88e6e008f8b216f627b0ecf WHIRLPOOL 0ff2cc3ffae06d7e0f2f8050b1b6b284dfde4c5a072b2119bee0c536fec277bfbdf9db80c9914feadf788f76aaf15095b050faa948ab62495b4d855a280873ff +DIST gnome-terminal-3.22.2.tar.xz 1952372 SHA256 9a5fa5ecad5ac74e8e125bbd201e15e03c794df4cf4a662eab53eaa3523dfc58 SHA512 3fa550c49c35d53c220d1f7a3f3d49d5130e3dd4af657e05627782abb84a449c6632a9919f5a97c78a5b9d92137e8d4bd68d8b880cd86203f866b85b9cda3db3 WHIRLPOOL a7e8333211199d5bd3d6c72f5a561ec67e443036039b1dfe99309c79cf9fc2f23bb419a7a5da59b7ddb24f2edeece28195bf225d61282380d4eee9ff6c90bfdb +DIST gnome-terminal-3.24.2.tar.xz 1960952 SHA256 281edac30a07ca45beaaaf0a13fe2219cf8b87ece5e55dccbfc49ef769dfec0f SHA512 08cd7b1b08cf22618554b1a051dcfee4a967165bfe93b77a6bc8b0c935695101e773e8d53a482d71aadb9ba7be7ac991d82dbf53b7a6f74f1f5144e4158f8a93 WHIRLPOOL e3f7b6528edc8f257d1c43abc1ee07b8ae1c8c1dfb1e2ae0dae727ba5c3f7f90c06df92eb84b37ef6f52b6338b732e7e3af14729a9ddad887cce64142e784911 +DIST gnome-terminal-notify-open-title-transparency.patch.xz 37448 SHA256 7b83879f7035be77528b68328fed18018ae459792f7f22fae5e3d8b631d7e2cf SHA512 9af0d56df105a5bdb81b2609794669557a7f442f71b240ee10a6411fab20ad74c14489dbb9a536e208515053ea17776b3a15afb3b949a75a66f8c2ab3dbbff96 WHIRLPOOL 2059fc03a98a76b1f15e9adc7d0002daf3d337960d5d90dac9ae5d551762c18fcbc9530b32afa02edf0e5bd58140267bffbf99c9d50268338784428fe5244329 +EBUILD gnome-terminal-3.22.2.ebuild 2005 SHA256 616f1cafd63f0f4ce7fa2c0a6967f431913366220cf2b80e7acc2e3af26fe17f SHA512 2851a6b477c8acebb9ad84b79181d77042446b51659eacf01aae75453ccc990518b1a149bbe2dd26b00062e07227f5e4e15fd375044410494c245cf5fc1e97da WHIRLPOOL c48f0d5711641c14305348754d6f8a1ed03548c3dc855ba7af9c39b0848297b0def9f763115ea3e722b43472f550aff5b6f791843a45410f40f3d505a0dee66a +EBUILD gnome-terminal-3.24.2.ebuild 2614 SHA256 0a35a862d5a27e863c05f9ca9d50013af5124f06174a2e8694201ee6a6370e25 SHA512 515d9e38de1c9cdc6a31ec5af0391ad81f4ef756e40fccbb41af60acb8c94405371abe5c5aff2a029f7fa713ccd08539d363a08d557757faa914fbbde15a31ce WHIRLPOOL 7baea13ecce8e09859db0877a9d1849338f976f84c2160988403e8ef5db7ac500d27499d42fb44f75753cba17490ec791fea45f7c478d55a90a5cf1a85e7fe28 +MISC ChangeLog 7190 SHA256 8f879d25d67616c942e18e997fac9447ef8b07d8bf1f64dc5c958355918563ac SHA512 4cc047666ece5fffc7a42572eea10defa217774f553af4e8850de0d65e55dfc3c4517f362b75d9ff739c1331cbe4cb47d398b0ad7e6017e6378cde1d911d335b WHIRLPOOL 70fb2599f0046550ff152251e8209f4238a1c5361cb9f55c298631e0cf3fb178a678ca2a01abf6d91dd862773d64577869920f5be1b6bc26e1f67b4b09d6072f +MISC ChangeLog-2015 45392 SHA256 6386509fda7a6ee0a9c8ac757bb87be68d8ff2bf1f78af5a0481595edadb6d4e SHA512 b046c7d97ab8eaf1e192632e86dc25de769590cd128eedb5dbc2b3bd9afaa7b606fe5b7eff82be25bec75cb07ce068f7b76eaf867303c9fa09262daee4aa6072 WHIRLPOOL 428af5d48b300cb804166056c583f97551370e96087c171b6b24b47fd34b93c02a3173bc96d26dbe256f0671cf0dbbf67e644dd557d41b0e79d026191415e785 +MISC metadata.xml 417 SHA256 13622945e7760a98312d19565c5432fb22c2fa0e9dfa7205759ddf2b2467f22f SHA512 a41ea1b6fc9d3dcbdf296590b206f924cb42c7dea27b68f593eb3e50aa37c6dd3df20b47c34f8cca2671dacd4fba6ec0f86caebebe6f66d496b7936d3cf0a688 WHIRLPOOL 08a197270b7c87b0464391cec5d11ca7921754f153b699460c9fff162bfaf49dc13207197ae42f70f0cf36aa2bb859069c560b685a221e3ce7ebf5cbeebd1860 diff --git a/x11-terms/gnome-terminal/files/gnome-terminal-3.22.0-transparency.patch b/x11-terms/gnome-terminal/files/gnome-terminal-3.22.0-transparency.patch new file mode 100644 index 000000000000..981fc6d13197 --- /dev/null +++ b/x11-terms/gnome-terminal/files/gnome-terminal-3.22.0-transparency.patch @@ -0,0 +1,463 @@ +From 000785a2194012702c5245b0ac69b0003371bcdd Mon Sep 17 00:00:00 2001 +From: Debarshi Ray <debarshir@gnome.org> +Date: Mon, 12 May 2014 14:57:18 +0200 +Subject: [PATCH 1/3] Restore transparency + +The transparency settings were removed as a side effect of +2bff4b63ed3ceef6055e35563e9b0b33ad57349d + +This restores them and you will need a compositing window manager to +use it. The background image setting, also known as faux transparency, +was not restored. + +The transparency checkbox lost its mnemonic accelerator because 't' +is already taken and using any other letter would make it hard to +restore the translations of the string. +--- + src/org.gnome.Terminal.gschema.xml | 10 +++++ + src/profile-editor.c | 11 +++++ + src/profile-preferences.ui | 92 ++++++++++++++++++++++++++++++++++++++ + src/terminal-schemas.h | 3 ++ + src/terminal-screen.c | 22 ++++++++- + src/terminal-window.c | 7 +++ + 6 files changed, 144 insertions(+), 1 deletion(-) + +diff --git a/src/org.gnome.Terminal.gschema.xml b/src/org.gnome.Terminal.gschema.xml +index c031c8a..7bdd156 100644 +--- a/src/org.gnome.Terminal.gschema.xml ++++ b/src/org.gnome.Terminal.gschema.xml +@@ -370,6 +370,16 @@ + <default>'narrow'</default> + <summary>Whether ambiguous-width characters are narrow or wide when using UTF-8 encoding</summary> + </key> ++ <key name="use-transparent-background" type="b"> ++ <default>false</default> ++ <summary>Whether to use a transparent background</summary> ++ </key> ++ <key name="background-transparency-percent" type="i"> ++ <default>50</default> ++ <range min="0" max="100"/> ++ <summary>Adjust the amount of transparency</summary> ++ <description>A value between 0 and 100, where 0 is opaque and 100 is fully transparent.</description> ++ </key> + </schema> + + <!-- Keybinding settings --> +diff --git a/src/profile-editor.c b/src/profile-editor.c +index 002561d..1a758a9 100644 +--- a/src/profile-editor.c ++++ b/src/profile-editor.c +@@ -1215,7 +1215,18 @@ terminal_profile_edit (GSettings *profile, + "active-id", + G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); + ++ g_settings_bind (profile, TERMINAL_PROFILE_USE_TRANSPARENT_BACKGROUND, ++ gtk_builder_get_object (builder, "use-transparent-background"), ++ "active", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); ++ g_settings_bind (profile, TERMINAL_PROFILE_USE_TRANSPARENT_BACKGROUND, ++ gtk_builder_get_object (builder, "background-transparent-scale-box"), ++ "sensitive", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY); ++ g_settings_bind (profile, TERMINAL_PROFILE_BACKGROUND_TRANSPARENCY_PERCENT, ++ gtk_builder_get_object (builder, "background-transparent-adjustment"), ++ "value", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET); ++ + /* Finished! */ ++ + terminal_util_bind_mnemonic_label_sensitivity (editor); + + terminal_util_dialog_focus_widget (editor, widget_name); +diff --git a/src/profile-preferences.ui b/src/profile-preferences.ui +index 5adcb53..b7decb2 100644 +--- a/src/profile-preferences.ui ++++ b/src/profile-preferences.ui +@@ -23,6 +23,11 @@ + <property name="step_increment">1</property> + <property name="page_increment">100</property> + </object> ++ <object class="GtkAdjustment" id="background-transparent-adjustment"> ++ <property name="upper">100</property> ++ <property name="step_increment">1</property> ++ <property name="page_increment">10</property> ++ </object> + <object class="GtkListStore" id="cjk-ambiguous-width-model"> + <columns> + <!-- column-name gchararray --> +@@ -1036,6 +1041,93 @@ + <property name="position">1</property> + </packing> + </child> ++ <child> ++ <object class="GtkBox" id="use-transparent-background-box"> ++ <property name="visible">True</property> ++ <property name="can_focus">False</property> ++ <property name="orientation">horizontal</property> ++ <property name="spacing">12</property> ++ <child> ++ <object class="GtkCheckButton" id="use-transparent-background"> ++ <property name="label" translatable="yes">Transparent background</property> ++ <property name="visible">True</property> ++ <property name="can_focus">True</property> ++ <property name="receives_default">False</property> ++ <property name="use_underline">True</property> ++ <property name="xalign">0</property> ++ <property name="draw_indicator">True</property> ++ </object> ++ <packing> ++ <property name="expand">False</property> ++ <property name="fill">False</property> ++ <property name="position">0</property> ++ </packing> ++ </child> ++ <child> ++ <object class="GtkBox" id="background-transparent-scale-box"> ++ <property name="visible">True</property> ++ <property name="can_focus">False</property> ++ <property name="orientation">horizontal</property> ++ <property name="spacing">6</property> ++ <child> ++ <object class="GtkLabel" id="background-transparent-min-label"> ++ <property name="visible">True</property> ++ <property name="can_focus">False</property> ++ <property name="xalign">0.5</property> ++ <property name="label" translatable="yes">none</property> ++ <style> ++ <class name="dim-label"/> ++ </style> ++ </object> ++ <packing> ++ <property name="expand">False</property> ++ <property name="fill">False</property> ++ <property name="position">0</property> ++ </packing> ++ </child> ++ <child> ++ <object class="GtkScale" id="background-transparent-scale"> ++ <property name="visible">True</property> ++ <property name="can_focus">True</property> ++ <property name="adjustment">background-transparent-adjustment</property> ++ <property name="draw_value">False</property> ++ </object> ++ <packing> ++ <property name="expand">True</property> ++ <property name="fill">True</property> ++ <property name="position">1</property> ++ </packing> ++ </child> ++ <child> ++ <object class="GtkLabel" id="background-transparent-max-label"> ++ <property name="visible">True</property> ++ <property name="can_focus">False</property> ++ <property name="xalign">0.5</property> ++ <property name="label" translatable="yes">full</property> ++ <style> ++ <class name="dim-label"/> ++ </style> ++ </object> ++ <packing> ++ <property name="expand">False</property> ++ <property name="fill">False</property> ++ <property name="position">2</property> ++ </packing> ++ </child> ++ </object> ++ <packing> ++ <property name="expand">True</property> ++ <property name="fill">True</property> ++ <property name="position">1</property> ++ </packing> ++ </child> ++ </object> ++ <packing> ++ <property name="expand">True</property> ++ <property name="fill">True</property> ++ <property name="position">2</property> ++ </packing> ++ </child> + </object> + </child> + </object> +diff --git a/src/terminal-schemas.h b/src/terminal-schemas.h +index 4b734a3..e434075 100644 +--- a/src/terminal-schemas.h ++++ b/src/terminal-schemas.h +@@ -69,6 +69,9 @@ G_BEGIN_DECLS + #define TERMINAL_PROFILE_VISIBLE_NAME_KEY "visible-name" + #define TERMINAL_PROFILE_WORD_CHAR_EXCEPTIONS_KEY "word-char-exceptions" + ++#define TERMINAL_PROFILE_USE_TRANSPARENT_BACKGROUND "use-transparent-background" ++#define TERMINAL_PROFILE_BACKGROUND_TRANSPARENCY_PERCENT "background-transparency-percent" ++ + #define TERMINAL_SETTING_CONFIRM_CLOSE_KEY "confirm-close" + #define TERMINAL_SETTING_DEFAULT_SHOW_MENUBAR_KEY "default-show-menubar" + #define TERMINAL_SETTING_ENABLE_MENU_BAR_ACCEL_KEY "menu-accelerator-enabled" +diff --git a/src/terminal-screen.c b/src/terminal-screen.c +index 9a0b450..eab0cec 100644 +--- a/src/terminal-screen.c ++++ b/src/terminal-screen.c +@@ -827,7 +827,9 @@ terminal_screen_profile_changed_cb (GSettings *profile, + prop_name == I_(TERMINAL_PROFILE_HIGHLIGHT_COLORS_SET_KEY) || + prop_name == I_(TERMINAL_PROFILE_HIGHLIGHT_BACKGROUND_COLOR_KEY) || + prop_name == I_(TERMINAL_PROFILE_HIGHLIGHT_FOREGROUND_COLOR_KEY) || +- prop_name == I_(TERMINAL_PROFILE_PALETTE_KEY)) ++ prop_name == I_(TERMINAL_PROFILE_PALETTE_KEY) || ++ prop_name == I_(TERMINAL_PROFILE_USE_TRANSPARENT_BACKGROUND) || ++ prop_name == I_(TERMINAL_PROFILE_BACKGROUND_TRANSPARENCY_PERCENT)) + update_color_scheme (screen); + + if (!prop_name || prop_name == I_(TERMINAL_PROFILE_AUDIBLE_BELL_KEY)) +@@ -897,6 +899,8 @@ update_color_scheme (TerminalScreen *screen) + GdkRGBA *cursor_bgp = NULL, *cursor_fgp = NULL; + GdkRGBA *highlight_bgp = NULL, *highlight_fgp = NULL; + GtkStyleContext *context; ++ GtkWidget *toplevel; ++ gboolean transparent; + gboolean use_theme_colors; + + context = gtk_widget_get_style_context (widget); +@@ -938,6 +942,18 @@ update_color_scheme (TerminalScreen *screen) + } + + colors = terminal_g_settings_get_rgba_palette (priv->profile, TERMINAL_PROFILE_PALETTE_KEY, &n_colors); ++ ++ transparent = g_settings_get_boolean (profile, TERMINAL_PROFILE_USE_TRANSPARENT_BACKGROUND); ++ if (transparent) ++ { ++ gint transparency_percent; ++ ++ transparency_percent = g_settings_get_int (profile, TERMINAL_PROFILE_BACKGROUND_TRANSPARENCY_PERCENT); ++ bg.alpha = (100 - transparency_percent) / 100.0; ++ } ++ else ++ bg.alpha = 1.0; ++ + vte_terminal_set_colors (VTE_TERMINAL (screen), &fg, &bg, + colors, n_colors); + vte_terminal_set_color_bold (VTE_TERMINAL (screen), boldp); +@@ -945,6 +961,10 @@ update_color_scheme (TerminalScreen *screen) + vte_terminal_set_color_cursor_foreground (VTE_TERMINAL (screen), cursor_fgp); + vte_terminal_set_color_highlight (VTE_TERMINAL (screen), highlight_bgp); + vte_terminal_set_color_highlight_foreground (VTE_TERMINAL (screen), highlight_fgp); ++ ++ toplevel = gtk_widget_get_toplevel (GTK_WIDGET (screen)); ++ if (toplevel != NULL && gtk_widget_is_toplevel (toplevel)) ++ gtk_widget_set_app_paintable (toplevel, transparent); + } + + static void +diff --git a/src/terminal-window.c b/src/terminal-window.c +index a290d9f..020c6f0 100644 +--- a/src/terminal-window.c ++++ b/src/terminal-window.c +@@ -2621,6 +2621,8 @@ terminal_window_init (TerminalWindow *window) + TerminalWindowPrivate *priv; + TerminalApp *app; + TerminalSettingsList *profiles_list; ++ GdkScreen *screen; ++ GdkVisual *visual; + GSettings *gtk_debug_settings; + GtkActionGroup *action_group; + GtkAction *action; +@@ -2637,6 +2639,11 @@ terminal_window_init (TerminalWindow *window) + + gtk_widget_init_template (GTK_WIDGET (window)); + ++ screen = gtk_widget_get_screen (GTK_WIDGET (window)); ++ visual = gdk_screen_get_rgba_visual (screen); ++ if (visual != NULL) ++ gtk_widget_set_visual (GTK_WIDGET (window), visual); ++ + uuid_generate (u); + uuid_unparse (u, uuidstr); + priv->uuid = g_strdup (uuidstr); +-- +2.10.0 + + +From 9be09f1e055ae7aa2589ec94add5e994260929e3 Mon Sep 17 00:00:00 2001 +From: Lars Uebernickel <lars.uebernickel@canonical.com> +Date: Wed, 28 May 2014 14:11:02 +0200 +Subject: [PATCH 2/3] window: Make the drawing robust across all themes + +There are lots of themes out there in the wild that do not specify a +background-color for all widgets and the default is transparent. This +is usually not a problem because GTK+ sets an opaque region on the +whole window and things without a background-color get drawn with the +theme's default background colour. However, to achieve transparency +we disable the opaque region by making the window app-paintable. This +can lead to transparent menubars or notebook tabs in some themes. We +can avoid this by ensuring that the window always renders a background. + +https://bugzilla.gnome.org/show_bug.cgi?id=730016 +--- + src/terminal-window.c | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +diff --git a/src/terminal-window.c b/src/terminal-window.c +index 020c6f0..a9f3ff7 100644 +--- a/src/terminal-window.c ++++ b/src/terminal-window.c +@@ -2295,6 +2295,26 @@ terminal_window_realize (GtkWidget *widget) + } + + static gboolean ++terminal_window_draw (GtkWidget *widget, ++ cairo_t *cr) ++{ ++ if (gtk_widget_get_app_paintable (widget)) ++ { ++ GtkStyleContext *context; ++ int width; ++ int height; ++ ++ context = gtk_widget_get_style_context (widget); ++ width = gtk_widget_get_allocated_width (widget); ++ height = gtk_widget_get_allocated_height (widget); ++ gtk_render_background (context, cr, 0, 0, width, height); ++ gtk_render_frame (context, cr, 0, 0, width, height); ++ } ++ ++ return GTK_WIDGET_CLASS (terminal_window_parent_class)->draw (widget, cr); ++} ++ ++static gboolean + terminal_window_state_event (GtkWidget *widget, + GdkEventWindowState *event) + { +@@ -2832,6 +2852,7 @@ terminal_window_class_init (TerminalWindowClass *klass) + + widget_class->show = terminal_window_show; + widget_class->realize = terminal_window_realize; ++ widget_class->draw = terminal_window_draw; + widget_class->window_state_event = terminal_window_state_event; + widget_class->screen_changed = terminal_window_screen_changed; + widget_class->style_updated = terminal_window_style_updated; +-- +2.10.0 + + +From 682a729942c07c375fbc075484bc49f188be40cd Mon Sep 17 00:00:00 2001 +From: "Owen W. Taylor" <otaylor@fishsoup.net> +Date: Fri, 13 Nov 2015 15:16:42 +0100 +Subject: [PATCH 3/3] screen, window: Extra padding around transparent + terminals in Wayland + +https://bugzilla.redhat.com/show_bug.cgi?id=1207943 +--- + src/terminal-screen.c | 40 +++++++++++++++++++++++++++++++++++++--- + src/terminal-window.c | 18 ++++++++++++------ + 2 files changed, 49 insertions(+), 9 deletions(-) + +diff --git a/src/terminal-screen.c b/src/terminal-screen.c +index eab0cec..5d321a7 100644 +--- a/src/terminal-screen.c ++++ b/src/terminal-screen.c +@@ -137,6 +137,8 @@ static void terminal_screen_system_font_changed_cb (GSettings *, + static gboolean terminal_screen_popup_menu (GtkWidget *widget); + static gboolean terminal_screen_button_press (GtkWidget *widget, + GdkEventButton *event); ++static void terminal_screen_hierarchy_changed (GtkWidget *widget, ++ GtkWidget *previous_toplevel); + static gboolean terminal_screen_do_exec (TerminalScreen *screen, + FDSetupData *data, + GError **error); +@@ -482,6 +484,7 @@ terminal_screen_class_init (TerminalScreenClass *klass) + widget_class->drag_data_received = terminal_screen_drag_data_received; + widget_class->button_press_event = terminal_screen_button_press; + widget_class->popup_menu = terminal_screen_popup_menu; ++ widget_class->hierarchy_changed = terminal_screen_hierarchy_changed; + + terminal_class->child_exited = terminal_screen_child_exited; + +@@ -885,6 +888,32 @@ terminal_screen_profile_changed_cb (GSettings *profile, + } + + static void ++update_toplevel_transparency (TerminalScreen *screen) ++{ ++ GtkWidget *widget = GTK_WIDGET (screen); ++ TerminalScreenPrivate *priv = screen->priv; ++ GSettings *profile = priv->profile; ++ GtkWidget *toplevel; ++ ++ toplevel = gtk_widget_get_toplevel (widget); ++ if (toplevel != NULL && gtk_widget_is_toplevel (toplevel)) ++ { ++ gboolean transparent; ++ ++ transparent = g_settings_get_boolean (profile, TERMINAL_PROFILE_USE_TRANSPARENT_BACKGROUND); ++ if (gtk_widget_get_app_paintable (toplevel) != transparent) ++ { ++ gtk_widget_set_app_paintable (toplevel, transparent); ++ ++ /* The opaque region of the toplevel isn't updated until the toplevel is allocated; ++ * set_app_paintable() doesn't force an allocation, so do that manually. ++ */ ++ gtk_widget_queue_resize (toplevel); ++ } ++ } ++} ++ ++static void + update_color_scheme (TerminalScreen *screen) + { + GtkWidget *widget = GTK_WIDGET (screen); +@@ -962,9 +991,7 @@ update_color_scheme (TerminalScreen *screen) + vte_terminal_set_color_highlight (VTE_TERMINAL (screen), highlight_bgp); + vte_terminal_set_color_highlight_foreground (VTE_TERMINAL (screen), highlight_fgp); + +- toplevel = gtk_widget_get_toplevel (GTK_WIDGET (screen)); +- if (toplevel != NULL && gtk_widget_is_toplevel (toplevel)) +- gtk_widget_set_app_paintable (toplevel, transparent); ++ update_toplevel_transparency (screen); + } + + static void +@@ -1567,6 +1594,13 @@ terminal_screen_do_popup (TerminalScreen *screen, + terminal_screen_popup_info_unref (info); + } + ++static void ++terminal_screen_hierarchy_changed (GtkWidget *widget, ++ GtkWidget *previous_toplevel) ++{ ++ update_toplevel_transparency (TERMINAL_SCREEN (widget)); ++} ++ + static gboolean + terminal_screen_button_press (GtkWidget *widget, + GdkEventButton *event) +diff --git a/src/terminal-window.c b/src/terminal-window.c +index a9f3ff7..d09484e 100644 +--- a/src/terminal-window.c ++++ b/src/terminal-window.c +@@ -2300,15 +2300,21 @@ terminal_window_draw (GtkWidget *widget, + { + if (gtk_widget_get_app_paintable (widget)) + { ++ GtkAllocation child_allocation; + GtkStyleContext *context; +- int width; +- int height; ++ GtkWidget *child; ++ ++ /* Get the *child* allocation, so we don't overwrite window borders */ ++ child = gtk_bin_get_child (GTK_BIN (widget)); ++ gtk_widget_get_allocation (child, &child_allocation); + + context = gtk_widget_get_style_context (widget); +- width = gtk_widget_get_allocated_width (widget); +- height = gtk_widget_get_allocated_height (widget); +- gtk_render_background (context, cr, 0, 0, width, height); +- gtk_render_frame (context, cr, 0, 0, width, height); ++ gtk_render_background (context, cr, ++ child_allocation.x, child_allocation.y, ++ child_allocation.width, child_allocation.height); ++ gtk_render_frame (context, cr, ++ child_allocation.x, child_allocation.y, ++ child_allocation.width, child_allocation.height); + } + + return GTK_WIDGET_CLASS (terminal_window_parent_class)->draw (widget, cr); +-- +2.10.0 + diff --git a/x11-terms/gnome-terminal/gnome-terminal-3.22.2.ebuild b/x11-terms/gnome-terminal/gnome-terminal-3.22.2.ebuild new file mode 100644 index 000000000000..0ef374d387ce --- /dev/null +++ b/x11-terms/gnome-terminal/gnome-terminal-3.22.2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +GNOME2_LA_PUNT="yes" + +inherit autotools gnome2 readme.gentoo-r1 + +DESCRIPTION="The Gnome Terminal" +HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="debug +gnome-shell +nautilus vanilla" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" + +# FIXME: automagic dependency on gtk+[X], just transitive but needs proper control +RDEPEND=" + >=dev-libs/glib-2.42:2[dbus] + >=x11-libs/gtk+-3.20:3[X] + >=x11-libs/vte-0.46.1:2.91 + >=dev-libs/libpcre2-10 + >=gnome-base/dconf-0.14 + >=gnome-base/gsettings-desktop-schemas-0.1.0 + sys-apps/util-linux + gnome-shell? ( gnome-base/gnome-shell ) + nautilus? ( >=gnome-base/nautilus-3 ) +" +# itstool required for help/* with non-en LINGUAS, see bug #549358 +# xmllint required for glib-compile-resources, see bug #549304 +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-libs/libxml2 + dev-util/gdbus-codegen + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +DOC_CONTENTS="To get previous working directory inherited in new opened + tab you will need to add the following line to your ~/.bashrc:\n + . /etc/profile.d/vte-2.91.sh" + +src_prepare() { + if ! use vanilla; then + # OpenSuSE patches, https://bugzilla.gnome.org/show_bug.cgi?id=695371 + # http://pkgs.fedoraproject.org/cgit/rpms/gnome-terminal.git/tree/gnome-terminal-transparency-notify.patch (first 3 parts) + eapply "${FILESDIR}"/${PN}-3.22.0-transparency.patch + eautoreconf + fi + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --disable-migration \ + $(use_enable debug) \ + $(use_enable gnome-shell search-provider) \ + $(use_with nautilus nautilus-extension) \ + VALAC=$(type -P true) +} + +src_install() { + DOCS="AUTHORS ChangeLog HACKING NEWS" + gnome2_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + gnome2_pkg_postinst + readme.gentoo_print_elog +} diff --git a/x11-terms/gnome-terminal/gnome-terminal-3.24.2.ebuild b/x11-terms/gnome-terminal/gnome-terminal-3.24.2.ebuild new file mode 100644 index 000000000000..0a7b6da09997 --- /dev/null +++ b/x11-terms/gnome-terminal/gnome-terminal-3.24.2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +GNOME2_LA_PUNT="yes" + +inherit gnome2 readme.gentoo-r1 + +DESCRIPTION="The Gnome Terminal" +HOMEPAGE="https://wiki.gnome.org/Apps/Terminal/" + +LICENSE="GPL-3+" +SLOT="0" +IUSE="debug +gnome-shell +nautilus vanilla" +SRC_URI="${SRC_URI} !vanilla? ( https://dev.gentoo.org/~leio/distfiles/gnome-terminal-notify-open-title-transparency.patch.xz )" + +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" + +# FIXME: automagic dependency on gtk+[X], just transitive but needs proper control +# Needed vte in 3.24.2 is 0.48.2, but we add desktop notification patches in 0.48.3 that non-vanilla needs +RDEPEND=" + >=dev-libs/glib-2.42:2[dbus] + >=x11-libs/gtk+-3.20:3[X] + >=x11-libs/vte-0.48.3:2.91[!vanilla?] + >=dev-libs/libpcre2-10 + >=gnome-base/dconf-0.14 + >=gnome-base/gsettings-desktop-schemas-0.1.0 + sys-apps/util-linux + gnome-shell? ( gnome-base/gnome-shell ) + nautilus? ( >=gnome-base/nautilus-3 ) +" +# itstool/yelp-tools required for help/* with non-en LINGUAS, see bug #549358 +# xmllint required for glib-compile-resources, see bug #549304 +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-libs/libxml2 + dev-util/gdbus-codegen + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +DOC_CONTENTS="To get previous working directory inherited in new opened tab, or + notifications of long-running commands finishing, you will need + to add the following line to your ~/.bashrc:\n + . /etc/profile.d/vte-2.91.sh" + +src_prepare() { + if ! use vanilla; then + # https://bugzilla.gnome.org/show_bug.cgi?id=695371 + # Fedora patches: + # Restore transparency support (with compositing WMs only) + # OSC 777 desktop notification support (notifications on tabs for long-running commands completing) + # Restore separate menuitems for opening tabs and windows + # Restore "Set title" support + # http://pkgs.fedoraproject.org/cgit/rpms/gnome-terminal.git/plain/gnome-terminal-notify-open-title-transparency.patch + # Depends on vte[-vanilla] for OSC 777 patch in VTE + eapply "${WORKDIR}"/${PN}-notify-open-title-transparency.patch + fi + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --disable-migration \ + $(use_enable debug) \ + $(use_enable gnome-shell search-provider) \ + $(use_with nautilus nautilus-extension) \ + VALAC=$(type -P true) +} + +src_install() { + DOCS="AUTHORS ChangeLog HACKING NEWS" + gnome2_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + gnome2_pkg_postinst + readme.gentoo_print_elog +} diff --git a/x11-terms/gnome-terminal/metadata.xml b/x11-terms/gnome-terminal/metadata.xml new file mode 100644 index 000000000000..84390e63b96c --- /dev/null +++ b/x11-terms/gnome-terminal/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> +</maintainer> +<use> + <flag name="gnome-shell">Integrate with <pkg>gnome-base/gnome-shell</pkg> search</flag> + <flag name="nautilus">Build gnome-base/nautilus extension</flag> +</use> +</pkgmetadata> |