~tualatrix/gnome-terminal/add-new-window-to-unity

« back to all changes in this revision

Viewing changes to .pc/20_add_alt_screen_toggle_ui.patch/src/terminal-profile.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-08-12 02:37:30 UTC
  • Revision ID: james.westby@ubuntu.com-20100812023730-tezff2mp635dsfkf
Tags: 2.30.2-1ubuntu2
* Fix LP: #549552 - solid colour BG is transparent. When set to solid,
  the terminal window inherits transparency from the GTK theme. Add
  a checkbutton in the Background tab of the preferences to inherit
  background settings from the theme to make it possible to choose
  a solid colour again (without having to select "Transparent" and
  then adjusting the slider to maximum)
  - update debian/patches/02_add_transparency_properties.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1013
1013
            is_construct = TRUE;
1014
1014
            break;
1015
1015
          }
1016
 
 
1017
1016
      if (is_construct)
1018
1017
        continue;
1019
1018
 
1160
1159
        g_object_notify (object, TERMINAL_PROFILE_BACKGROUND_IMAGE);
1161
1160
        break;
1162
1161
 
1163
 
      case PROP_BACKGROUND_TYPE:
1164
 
        /* This next one is a temporary hack as we are UI frozen. Basically, it means that
1165
 
         * selecting a solid background will use the background settings defined in the
1166
 
         * theme. This should have it's own button though */
1167
 
        if (g_value_get_enum (value) == TERMINAL_BACKGROUND_SOLID)
1168
 
          {
1169
 
            g_value_set_boolean (g_value_array_get_nth (priv->properties, PROP_USE_THEME_BACKGROUND), TRUE);
1170
 
          }
1171
 
        else
1172
 
          {
1173
 
            g_value_set_boolean (g_value_array_get_nth (priv->properties, PROP_USE_THEME_BACKGROUND), FALSE);
1174
 
          }
1175
 
        g_object_notify (object, TERMINAL_PROFILE_USE_THEME_BACKGROUND);
1176
 
        break;
1177
 
 
1178
1162
      default:
1179
1163
        break;
1180
1164
    }