Skip to content

Commit

Permalink
bump patches to gnome control center 47.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss committed Nov 7, 2024
1 parent 93dc592 commit 864ab05
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Build debian package
run: |
wget https://github.com/vanilla-os/gnome-control-center/tarball/main
mv main ../gnome-control-center_46~99-orchid-stable.orig.tar.gz
mv main ../gnome-control-center_47.1.1~99-orchid-stable.orig.tar.gz
dpkg-buildpackage -b -uc -us
tar cvf ../gnome-control-center.tar.xz ../*.deb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Build debian package
run: |
wget https://github.com/vanilla-os/gnome-control-center/tarball/main
mv main ../gnome-control-center_46~99-orchid-stable.orig.tar.gz
mv main ../gnome-control-center_47.1.1~99-orchid-stable.orig.tar.gz
dpkg-buildpackage -b -uc -us
tar cvf ../gnome-control-center.tar.xz ../*.deb
Expand Down
53 changes: 26 additions & 27 deletions debian/patches/vanillaos/vanilla-prime-utility.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 193f22ee8..b534a896e 100644
index 58eeed23b..48ac61b34 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -103,6 +103,7 @@ struct _CcDisplayPanel
AdwNavigationView *nav_view;
@@ -102,6 +102,7 @@ struct _CcDisplayPanel
AdwNavigationPage *display_settings_page;
AdwComboRow *primary_display_row;
AdwPreferencesGroup *single_display_settings_group;
+ AdwPreferencesGroup *prime_utility_row;

GtkShortcut *escape_shortcut;

@@ -550,6 +551,37 @@ on_toplevel_escape_pressed_cb (GtkWidget *widget,
@@ -549,6 +550,37 @@ on_toplevel_escape_pressed_cb (GtkWidget *widget,
return GDK_EVENT_PROPAGATE;
}

Expand Down Expand Up @@ -48,15 +48,15 @@ index 193f22ee8..b534a896e 100644
static void
cc_display_panel_constructed (GObject *object)
{
@@ -622,6 +654,7 @@ cc_display_panel_class_init (CcDisplayPanelClass *klass)
@@ -620,6 +652,7 @@ cc_display_panel_class_init (CcDisplayPanelClass *klass)
gtk_widget_class_bind_template_callback (widget_class, on_primary_display_selected_item_changed_cb);
gtk_widget_class_bind_template_callback (widget_class, on_screen_changed);
gtk_widget_class_bind_template_callback (widget_class, on_toplevel_escape_pressed_cb);
+ gtk_widget_class_bind_template_callback (widget_class, cc_display_panel_prime);
}

static void
@@ -1115,6 +1148,9 @@ cc_display_panel_init (CcDisplayPanel *self)
@@ -1113,6 +1146,9 @@ cc_display_panel_init (CcDisplayPanel *self)
else
g_clear_object (&self->up_client);

Expand All @@ -67,34 +67,33 @@ index 193f22ee8..b534a896e 100644

cc_object_storage_create_dbus_proxy (G_BUS_TYPE_SESSION,
diff --git a/panels/display/cc-display-panel.ui b/panels/display/cc-display-panel.ui
index ba7e91407..1d5c4ff45 100644
index b6e8c5391..e13e51ad9 100644
--- a/panels/display/cc-display-panel.ui
+++ b/panels/display/cc-display-panel.ui
@@ -164,6 +164,27 @@
</object>
</child>
@@ -160,6 +160,26 @@
</object>
</child>

+ <!-- Prime Utility -->
+ <!-- Prime Utility -->
+ <child>
+ <object class="AdwPreferencesGroup" id="prime_utility_row">
+ <child>
+ <object class="AdwPreferencesGroup" id="prime_utility_row">
+ <child>
+ <object class="AdwActionRow">
+ <property name="activatable">True</property>
+ <property name="title" translatable="yes">GPU Profile Management (PRIME)</property>
+ <property name="use-underline">True</property>
+ <signal name="activated" handler="cc_display_panel_prime" swapped="yes"/>
+ <child type="suffix">
+ <object class="GtkImage">
+ <property name="valign">center</property>
+ <property name="icon-name">adw-external-link-symbolic</property>
+ </object>
+ </child>
+ <object class="AdwActionRow">
+ <property name="activatable">True</property>
+ <property name="title" translatable="yes">GPU Profile Management (PRIME)</property>
+ <property name="use-underline">True</property>
+ <signal name="activated" handler="cc_display_panel_prime" swapped="yes"/>
+ <child type="suffix">
+ <object class="GtkImage">
+ <property name="valign">center</property>
+ <property name="icon-name">adw-external-link-symbolic</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+
+
</object>
</property>
</object>
</property>
</object>

0 comments on commit 864ab05

Please sign in to comment.